private void Refresh(object sender)
        {
            Debug.WriteLine($"BookingViewModel - Refresh()");
            _eventTracker?.Click(EventName.RefreshBookingWebview, EventPage.BookingPage, EventPage.BookingPage);

            try
            {
                var webView = sender as CustomWebView;
                ReloadWebview(webView);
            }
            catch (Exception ex)
            {
                _eventTracker.Error(ex);
            }
        }
Ejemplo n.º 2
0
        private async Task OpenNewsAsync(News selectedNews)
        {
            if (selectedNews == null)
            {
                return;
            }

            _eventTracker.Click(EventName.OpenNews, EventPage.NewsPage, EventPage.Uri,
                                new List <KeyValuePair <string, string> >
            {
                new KeyValuePair <string, string>(EventProperty.Uri, selectedNews.Url)
            });

            var fbPostId = selectedNews.Id.Remove(0, ApiConfig.FbAvilaPageId.Length + 1);
            await _deepLinkingLauncher.OpenFacebookPostAsync(selectedNews.Url, ApiConfig.FbAvilaPageId, fbPostId);
        }
Ejemplo n.º 3
0
        private async Task RetryAsync()
        {
            Debug.WriteLine("NewsViewModel - RetryAsync()");
            var eventName = ErrorKind.ToEventName();

            _eventTracker?.Click(eventName, EventPage.NewsPage, EventPage.NewsPage);
            try
            {
                await GetNewsAsync(false);
            }
            catch (Exception ex)
            {
                _eventTracker.Error(ex);
            }
        }
Ejemplo n.º 4
0
 private void CallHourrapps()
 {
     _eventTracker.Click(EventName.HourrappsCall, EventPage.AboutPage, EventPage.NativeCallApp);
     _contact.Call(Strings.Strings.AboutPageContactHourrappsPhoneNumber);
 }
 private void Call()
 {
     _eventTracker.Click(EventName.AvilaCall, EventPage.HomePage, EventPage.NativeCallApp);
     _contact.Call(AvilaPhoneNumber);
 }