예제 #1
0
        void OnSwipedToFinalPage()
        {
            ITTGoogleAnalytics.Instance.googleAnalytics.LogEvent(new EventHitBuilder()
                                                                 .SetEventCategory("FTUE - Tool Tip Screen")
                                                                 .SetEventAction("Final Swipe - Tool Tip Screen")
                                                                 .SetEventLabel("User has exited the tool tip screen"));

            ToolTipViewController.FlagViewedTooltip();
        }
예제 #2
0
        public void OnUseCurrentPressed()
        {
            HelperMethods.AddInteractionBlocker();
            ITTGoogleAnalytics.Instance.googleAnalytics.LogEvent(new EventHitBuilder()
                                                                 .SetEventCategory("Location - Location Screen")
                                                                 .SetEventAction("Click - Current Location Button")
                                                                 .SetEventLabel("The user has pressed on the current location button in location screen."));

            model.mainAppViewModel.DynamicScrollView.ClearCarousel();
            model.mainAppViewModel.NoActivitiesCard.SetActive(false);

            StartCoroutine(HelperMethods.Instance.RetrieveAndRefreshLocationData(OnFailGeoData));

            if (!_toolTipComplete)
            {
                ToolTipViewController.FlagViewedTooltip();
            }
        }
예제 #3
0
        private void OnUpdateGeoLocation(string geoLocationData)
        {
            LocationDataModel searchLocation = JsonFx.Json.JsonReader.Deserialize <LocationDataModel>(geoLocationData);

            if (null == searchLocation)
            {
                OnFailGeoData(geoLocationData);
                return;
            }

            previousSearches.Remove(_searchString);
            previousSearches.AddFirst(_searchString);
            UpdateLocationCards();

            if (_searchString.All(c => c >= '0' && c <= '9'))
            {
                searchLocation.zipCode = _searchString;
            }
            else
            {
                searchLocation.cityState = _searchString;
            }

            ITTDataCache.Instance.Data.UpdateDataEntry((int)DataCacheIndices.LOCATION, searchLocation, false);

            if (!_toolTipComplete)
            {
                ToolTipViewController.FlagViewedTooltip();
            }

            HelperMethods.RemoveInteractionBlocker();

            // TODO: clear dynamic scroll view
            model.mainAppViewModel.DynamicScrollView.ClearCarousel();
            model.mainAppViewModel.NoActivitiesCard.SetActive(false);

            ITTDataCache.Instance.Data.ClearDataEntry((int)DataCacheIndices.ACTIVITY_LIST);
            ITTDataCache.Instance.Data.RefreshDataEntry((int)DataCacheIndices.ACTIVITY_LIST);

            ITTMainSceneManager.Instance.currentState = ITTMainSceneManager.ITTStates.Main;
            GameObject.Destroy(_loadingScreen.gameObject);
        }