Esempio n. 1
0
        private async Task GetTestBet()
        {
            var betTable = Table.LoadTable(_client, "Bet");

            var doc = await betTable.GetItemAsync(123, "01");

            var bet = BetSerialiser.UnpackBet(doc);

            Debug.WriteLine(bet);
        }
Esempio n. 2
0
        // ----------------------------------------------------------------------------------------

        private async Task AddBet(Bet bet)
        {
            var betTable = Table.LoadTable(_client, "Bet");
            await betTable.PutItemAsync(BetSerialiser.PackBet(bet));
        }