示例#1
0
        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.");
        }
示例#2
0
        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.");
        }
示例#3
0
        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));
 }
示例#5
0
 public GetHero Create(global::StrawberryShake.IOperationResultDataInfo dataInfo)
 {
     if (dataInfo is GetHeroInfo info)
     {
         IGetHero_Hero hero = default !;