Esempio n. 1
0
    internal async Task <CheckForUpdatesResponse> CheckForUpdatesAsync(ulong userId, byte page, long activitiesTimeStamp, ushort perChunk,
                                                                       ushort chunk, RequestOptions options, CancellationToken cancellationToken = default)
    {
        this._logger.LogDebug("Requesting updates check for {UserId}, {Page}", userId, page);
        var request  = Requests.CheckForUpdatesRequest(userId, page, activitiesTimeStamp, perChunk, chunk, options);
        var response = await this._client.SendQueryAsync <CheckForUpdatesResponse>(request, cancellationToken).ConfigureAwait(false);

        return(response.Data);
    }