Exemplo n.º 1
0
        public async Task find_account_recovery_requests()
        {
            var args = new FindAccountRecoveryRequestsArgs
            {
                Accounts = new[] { User.Login }
            };
            var resp = await Api.FindAccountRecoveryRequestsAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Exemplo n.º 2
0
        public void find_account_recovery_requests()
        {
            var args = new FindAccountRecoveryRequestsArgs()
            {
                Accounts = new[] { User.Login }
            };
            var resp = Api.FindAccountRecoveryRequests(args, CancellationToken.None);

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

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

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
Exemplo n.º 3
0
 /// <summary>
 /// API name: find_account_recovery_requests
 ///
 /// </summary>
 /// <param name="args">API type: find_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: find_account_recovery_requests_return</returns>
 /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
 public Task <JsonRpcResponse <FindAccountRecoveryRequestsReturn> > FindAccountRecoveryRequests(FindAccountRecoveryRequestsArgs args, CancellationToken token)
 {
     return(CustomGetRequest <FindAccountRecoveryRequestsReturn>(KnownApiNames.DatabaseApi, "find_account_recovery_requests", args, token));
 }