Skip to content

Instantly share code, notes, and snippets.

@pawegio
Created January 20, 2017 14:08
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 pawegio/52a569027e53742beefccb684ae57e3c to your computer and use it in GitHub Desktop.
Save pawegio/52a569027e53742beefccb684ae57e3c to your computer and use it in GitHub Desktop.
sealed class Report {
abstract val uuid: String
abstract val date: String
}
data class HourlyReport(
override val uuid: String,
override val date: String,
val hours: Int) : Report()
data class DailyReport(
override val uuid: String,
override val date: String) : Report()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment