Created
July 10, 2019 21:11
-
-
Save zsoltk/22a97e8a5de91a6c714f278c398654f9 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
interface FooView : Consumer<ViewModel>, ObservableSource<Event> { | |
data class ViewModel( | |
val title: String, | |
val bgColor: Int | |
) | |
sealed class Event { | |
object ButtonClicked : Event() | |
data class TextFocusChanged(val hasFocus: Boolean) : Event() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment