Beispiel #1
0
 private async Task <VkNewsFeedGetResponse> GetVkFeedAsync(IVkApi api, string accessToken, string startFrom, CancellationToken cancellationToken)
 {
     Thread.Sleep(200); // todo: move to config
     if (string.IsNullOrWhiteSpace(startFrom))
     {
         return(await api.GetFeedFirstPage(accessToken, cancellationToken));
     }
     else
     {
         return(await api.GetFeedNextPage(accessToken, startFrom, cancellationToken));
     }
 }