コード例 #1
0
ファイル: RiseNodeApi.cs プロジェクト: Rajbandi/RiseSharp
 /// <summary>
 /// Get all delegate forging account from a public key asynchronously 
 /// </summary>
 /// <returns>DelegateForgingAccountResponse with account details</returns>
 public async Task<DelegateForgingAccountResponse> GetDelegateForgingAccountAsync(DelegateForgingAccountRequest req)
 {
     _url.Path = Constants.ApiGetDelegateForgeAccount;
     _url.Query = req.ToQuery();
     var response = await _client.GetJsonAsync<DelegateForgingAccountResponse>(_url.ToString());
     return response;
 }
コード例 #2
0
ファイル: RiseNodeApi.cs プロジェクト: Rajbandi/RiseSharp
        /// <summary>
        /// Get all delegate forging account from a public key synchronously 
        /// </summary>
        /// <returns>DelegateForgingAccountResponse with account details</returns>
        public DelegateForgingAccountResponse GetDelegateForgingAccount(DelegateForgingAccountRequest req)
        {
            var response = GetDelegateForgingAccountAsync(req).GetAwaiter().GetResult();

            return response;
        }