Esempio n. 1
0
        public async Task list_savings_withdrawals()
        {
            var args = new ListSavingsWithdrawalsArgs
            {
                Start = new object[0],
                Limit = 3,
                Order = SortOrderType.ByFromId
            };

            var resp = await Api.ListSavingsWithdrawalsAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Esempio n. 2
0
        public void list_savings_withdrawals()
        {
            var args = new ListSavingsWithdrawalsArgs()
            {
                Start = new object[0],
                Limit = 3,
                Order = SortOrderType.ByFromId
            };

            var resp = Api.ListSavingsWithdrawals(args, CancellationToken.None);

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

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

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
Esempio n. 3
0
 /// <summary>
 /// API name: list_savings_withdrawals
 ///
 /// </summary>
 /// <param name="args">API type: list_savings_withdrawals_args</param>
 /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
 /// <returns>API type: list_savings_withdrawals_return</returns>
 /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
 public Task <JsonRpcResponse <ListSavingsWithdrawalsReturn> > ListSavingsWithdrawals(ListSavingsWithdrawalsArgs args, CancellationToken token)
 {
     return(CustomGetRequest <ListSavingsWithdrawalsReturn>(KnownApiNames.DatabaseApi, "list_savings_withdrawals", args, token));
 }