Skip to content

Instantly share code, notes, and snippets.

@gumil
Last active February 17, 2019 17:39
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 gumil/f0faaad2a167c100c3f728620a0fd8e4 to your computer and use it in GitHub Desktop.
Save gumil/f0faaad2a167c100c3f728620a0fd8e4 to your computer and use it in GitHub Desktop.
Giphy Kaskade Medium Article
internal sealed class ListAction : Action {
data class Refresh(
val limit: Int = DEFAULT_LIMIT
) : ListAction()
data class LoadMore(
val offset: Int
) : ListAction()
data class OnItemClick(
val item: GiphyItem
) : ListAction()
data class OnError(
val throwable: Throwable
) : ListAction()
companion object {
const val DEFAULT_LIMIT = 20
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment