public GetHeroResult Create(global::StrawberryShake.IOperationResultDataInfo dataInfo, global::StrawberryShake.IEntityStoreSnapshot?snapshot = null) { if (snapshot is null) { snapshot = _entityStore.CurrentSnapshot; } if (dataInfo is GetHeroResultInfo info) { return(new GetHeroResult(MapIGetHero_Hero(info.Hero, snapshot))); } throw new global::System.ArgumentException("GetHeroResultInfo expected."); }
public FindClansResult Create(global::StrawberryShake.IOperationResultDataInfo dataInfo, global::StrawberryShake.IEntityStoreSnapshot?snapshot = null) { if (snapshot is null) { snapshot = _entityStore.CurrentSnapshot; } if (dataInfo is FindClansResultInfo info) { return(new FindClansResult(MapIFindClans_ClansNonNullableArray(info.Clans, snapshot))); } throw new global::System.ArgumentException("FindClansResultInfo expected."); }
public ReadBlogsResult Create( global::StrawberryShake.IOperationResultDataInfo dataInfo, global::StrawberryShake.IEntityStoreSnapshot?snapshot = null) { if (snapshot is null) { snapshot = _entityStore.CurrentSnapshot; } if (dataInfo is ReadBlogsResultInfo info) { return(new ReadBlogsResult(MapIReadBlogs_PostsArray( info.Posts, snapshot))); } throw new global::System.ArgumentException("ReadBlogsResultInfo expected."); }
global::System.Object global::StrawberryShake.IOperationResultDataFactory.Create(global::StrawberryShake.IOperationResultDataInfo dataInfo, global::StrawberryShake.IEntityStoreSnapshot?snapshot) { return(Create(dataInfo, snapshot)); }
public GetHero Create(global::StrawberryShake.IOperationResultDataInfo dataInfo) { if (dataInfo is GetHeroInfo info) { IGetHero_Hero hero = default !;