Last active
February 17, 2019 17:39
-
-
Save gumil/f0faaad2a167c100c3f728620a0fd8e4 to your computer and use it in GitHub Desktop.
Giphy Kaskade Medium Article
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
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