public async Task list_decline_voting_rights_requests() { var args = new ListDeclineVotingRightsRequestsArgs { Order = SortOrderType.ByAccount }; var resp = await Api.ListDeclineVotingRightsRequestsAsync(args, CancellationToken.None).ConfigureAwait(false); TestPropetries(resp); }
public void list_decline_voting_rights_requests() { var args = new ListDeclineVotingRightsRequestsArgs() { Order = SortOrderType.ByAccount }; var resp = Api.ListDeclineVotingRightsRequests(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); var obj = Api.CustomGetRequest <JObject>(KnownApiNames.DatabaseApi, "list_decline_voting_rights_requests", args, CancellationToken.None); TestPropetries(resp.Result.GetType(), obj.Result); WriteLine("----------------------------------------------------------------------------"); WriteLine(obj); }
/// <summary> /// API name: list_decline_voting_rights_requests /// /// </summary> /// <param name="args">API type: list_decline_voting_rights_requests_args</param> /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param> /// <returns>API type: list_decline_voting_rights_requests_return</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public Task <JsonRpcResponse <ListDeclineVotingRightsRequestsReturn> > ListDeclineVotingRightsRequests(ListDeclineVotingRightsRequestsArgs args, CancellationToken token) { return(CustomGetRequest <ListDeclineVotingRightsRequestsReturn>(KnownApiNames.DatabaseApi, "list_decline_voting_rights_requests", args, token)); }