singleton repo for selectedTimer
This commit is contained in:
parent
42eb9cf208
commit
8f84c24bad
1 changed files with 5 additions and 2 deletions
|
@ -1,11 +1,14 @@
|
||||||
package be.ugent.sel.studeez.screens.timers
|
package be.ugent.sel.studeez.data
|
||||||
|
|
||||||
import be.ugent.sel.studeez.data.local.models.timer_functional.FunctionalTimer
|
import be.ugent.sel.studeez.data.local.models.timer_functional.FunctionalTimer
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
import javax.inject.Singleton
|
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
|
@Singleton
|
||||||
class SelectedTimerRepo @Inject constructor(){
|
class SelectedTimerRepo @Inject constructor(){
|
||||||
var selectedTimer: FunctionalTimer? = null
|
var selectedTimer: FunctionalTimer? = null
|
||||||
|
|
||||||
}
|
}
|
Reference in a new issue