Created
October 16, 2023 15:28
-
-
Save igorescodro/19efb21e23da22b6ae1f64e99834c389 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@TypeConverter | |
fun toAlarmInterval(id: Int?): AlarmInterval? = | |
AlarmInterval.values().find { it.id == id } | |
@TypeConverter | |
fun toId(alarmInterval: AlarmInterval?): Int? = | |
alarmInterval?.id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment