View IValueStore.kt
interface IValueStore<V> {
fun getValue(): V
fun putValue(v: V)
fun clear()
}
View BasePresenter.kt
class BasePresenter {
private val detachDisposable = CompositeDisposable()
private val destroyDisposable = CompositeDisposable()
fun unsubscribeOnDetach(d: Disposable) {
detachDisposable.add(d)
}
fun unsubscribeOnDestroy(d: Disposable) {