Ejemplo n.º 1
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.º 2
0
        public async Task <Response <Wallet> > ShowAsync(string id)
        {
            var response = await httpClient.GetStringAsync(string.Format("wallets/{0}", id));

            return(Two.ConvertResponse <Wallet>(response));
        }
Ejemplo n.º 3
0
        public async Task <Response <List <Wallet> > > AllAsync(Dictionary <string, string> parameters = null)
        {
            var response = await httpClient.GetStringAsync("wallets");

            return(Two.ConvertResponse <List <Wallet> >(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));
        }