Skip to content

Commit

Permalink
feat: 10분 남았을 때 로컬 푸시알람 요청으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
no1msh committed Aug 31, 2024
1 parent f7f2b5e commit 15454ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,9 @@ private fun startTimer(
Duration.ofMinutes(31),
mapOf(
Timer.THIRTY_MINUTES_SECONDS to {
// TODO: 30분 로컬 푸시 알람 요청
onSendNotification(PushText.THIRTY_MINUTES)
},
Timer.FIVE_MINUTES_SECONDS to {
// TODO: 5분 로컬 푸시 알람 요청
Timer.TEN_MINUTES_SECONDS to {
onSendNotification(PushText.TEN_MINUTES)
},
Timer.TIME_OVER_SECONDS to {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ class Timer(
companion object {
private const val LEFT_TIME_FORMAT: String = "%02d:%02d:%02d"
const val THIRTY_MINUTES_SECONDS: Long = 30 * 60L
const val FIVE_MINUTES_SECONDS: Long = 5 * 60L
const val TEN_MINUTES_SECONDS: Long = 10 * 60L
const val TIME_OVER_SECONDS: Long = 0L
private const val DELAY_MILLIS: Long = 1000L

private val EVENT_TIMES: List<Long> = listOf(THIRTY_MINUTES_SECONDS, FIVE_MINUTES_SECONDS, TIME_OVER_SECONDS)
private val EVENT_TIMES: List<Long> = listOf(THIRTY_MINUTES_SECONDS, TEN_MINUTES_SECONDS, TIME_OVER_SECONDS)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TimerTest : BehaviorSpec({
duration,
mapOf(
Timer.THIRTY_MINUTES_SECONDS to {},
Timer.FIVE_MINUTES_SECONDS to {},
Timer.TEN_MINUTES_SECONDS to {},
Timer.TIME_OVER_SECONDS to {},
),
)
Expand All @@ -52,7 +52,7 @@ class TimerTest : BehaviorSpec({
duration,
mapOf(
Timer.THIRTY_MINUTES_SECONDS to {},
Timer.FIVE_MINUTES_SECONDS to {},
Timer.TEN_MINUTES_SECONDS to {},
Timer.TIME_OVER_SECONDS to {},
),
)
Expand All @@ -77,7 +77,7 @@ class TimerTest : BehaviorSpec({
duration,
mapOf(
Timer.THIRTY_MINUTES_SECONDS to {},
Timer.FIVE_MINUTES_SECONDS to {},
Timer.TEN_MINUTES_SECONDS to {},
Timer.TIME_OVER_SECONDS to {},
),
)
Expand Down Expand Up @@ -105,7 +105,7 @@ class TimerTest : BehaviorSpec({
duration,
mapOf(
Timer.THIRTY_MINUTES_SECONDS to {},
Timer.FIVE_MINUTES_SECONDS to {},
Timer.TEN_MINUTES_SECONDS to {},
Timer.TIME_OVER_SECONDS to {},
),
)
Expand Down

0 comments on commit 15454ec

Please sign in to comment.