Reduce timer icon sizes, add animation for timer removal

This commit is contained in:
Paul Akhamiogu
2021-09-08 20:00:59 +01:00
parent 94de14b52d
commit 666a9ef44d
7 changed files with 61 additions and 16 deletions

View File

@ -1,10 +1,12 @@
package com.simplemobiletools.clock.models
import com.simplemobiletools.clock.helpers.INVALID_TIMER_ID
sealed class TimerEvent(open val timerId: Int) {
data class Delete(override val timerId: Int) : TimerEvent(timerId)
data class Reset(override val timerId: Int) : 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)
data class Finish(override val timerId: Int, val duration: Long) : TimerEvent(timerId)
data class Refresh(override val timerId: Int) : TimerEvent(timerId)
object Refresh : TimerEvent(INVALID_TIMER_ID)
}