Esempio n. 1
0
        public async Task <DisqusResponse <DisqusThreadVoteStats> > VoteAsync(DisqusAccessToken accessToken,
                                                                              DisqusThreadVoteRequest request)
        {
            Collection <KeyValuePair <string, string> > parameters = Parameters
                                                                     .WithOptionalParameter("access_token", accessToken)
                                                                     .WithMultipleParameters(request.Parameters);

            return(await RequestProcessor
                   .ExecuteAsync <DisqusResponse <DisqusThreadVoteStats> >(DisqusRequestMethod.Post,
                                                                           DisqusEndpoints.Threads.Vote, parameters)
                   .ConfigureAwait(false));
        }
 public async Task <DisqusResponse <DisqusThreadVoteStats> > VoteAsync(DisqusThreadVoteRequest request)
 {
     return(await VoteAsync(null, request).ConfigureAwait(false));
 }