Beispiel #1
0
        async Task postLocationAsync()
        {
            var locator = CrossGeolocator.Current;

            locator.DesiredAccuracy = 50;

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

            BigCatorNotModel model = new BigCatorNotModel()
            {
                TigerHeight = (float)position.Longitude,
                LionHeight  = (float)position.Latitude
            };

            await AzureManager.AzureManagerInstance.PostBigCatorNot(model);
        }
Beispiel #2
0
 public async Task PostBigCatorNot(BigCatorNotModel bigCatorNotModel)
 {
     await this.BigCatorNotTable.InsertAsync(bigCatorNotModel);
 }