public static StatisticsManager GetInstance()
        {
            if (m_Instance == null)
            {
                m_Instance = new StatisticsManager();
            }

            return(m_Instance);
        }
        public static StatisticsManager GetInstance(User i_LoggedInUser)
        {
            if (m_Instance == null)
            {
                m_Instance = new StatisticsManager();
                m_Instance.LoggedInUser = i_LoggedInUser;
            }

            return(m_Instance);
        }
Example #3
0
        public void SetStatistics()
        {
            m_StatisticsManager = StatisticsManager.GetInstance();

            initializeControlCollections();
            populatePhotoStatisticsControls();
            populateClosestFriendsControls();
            populateFavoriteLocationsControls();
            populateGeneralStatisticsControls();
        }
Example #4
0
        private void statisticsManagerThread()
        {
            StatisticsManager statisticsManager = StatisticsManager.GetInstance(m_LoggedInUser);

            statisticsManager.SetPhotoStatistics();
            statisticsManager.SetPostStatistics();
            statisticsManager.SetNumberOfLikedPages();
            statisticsManager.SetLocationStatistics();
            statisticsManager.SetRatios();
            m_IsStatsCalculationOver = true;
        }