Skip to content

Instantly share code, notes, and snippets.

@micHar
Created January 31, 2022 09:28
Show Gist options
  • Save micHar/4bd4104c05f984258466aca7a785c34a to your computer and use it in GitHub Desktop.
Save micHar/4bd4104c05f984258466aca7a785c34a to your computer and use it in GitHub Desktop.
interface Message {
val timestamp: DateTime
}
class TextMessage(
val text: String,
override val timestamp: DateTime
) : Message
class ImgMessage(
val imgUri: URI,
override val timestamp: DateTime
) : Message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment