Пример #1
0
        public async Task list_withdraw_vesting_routes()
        {
            var args = new ListWithdrawVestingRoutesArgs
            {
                Order = SortOrderType.ByWithdrawRoute,
                Start = new object[0],
                Limit = 3
            };
            var resp = await Api.ListWithdrawVestingRoutesAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Пример #2
0
        public void list_withdraw_vesting_routes()
        {
            var args = new ListWithdrawVestingRoutesArgs()
            {
                Order = SortOrderType.ByWithdrawRoute,
                Start = new object[0],
                Limit = 3
            };
            var resp = Api.ListWithdrawVestingRoutes(args, CancellationToken.None);

            WriteLine(resp);
            Assert.IsFalse(resp.IsError);

            var obj = Api.CustomGetRequest <JObject>(KnownApiNames.DatabaseApi, "list_withdraw_vesting_routes", args, CancellationToken.None);

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
Пример #3
0
 /// <summary>
 /// API name: list_withdraw_vesting_routes
 ///
 /// </summary>
 /// <param name="args">API type: list_withdraw_vesting_routes_args</param>
 /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
 /// <returns>API type: list_withdraw_vesting_routes_return</returns>
 /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
 public Task <JsonRpcResponse <ListWithdrawVestingRoutesReturn> > ListWithdrawVestingRoutes(ListWithdrawVestingRoutesArgs args, CancellationToken token)
 {
     return(CustomGetRequest <ListWithdrawVestingRoutesReturn>(KnownApiNames.DatabaseApi, "list_withdraw_vesting_routes", args, token));
 }