Skip to content

Instantly share code, notes, and snippets.

@Laimiux
Last active April 3, 2018 02:57
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 Laimiux/fae4b184fefb97c8edf421af226bb9ba to your computer and use it in GitHub Desktop.
Save Laimiux/fae4b184fefb97c8edf421af226bb9ba to your computer and use it in GitHub Desktop.
data class CommentFormViewState(
val textEntered: String,
val isSubmitButtonEnabled: Boolean,
val onTextEntered: (String) -> Unit, /* Callback when user modifies the text */
val onSubmitButtonSelected: () -> Unit /* Callback when user clicks submit button */)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment