Skip to content

Instantly share code, notes, and snippets.

@myanmarlinks
Created July 8, 2019 13:22
Show Gist options
  • Save myanmarlinks/6bd93253a62a62bb68a482c687a8da71 to your computer and use it in GitHub Desktop.
Save myanmarlinks/6bd93253a62a62bb68a482c687a8da71 to your computer and use it in GitHub Desktop.
Bridge to Kotlin Part 8
data class SomeData(val id: Int, val name: String)
enum class ScreenStateField(val someData: SomeData) {
ERROR(SomeData(1, "some data 1")),
LOADING(SomeData(2, "some data 2")),
DATA(SomeData(3, "some data 3"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment