Ejemplo n.º 1
0
        private global::StrawberryShakeTesting.Tests.IReadBlogs_Posts? MapIReadBlogs_Posts(
            global::StrawberryShakeTesting.Tests.State.BlogPostData? data,
            global::StrawberryShake.IEntityStoreSnapshot snapshot)
        {
            if (data is null)
            {
                return(null);
            }

            IReadBlogs_Posts returnValue = default !;
Ejemplo n.º 2
0
        private global::System.Collections.Generic.IReadOnlyList <global::StrawberryShakeTesting.Tests.IReadBlogs_Posts?>?MapIReadBlogs_PostsArray(
            global::System.Collections.Generic.IReadOnlyList <global::StrawberryShakeTesting.Tests.State.BlogPostData?>?list,
            global::StrawberryShake.IEntityStoreSnapshot snapshot)
        {
            if (list is null)
            {
                return(null);
            }

            var blogPosts = new global::System.Collections.Generic.List <global::StrawberryShakeTesting.Tests.IReadBlogs_Posts?>();

            foreach (global::StrawberryShakeTesting.Tests.State.BlogPostData?child in list)
            {
                blogPosts.Add(MapIReadBlogs_Posts(
                                  child,
                                  snapshot));
            }

            return(blogPosts);
        }
        private (IGetCustomValueResult, GetCustomValueResultInfo) BuildData(global::System.Text.Json.JsonElement obj)
        {
            var entityIds = new global::System.Collections.Generic.HashSet <global::StrawberryShake.EntityId>();

            global::StrawberryShake.IEntityStoreSnapshot snapshot = default !;
        private global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnInterfaces.IGetHero_Hero? MapIGetHero_Hero(global::StrawberryShake.EntityId? entityId, global::StrawberryShake.IEntityStoreSnapshot snapshot)
        {
            if (entityId is null)
            {
                return(null);
            }

            if (entityId.Value.Name.Equals("Droid", global::System.StringComparison.Ordinal))
            {
                return(_getHero_Hero_DroidFromDroidEntityMapper.Map(snapshot.GetEntity <global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnInterfaces.State.DroidEntity>(entityId.Value) ?? throw new global::StrawberryShake.GraphQLClientException()));
            }

            if (entityId.Value.Name.Equals("Human", global::System.StringComparison.Ordinal))
            {
                return(_getHero_Hero_HumanFromHumanEntityMapper.Map(snapshot.GetEntity <global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnInterfaces.State.HumanEntity>(entityId.Value) ?? throw new global::StrawberryShake.GraphQLClientException()));
            }

            throw new global::System.NotSupportedException();
        }
Ejemplo n.º 5
0
 private global::WotBlitzStatisticsPro.Blazor.GraphQl.IFindClans_Clans MapNonNullableIFindClans_Clans(global::WotBlitzStatisticsPro.Blazor.GraphQl.State.ClanSearchResponseItemData data, global::StrawberryShake.IEntityStoreSnapshot snapshot)
 {
     IFindClans_Clans returnValue = default !;
Ejemplo n.º 6
0
        private global::System.Collections.Generic.IReadOnlyList <global::WotBlitzStatisticsPro.Blazor.GraphQl.IFindClans_Clans>?MapIFindClans_ClansNonNullableArray(global::System.Collections.Generic.IReadOnlyList <global::WotBlitzStatisticsPro.Blazor.GraphQl.State.ClanSearchResponseItemData>?list, global::StrawberryShake.IEntityStoreSnapshot snapshot)
        {
            if (list is null)
            {
                return(null);
            }

            var clanSearchResponseItems = new global::System.Collections.Generic.List <global::WotBlitzStatisticsPro.Blazor.GraphQl.IFindClans_Clans>();

            foreach (global::WotBlitzStatisticsPro.Blazor.GraphQl.State.ClanSearchResponseItemData child in list)
            {
                clanSearchResponseItems.Add(MapNonNullableIFindClans_Clans(child, snapshot));
            }

            return(clanSearchResponseItems);
        }
Ejemplo n.º 7
0
        private global::System.Collections.Generic.IReadOnlyList <global::WotBlitzStatisticsPro.Blazor.GraphQl.IFindPlayers_Players> MapNonNullableIFindPlayers_PlayersNonNullableArray(global::System.Collections.Generic.IReadOnlyList <global::WotBlitzStatisticsPro.Blazor.GraphQl.State.AccountsSearchResponseItemData>?list, global::StrawberryShake.IEntityStoreSnapshot snapshot)
        {
            if (list is null)
            {
                throw new global::System.ArgumentNullException();
            }

            var accountsSearchResponseItems = new global::System.Collections.Generic.List <global::WotBlitzStatisticsPro.Blazor.GraphQl.IFindPlayers_Players>();

            foreach (global::WotBlitzStatisticsPro.Blazor.GraphQl.State.AccountsSearchResponseItemData child in list)
            {
                accountsSearchResponseItems.Add(MapNonNullableIFindPlayers_Players(child, snapshot));
            }

            return(accountsSearchResponseItems);
        }