Example #1
0
 private void getComments()
 {
     request?.Cancel();
     loadCancellation?.Cancel();
     request          = new GetCommentsRequest(type, id, Sort.Value, currentPage++);
     request.Success += onSuccess;
     api.Queue(request);
 }
Example #2
0
        private void getComments()
        {
            if (id.Value <= 0)
            {
                return;
            }

            request?.Cancel();
            loadCancellation?.Cancel();
            request          = new GetCommentsRequest(id.Value, type.Value, Sort.Value, currentPage++, 0);
            request.Success += onSuccess;
            api.PerformAsync(request);
        }
Example #3
0
        private void getComments()
        {
            if (id.Value <= 0)
            {
                return;
            }

            request?.Cancel();
            loadCancellation?.Cancel();
            scheduledCommentsLoad?.Cancel();
            request          = new GetCommentsRequest(id.Value, type.Value, Sort.Value, currentPage++, 0);
            request.Success += res => scheduledCommentsLoad = Schedule(() => onSuccess(res));
            api.PerformAsync(request);
        }