|
|
@@ -27,6 +27,9 @@ public class LifeplusPreferences {
|
|
|
public final static String ENCRYPTED_PIN = "encrypted_pin";
|
|
|
public final static String TOKEN = "token";
|
|
|
public final static String AUTO_UNLOCK = "auto_unlock";
|
|
|
+ public final static String PUSH_ENABLED = "push_enabled";
|
|
|
+ public final static String PUSH_MARKETING_ENABLED = "push_marketing_enabled";
|
|
|
+ public final static String LOCATION_SERVICE_ENABLED = "location_service_enabled";
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -157,4 +160,43 @@ public class LifeplusPreferences {
|
|
|
public boolean isAutoUnlock() {
|
|
|
return preferences.get(AUTO_UNLOCK, true);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 푸시 알림 사용 여부
|
|
|
+ *
|
|
|
+ * @param isEnabled
|
|
|
+ */
|
|
|
+ public void setPushEnabled(boolean isEnabled) {
|
|
|
+ preferences.put(PUSH_ENABLED, isEnabled);
|
|
|
+ }
|
|
|
+
|
|
|
+ public boolean isPushEnabeld() {
|
|
|
+ return preferences.get(PUSH_ENABLED, false);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 푸시 마케팅 알림 사용 여부
|
|
|
+ *
|
|
|
+ * @param isEnabled
|
|
|
+ */
|
|
|
+ public void setPushMarketingEnabled(boolean isEnabled) {
|
|
|
+ preferences.put(PUSH_MARKETING_ENABLED, isEnabled);
|
|
|
+ }
|
|
|
+
|
|
|
+ public boolean isPushMarketingEnabeld() {
|
|
|
+ return preferences.get(PUSH_MARKETING_ENABLED, false);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 위치 서비스 사용 여부
|
|
|
+ *
|
|
|
+ * @param isEnabled
|
|
|
+ */
|
|
|
+ public void setLocationServiceEnabled(boolean isEnabled) {
|
|
|
+ preferences.put(LOCATION_SERVICE_ENABLED, isEnabled);
|
|
|
+ }
|
|
|
+
|
|
|
+ public boolean isLocationServiceEnabled() {
|
|
|
+ return preferences.get(LOCATION_SERVICE_ENABLED, false);
|
|
|
+ }
|
|
|
}
|