public async Task list_accounts() { var args = new ListAccountsArgs(); var resp = await Api.ListAccountsAsync(args, CancellationToken.None).ConfigureAwait(false); TestPropetries(resp); }
public void list_accounts() { var args = new ListAccountsArgs(); var resp = Api.ListAccounts(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); var obj = Api.CustomGetRequest <JObject>(KnownApiNames.DatabaseApi, "list_accounts", args, CancellationToken.None); TestPropetries(resp.Result.GetType(), obj.Result); WriteLine("----------------------------------------------------------------------------"); WriteLine(obj); }
////////////// // Accounts // ////////////// /// <summary> /// API name: list_accounts /// List accounts ordered by specified key /// /// /// </summary> /// <param name="args">API type: list_accounts_args</param> /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param> /// <returns>API type: list_accounts_return</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public Task <JsonRpcResponse <ListAccountsReturn> > ListAccounts(ListAccountsArgs args, CancellationToken token) { return(CustomGetRequest <ListAccountsReturn>(KnownApiNames.DatabaseApi, "list_accounts", args, token)); }