Ejemplo n.º 1
0
        public async Task <Response <List <Wallet> > > VotersAsync(string id, Dictionary <string, string> parameters = null)
        {
            var uri      = QueryBuilder.Build(string.Format("delegates/{0}/voters", id), parameters);
            var response = await httpClient.GetStringAsync(uri);

            return(Two.ConvertResponse <List <Wallet> >(response));
        }
Ejemplo n.º 2
0
        public async Task <Response <Delegate> > ShowAsync(string id)
        {
            var response = await httpClient.GetStringAsync(string.Format("delegates/{0}", id));

            return(Two.ConvertResponse <Delegate>(response));
        }
Ejemplo n.º 3
0
        public async Task <Response <List <Transaction> > > TransactionsAsync(string id, Dictionary <string, string> parameters = null)
        {
            var response = await httpClient.GetStringAsync(string.Format("wallets/{0}/transactions", id));

            return(Two.ConvertResponse <List <Transaction> >(response));
        }
Ejemplo n.º 4
0
        public async Task <Response <NodeConfiguration> > ConfigurationAsync()
        {
            var response = await httpClient.GetStringAsync("node/configuration");

            return(Two.ConvertResponse <NodeConfiguration>(response));
        }
Ejemplo n.º 5
0
        public async Task <Response <NodeSyncing> > SyncingAsync()
        {
            var response = await httpClient.GetStringAsync("node/syncing");

            return(Two.ConvertResponse <NodeSyncing>(response));
        }
Ejemplo n.º 6
0
        public async Task <Response <NodeStatus> > StatusAsync()
        {
            var response = await httpClient.GetStringAsync("node/status");

            return(Two.ConvertResponse <NodeStatus>(response));
        }