Пример #1
0
        public static async Task <Page <T, U> > SendAsync <T, U>(this ApiRequestBuilder <Page <T, U> > builder)
        {
            var request = builder.Build();

            return(await builder.Api.SendAsync(request, httpResponse => new ApiPageResponse <T, U>(httpResponse, builder.Api.Serializer)).ConfigureAwait(false));
        }
Пример #2
0
        public static Task <T> SendAsync <T>(this ApiRequestBuilder <T> builder)
        {
            var request = builder.Build();

            return(builder.Api.SendAsync <T>(request, httpResponse => new ApiResponse <T>(httpResponse, builder.Api.Serializer)));
        }