public async Task find_decline_voting_rights_requests() { var args = new FindDeclineVotingRightsRequestsArgs { Accounts = new[] { User.Login } }; var resp = await Api.FindDeclineVotingRightsRequestsAsync(args, CancellationToken.None).ConfigureAwait(false); TestPropetries(resp); }
public void find_decline_voting_rights_requests() { var args = new FindDeclineVotingRightsRequestsArgs() { Accounts = new[] { User.Login } }; var resp = Api.FindDeclineVotingRightsRequests(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); var obj = Api.CustomGetRequest <JObject>(KnownApiNames.DatabaseApi, "find_decline_voting_rights_requests", args, CancellationToken.None); TestPropetries(resp.Result.GetType(), obj.Result); WriteLine("----------------------------------------------------------------------------"); WriteLine(obj); }
/// <summary> /// API name: find_decline_voting_rights_requests /// /// </summary> /// <param name="args">API type: find_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: find_decline_voting_rights_requests_return</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public Task <JsonRpcResponse <FindDeclineVotingRightsRequestsReturn> > FindDeclineVotingRightsRequests(FindDeclineVotingRightsRequestsArgs args, CancellationToken token) { return(CustomGetRequest <FindDeclineVotingRightsRequestsReturn>(KnownApiNames.DatabaseApi, "find_decline_voting_rights_requests", args, token)); }