Exemplo n.º 1
0
        //    private async Task<List<CouponSchedule>> getGoogleInfo(Location loc)
        //    {
        //        List<CouponSchedule> cpns = new List<CouponSchedule>();
        //        int j = 0;
        //       // string oneRestUrl = setLocation(loc);
        //        using (var client = new HttpClient())
        //        {
        //           // var response = await client.GetStringAsync(string.Format(oneRestUrl));
        //            var result = JsonConvert.DeserializeObject<GooglePlaces>(response);
        //            foreach (var info in result.results)
        //            {
        //                CouponSchedule cpn = new CouponSchedule();
        //                 cpn.thisCoupon = new Coupon();
        //                Console.WriteLine("pat look here =="+info.name);
        //                cpn.thisCoupon.GoogleData = info;
        //                cpns.Add(cpn);
        //                j++;

        //            }
        //        }
        //    return cpns;
        //}

        async void FindThisPlace(object sender, FindEventArgs e)
        {
            Console.WriteLine("in Group Details - AddNewMEssages");

            //BindingContext = _currentChatGroup;
            //_currentChatGroup.ToDoList = schdmsg.provideDates();
            CouponSchedule lookingFor = e.Data;

            lookingFor = await _google.GooglePlaceDetails(lookingFor);

            FindPlacePage findPlace = new FindPlacePage(lookingFor, position);
            await Navigation.PushAsync(findPlace);

            // toDo.AddToList(addmsg.returnMessages());
            //toDo.RefreshItems(true);
        }