Skip to content

Commit

Permalink
#180 / 커플 ID 로컬 저장값 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
haeti-dev committed Dec 20, 2023
1 parent deccac7 commit 3f713cc
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ object SparkleStorage {
get() = pref.getInt(PARTNER_ID, -1)
set(value) = pref.edit { putInt(PARTNER_ID, value ?: -1).apply() }

var coupleId: Int?
get() = pref.getInt(COUPLE_ID, -1)
set(value) = pref.edit { putInt(COUPLE_ID, value ?: -1).apply() }

var isActive: Boolean
get() = prefTimer.getBoolean(ACTIVEKEY, false)
set(value) = prefTimer.edit { putBoolean(ACTIVEKEY, value).apply() }
Expand Down Expand Up @@ -93,6 +97,7 @@ const val REFRESH_TOKEN = "refreshToken"
const val AUTH = "auth"
const val USER_ID = "userId"
const val PARTNER_ID = "partnerId"
const val COUPLE_ID = "coupleId"
const val NAME = "timer_prefs"
const val ACTIVEKEY = "isTimerActive"
const val TOTALTIMEKEY = "totalTime"
Expand Down

0 comments on commit 3f713cc

Please sign in to comment.