commonMain.ch.softappeal.yass2.remote.Message.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yass2-jvm Show documentation
Show all versions of yass2-jvm Show documentation
Yet Another Service Solution
package ch.softappeal.yass2.remote
sealed class Message
class Request(val serviceId: Int, val functionId: Int, val parameters: List) : Message()
sealed class Reply : Message() {
abstract fun process(): Any?
}
class ValueReply(val value: Any?) : Reply() {
override fun process() = value
}
class ExceptionReply(val exception: Exception) : Reply() {
override fun process() = throw exception
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy