public async Task get_account_bandwidth() { var args = new GetAccountBandwidthArgs { Account = User.Login, Type = BandwidthType.Forum }; var resp = await Api.CondenserGetAccountBandwidth(args, CancellationToken.None); TestPropetries(resp); }
public void get_account_bandwidth() { var args = new GetAccountBandwidthArgs() { Account = User.Login, Type = BandwidthType.Forum }; var resp = Api.GetAccountBandwidth(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); var obj = Api.CustomGetRequest <JObject>(KnownApiNames.WitnessApi, "get_account_bandwidth", args, CancellationToken.None); TestPropetries(resp.Result.GetType(), obj.Result); WriteLine("----------------------------------------------------------------------------"); WriteLine(obj); }
/// <summary> /// API name: get_account_bandwidth /// /// </summary> /// <param name="args">API type: get_account_bandwidth_args</param> /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param> /// <returns>API type: get_account_bandwidth_return</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public Task <JsonRpcResponse <GetAccountBandwidthReturn> > GetAccountBandwidth(GetAccountBandwidthArgs args, CancellationToken token) { return(CustomGetRequest <GetAccountBandwidthReturn>(KnownApiNames.WitnessApi, "get_account_bandwidth", args, token)); }
/// <summary> /// API name: get_account_bandwidth /// /// </summary> /// <param name="args">API type: get_account_bandwidth_args</param> /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param> /// <returns>API type: get_account_bandwidth_return</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public Task <JsonRpcResponse <GetAccountBandwidthReturn> > CondenserGetAccountBandwidthAsync(GetAccountBandwidthArgs args, CancellationToken token) { return(CondenserCustomGetRequestAsync <GetAccountBandwidthReturn>(KnownApiNames.CondenserApi, "get_account_bandwidth", args, token)); }