Exemplo n.º 1
0
        private async Task <PaginatedResult <DeviceDetails> > HandleConsequentPaginatedRequests(PaginatedRequestParams requestParams)
        {
            var request = _restClient.CreateGetRequest("/push/deviceRegistrations");

            request.AddQueryParameters(requestParams.GetParameters());
            return(await _restClient.ExecutePaginatedRequest(request, HandleConsequentPaginatedRequests));
        }
Exemplo n.º 2
0
        /// <inheritdoc />
        async Task <PaginatedResult <string> > IPushChannelSubscriptions.ListChannelsAsync(PaginatedRequestParams requestParams)
        {
            var request = _restClient.CreateGetRequest("/push/channels");

            request.AddQueryParameters(requestParams.GetParameters());

            return(await _restClient.ExecutePaginatedRequest(request, ((IPushChannelSubscriptions)this).ListChannelsAsync));
        }