commit
86bc8d9e1a
13 changed files with 123 additions and 41 deletions
|
@ -0,0 +1,14 @@
|
|||
package be.ugent.sel.studeez.data
|
||||
|
||||
import be.ugent.sel.studeez.data.local.models.timer_functional.FunctionalTimer
|
||||
import javax.inject.Inject
|
||||
import javax.inject.Singleton
|
||||
|
||||
/**
|
||||
* Used to communicate the SelectedTimer from the selection screen to the session screen.
|
||||
* Because this is a singleton-class the view-models of both screens observe the same data.
|
||||
*/
|
||||
@Singleton
|
||||
class SelectedTimerState @Inject constructor(){
|
||||
var selectedTimer: FunctionalTimer? = null
|
||||
}
|
|
@ -3,7 +3,7 @@ package be.ugent.sel.studeez.data.local.models.timer_info
|
|||
import be.ugent.sel.studeez.data.local.models.timer_functional.FunctionalPomodoroTimer
|
||||
import be.ugent.sel.studeez.data.local.models.timer_functional.FunctionalTimer
|
||||
|
||||
class BreakTimerInfo(
|
||||
class PomodoroTimerInfo(
|
||||
name: String,
|
||||
description: String,
|
||||
private val studyTime: Int,
|
Reference in a new issue