Last active
December 11, 2018 07:01
-
-
Save plusmobileapps/64dac529bd8a968acc38e6ff791dba01 to your computer and use it in GitHub Desktop.
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
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