Skip to content

Instantly share code, notes, and snippets.

@n8ebel
Created January 25, 2018 03:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n8ebel/d8726b2540feb227e956fbbdacf816f7 to your computer and use it in GitHub Desktop.
Save n8ebel/d8726b2540feb227e956fbbdacf816f7 to your computer and use it in GitHub Desktop.
/**
* 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