Skip to content

Instantly share code, notes, and snippets.

@plusmobileapps
Last active December 11, 2018 07:01
Show Gist options
  • Save plusmobileapps/64dac529bd8a968acc38e6ff791dba01 to your computer and use it in GitHub Desktop.
Save plusmobileapps/64dac529bd8a968acc38e6ff791dba01 to your computer and use it in GitHub Desktop.
sealed class DataWrapper {
abstract val id: Int
data class CarouselData(override val id: Int = UUID.randomUUID().hashCode(), val items: List<CarouselItem>) :
DataWrapper()
data class CardData(override val id: Int, val header: String, val imageUrl: String, val body: String) :
DataWrapper()
}
data class CarouselItem(val id: Int, val header: String, val body: String)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment