-
- All Implemented Interfaces:
-
tv.mycujoo.mcls.manager.IVariableKeeper
public final class VariableKeeper implements IVariableKeeper
-
-
Constructor Summary
Constructors Constructor Description VariableKeeper(CoroutineScope dispatcher)
-
Method Summary
Modifier and Type Method Description List<String>getTimerNames()List<String>getVariableNames()UnitcreateTimerPublisher(String name)UnitcreateVariablePublisher(String name)UnitobserveOnTimer(String timerName, Function1<Pair<String, String>, Unit> callback)UnitobserveOnVariable(String variableName, Function1<Pair<String, String>, Unit> callback)StringgetValue(String name)UnitnotifyTimers(HashMap<String, TimerVariable> timerVariables)UnitnotifyVariables(HashMap<String, VariableEntity> variableEntities)-
-
Method Detail
-
getTimerNames
List<String> getTimerNames()
-
getVariableNames
List<String> getVariableNames()
-
createTimerPublisher
Unit createTimerPublisher(String name)
-
createVariablePublisher
Unit createVariablePublisher(String name)
-
observeOnTimer
Unit observeOnTimer(String timerName, Function1<Pair<String, String>, Unit> callback)
-
observeOnVariable
Unit observeOnVariable(String variableName, Function1<Pair<String, String>, Unit> callback)
-
notifyTimers
Unit notifyTimers(HashMap<String, TimerVariable> timerVariables)
-
notifyVariables
Unit notifyVariables(HashMap<String, VariableEntity> variableEntities)
-
-
-
-