コード例 #1
0
        public async Task list_account_recovery_requests()
        {
            var args = new ListAccountRecoveryRequestsArgs
            {
                Start = User.Login,
                Limit = 3,
                Order = SortOrderType.ByAccount
            };
            var resp = await Api.ListAccountRecoveryRequestsAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
コード例 #2
0
        public void list_account_recovery_requests()
        {
            var args = new ListAccountRecoveryRequestsArgs()
            {
                Start = User.Login,
                Limit = 3,
                Order = SortOrderType.ByAccount
            };
            var resp = Api.ListAccountRecoveryRequests(args, CancellationToken.None);

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

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

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
コード例 #3
0
 /// <summary>
 /// API name: list_account_recovery_requests
 ///
 /// </summary>
 /// <param name="args">API type: list_account_recovery_requests_args</param>
 /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
 /// <returns>API type: list_account_recovery_requests_return</returns>
 /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
 public Task <JsonRpcResponse <ListAccountRecoveryRequestsReturn> > ListAccountRecoveryRequests(ListAccountRecoveryRequestsArgs args, CancellationToken token)
 {
     return(CustomGetRequest <ListAccountRecoveryRequestsReturn>(KnownApiNames.DatabaseApi, "list_account_recovery_requests", args, token));
 }