class MatchPresentationLogics(
private val bagel: Bagel,
private val banState: Observable<BanState>
) {
init {
banState.subscribe {
// do what's necessary
}
}
}
Usage
// initialization
val banStateSubject = PublishSubject.create<BanState>()
val presenter = MatchPresentationLogics(bagel, banStateSubject)
...
// Sometimes later
banStateSubject.onNext(true)