localdatetime version
This commit is contained in:
parent
dc43b26dc0
commit
e20e972b88
5 changed files with 64 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
package be.ugent.sel.studeez.data.local.models.timer_functional
|
||||
|
||||
abstract class FunctionalTimer(initialValue: Int) {
|
||||
val time: Time = Time(initialValue)
|
||||
var time: Time = Time(initialValue)
|
||||
var view: StudyState = StudyState.FOCUS
|
||||
|
||||
fun getHoursMinutesSeconds(): HoursMinutesSeconds {
|
||||
|
|
|
@ -4,6 +4,10 @@ class Time(initialTime: Int) {
|
|||
|
||||
var time = initialTime
|
||||
|
||||
fun min(i: Int) {
|
||||
time -= i
|
||||
}
|
||||
|
||||
fun minOne() {
|
||||
time--
|
||||
}
|
||||
|
|
Reference in a new issue