Beispiel #1
0
        async Task postChocProbabilitiesAsync()
        {
            //var locator = CrossGeolocator.Current;
            //locator.DesiredAccuracy = 50;

            //var position = await locator.GetPositionAsync(1000);

            List <WalTable> chocInformation = await AzureManager.AzureManagerInstance.GetChocInformation();

            int tableCount = chocInformation.Count;

            string newRowID = tableCount + 1 + "";

            WalTable model = new WalTable()
            {
                ID           = newRowID,
                MilkChocProb = MilkChocProb,
                DarkChocProb = DarkChocProb
            };

            await AzureManager.AzureManagerInstance.PostChocInformation(model);
        }
Beispiel #2
0
 public async Task PostChocInformation(WalTable walModel)
 {
     await this.walTable.InsertAsync(walModel);
 }