Browse Source

Kotlin: fix wrong status type

master
Francisco Cunha 3 months ago
committed by Newgitea
parent
commit
f26d3d5e7f
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/Transport.kt

+ 3
- 3
src/Transport.kt View File

@ -75,13 +75,13 @@ abstract class Transport {
}
sealed interface Event {
fun post(status: Int)
fun post(status: TransportStatusCode)
}
data class StatusChanged (
val newStatus: TransportStatusCode
) : Event {
override fun post(status: Int) {
override fun post(status: TransportStatusCode) {
TODO("Not yet implemented")
}
}
@ -91,7 +91,7 @@ class OnSent ( // Data class to notify message sent
val rating: Rating,
val result: Result<Message> // Result is the sent message on success or an Exception on failure
) : Event {
override fun post(status: Int) {
override fun post(status: TransportStatusCode) {
TODO("Not yet implemented")
}
}


Loading…
Cancel
Save