Example #1
0
        /// <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);
        }
Example #2
0
 /// <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;
 }
Example #3
0
        /// <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);
        }
Example #4
0
 /// <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;
 }