Handle deletion of timers when running

This commit is contained in:
Paul Akhamiogu
2021-09-08 00:03:49 +01:00
parent dc3ddacffa
commit a214ef9327
6 changed files with 30 additions and 16 deletions

View File

@ -1,6 +1,7 @@
package com.simplemobiletools.clock.models
sealed class TimerEvent(open val timerId: Int) {
data class Delete(override val timerId: Int) : TimerEvent(timerId)
data class Reset(override val timerId: Int, val duration: Long) : TimerEvent(timerId)
data class Start(override val timerId: Int, val duration: Long) : TimerEvent(timerId)
data class Pause(override val timerId: Int, val duration: Long) : TimerEvent(timerId)