/// <summary> /// Get all delegate votes from a public key asynchronously /// </summary> /// <returns>DelegateVotersResponse with voters</returns> public async Task <DelegateVotersResponse> GetDelegateVotersAsync(DelegateVotersRequest req) { _url.Path = Constants.ApiGetDelegateVoters; _url.Query = req.ToQuery(); var response = await _client.GetJsonAsync <DelegateVotersResponse>(_url.ToString()); return(response); }
/// <summary> /// Get all delegate votes from a public key asynchronously /// </summary> /// <returns>DelegateVotersResponse with voters</returns> public async Task<DelegateVotersResponse> GetDelegateVotersAsync(DelegateVotersRequest req) { _url.Path = Constants.ApiGetDelegateVoters; _url.Query = req.ToQuery(); var response = await _client.GetJsonAsync<DelegateVotersResponse>(_url.ToString()); return response; }
/// <summary> /// Get all delegate votes from a public key synchronously /// </summary> /// <returns>DelegateVotersResponse with voters</returns> public DelegateVotersResponse GetDelegateVoters(DelegateVotersRequest req) { var response = GetDelegateVotersAsync(req).GetAwaiter().GetResult(); return(response); }
/// <summary> /// Get all delegate votes from a public key synchronously /// </summary> /// <returns>DelegateVotersResponse with voters</returns> public DelegateVotersResponse GetDelegateVoters(DelegateVotersRequest req) { var response = GetDelegateVotersAsync(req).GetAwaiter().GetResult(); return response; }