Esempio n. 1
0
        public void LogMood(int mood)
        {
            float realMood = Mathf.InverseLerp(AppConstants.minimumMoodValue, AppConstants.maximumMoodValue, mood);
            var   data     = new LogMoodData(realMood);

            db.Insert(data);
        }
Esempio n. 2
0
        public void LogMood(int appSession, int mood)
        {
            // TODO refactor: this should have a session like the rest of the logging methods
            float realMood = Mathf.InverseLerp(AppConfig.MinMoodValue, AppConfig.MaxMoodValue, mood);
            var   data     = new LogMoodData(appSession, realMood);

            db.Insert(data);
        }
Esempio n. 3
0
        public void TestInsertLogMoodData()
        {
            var newData = new LogMoodData();

            newData.AppSession = GenericHelper.GetTimestampForNow();
            newData.Timestamp  = GenericHelper.GetTimestampForNow();

            newData.MoodValue = RND.Range(0, 20);

            this.dbManager.Insert(newData);
            PrintOutput("Inserted new LogMoodData: " + newData.ToString());
        }
        public void TestInsertLogMoodData()
        {
            var newData = new LogMoodData();

            newData.Session   = UnityEngine.Random.Range(0, 10).ToString();
            newData.Timestamp = GenericUtilities.GetTimestampForNow();

            newData.MoodValue = RND.Range(0, 20);

            this.dbManager.Insert(newData);
            PrintOutput("Inserted new LogMoodData: " + newData.ToString());
        }