Created
January 25, 2018 03:33
-
-
Save n8ebel/d8726b2540feb227e956fbbdacf816f7 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
/** | |
* Representation of [Toast] data that can be exposed by a view model, observed, and bound to | |
* the current UI | |
*/ | |
sealed class ToastData | |
data class ShortToast(@StringRes val msgId:Int) : ToastData() | |
data class LongToast(@StringRes val msgId:Int) : ToastData() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment