Example #1
0
        public static bool IsNewVersionAndStore()
        {
            var buildVersion  = AppInfo.Version.Minor;
            var storedVersion = StoreUtil.GetInt(MINORVERSION);
            var isNewVersion  = false;

            if ((storedVersion == -1) || (buildVersion != storedVersion))
            {
                isNewVersion = true;
            }

            if (isNewVersion)
            {
                StoreUtil.SaveInt(MINORVERSION, AppInfo.Version.Minor);
            }

            return(isNewVersion);
        }
Example #2
0
 public static void ClearAlarm()
 {
     StoreUtil.RemoveObject(ALARMHOUR);
     StoreUtil.RemoveObject(ALARMMINUTE);
 }
Example #3
0
 public static void SetAlarmTime(int hour, int minute)
 {
     StoreUtil.SaveInt(ALARMHOUR, hour);
     StoreUtil.SaveInt(ALARMMINUTE, minute);
 }
Example #4
0
 public static int GetAlarmMinute()
 {
     return(StoreUtil.GetInt(ALARMMINUTE, -1));
 }
Example #5
0
 public static int GetAlarmHour()
 {
     return(StoreUtil.GetInt(ALARMHOUR, -1));
 }
Example #6
0
 public static void SetIsMommyApp(bool value)
 {
     StoreUtil.SaveBool(ISMOMMYAPP, value);
 }
Example #7
0
 public static bool GetIsMommyApp()
 {
     return(StoreUtil.GetBool(ISMOMMYAPP));
 }
Example #8
0
 public static void SetToken(string token)
 {
     StoreUtil.SaveString(TOKEN, token);
 }
Example #9
0
 public static string GetToken()
 {
     return(StoreUtil.GetString(TOKEN));
 }