Exemplo n.º 1
0
 private void getComments()
 {
     request?.Cancel();
     loadCancellation?.Cancel();
     request          = new GetCommentsRequest(type, id, Sort.Value, currentPage++);
     request.Success += onSuccess;
     api.Queue(request);
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }