示例#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 ApiRequestBuilder <Page <T, U> > Before <T, U>(this ApiRequestBuilder <Page <T, U> > builder, object before)
 {
     return(builder.AddQueryParam("before", before));
 }
示例#3
0
 public static ApiRequestBuilder <Page <T, U> > After <T, U>(this ApiRequestBuilder <Page <T, U> > builder, object after)
 {
     return(builder.AddQueryParam("after", after));
 }
示例#4
0
 public static ApiRequestBuilder <Page <T, U> > Limit <T, U>(this ApiRequestBuilder <Page <T, U> > builder, int limit)
 {
     return(builder.AddQueryParam("limit", limit));
 }
示例#5
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)));
        }