Created
January 31, 2022 09:28
-
-
Save micHar/4bd4104c05f984258466aca7a785c34a 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
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