singleton repo for selectedTimer

This commit is contained in:
Lukas Barragan Torres 2023-04-18 10:41:58 +02:00
parent 42eb9cf208
commit 8f84c24bad

View file

@ -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
} }