Пример #1
0
        async Task postLocationAsync()
        {
            var locator = CrossGeolocator.Current;

            locator.DesiredAccuracy = 50;

            var position = await locator.GetPositionAsync(TimeSpan.FromSeconds(10));

            ShoeModel model = new ShoeModel()
            {
                Longitude = (float)position.Longitude,
                Latitude  = (float)position.Latitude
            };

            await AzureManager.AzureManagerInstance.PostHotDogInformation(model);
        }
Пример #2
0
 public async Task DeleteHotDogInformation(ShoeModel notHotDogModel)
 {
     await this.shoedb.DeleteAsync(notHotDogModel);
 }
Пример #3
0
 public async Task PostHotDogInformation(ShoeModel ShoeModel)
 {
     await this.shoedb.InsertAsync(ShoeModel);
 }