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