Package spaceEngineers.transport.jsonrpc

Types

Link copied to clipboard
interface JsonRpcError<T>
Link copied to clipboard
interface JsonRpcResponse<T>
Link copied to clipboard
@Serializable
data class KotlinJsonRpcError(    val code: Int,     val message: String,     val data: JsonElement? = null) : RuntimeException, JsonRpcError<JsonElement>
Link copied to clipboard
@Serializable
data class KotlinJsonRpcRequest(    val id: Long,     val jsonrpc: String = "2.0",     val method: String,     val params: Map<String, JsonElement?>)
Link copied to clipboard
@Serializable
data class KotlinJsonRpcResponse<T>(    val id: Long? = null,     val jsonrpc: String = "2.0",     val result: T? = null,     val error: KotlinJsonRpcError? = null) : JsonRpcResponse<T>
Link copied to clipboard
data class RemoteException(    val className: String? = null,     val message: String? = null,     val stacktrace: String? = null) : Throwable

Functions

Link copied to clipboard
fun JsonObject.dataStringAttribute(name: String): String?
Link copied to clipboard
fun <T> JsonRpcResponse<T>.resultOrThrow(): T?

Properties

Link copied to clipboard
val KotlinJsonRpcError.remoteException: RemoteException?