Created
November 11, 2017 12:43
-
-
Save radityagumay/2ae7b2b15d7450aa039482cc67e10436 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FooPresenter(private val dataSource: DataSource?) : BasePresenter<FooPresenter.View> { | |
fun push(data: Bar){ | |
dataSource?.push("someKey", data) | |
} | |
fun peek() : Bar { | |
return dataSource?.peek<Bar>("someKey") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment