Exemplo n.º 1
0
 public async Task <Models.Account> Deposit(Models.ATM atm, Models.ATMInventory inventory)
 {
     return(await Post <Models.Account>("/api/account/deposit", new Dictionary <string, object>() {
         { "atmId", atm.Id },
         { "items", inventory }
     }));
 }
Exemplo n.º 2
0
 public async Task <Models.ATMInventory> Withdraw(Models.ATM atm, long amount)
 {
     return(await Post <Models.ATMInventory>("/api/account/withdraw", new Dictionary <string, object>() {
         { "atmId", atm.Id },
         { "amount", amount }
     }));
 }
Exemplo n.º 3
0
        public async Task <Models.ATM> Login(string id, string password)
        {
            me = await Post <Models.ATM>("/api/login/atm", new Dictionary <string, object>() {
                { "id", id },
                { "password", password }
            });

            return(me);
        }