Example #1
0
        public async Task find_change_recovery_account_requests()
        {
            var args = new FindChangeRecoveryAccountRequestsArgs
            {
                Accounts = new[] { User.Login }
            };
            var resp = await Api.FindChangeRecoveryAccountRequestsAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Example #2
0
        public void find_change_recovery_account_requests()
        {
            var args = new FindChangeRecoveryAccountRequestsArgs()
            {
                Accounts = new[] { User.Login }
            };
            var resp = Api.FindChangeRecoveryAccountRequests(args, CancellationToken.None);

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

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

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
Example #3
0
 /// <summary>
 /// API name: find_change_recovery_account_requests
 ///
 /// </summary>
 /// <param name="args">API type: find_change_recovery_account_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_change_recovery_account_requests_return</returns>
 /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
 public Task <JsonRpcResponse <FindChangeRecoveryAccountRequestsReturn> > FindChangeRecoveryAccountRequests(FindChangeRecoveryAccountRequestsArgs args, CancellationToken token)
 {
     return(CustomGetRequest <FindChangeRecoveryAccountRequestsReturn>(KnownApiNames.DatabaseApi, "find_change_recovery_account_requests", args, token));
 }