remote.Message.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yass Show documentation
Show all versions of yass Show documentation
Yet Another Service Solution
package ch.softappeal.yass.remote
sealed class Message
class Request(val serviceId: Int, val methodId: Int, val arguments: List) : Message()
abstract class Reply : Message() {
internal 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