beepdog
11/07/2018, 7:22 PMsealed class Message {
abstract val id: Long
abstract val type: String
abstract val channel: String
}
data class Typing(override val id: Long, override val channel: String) : Message() {
override val type = "typing"
}
That'll do okay, it's not as clean as I'd like, but it's good enough