Skip to content

Instantly share code, notes, and snippets.

@ntoskrnl
Created September 30, 2017 16:25
Show Gist options
  • Save ntoskrnl/33606aec40100c054fa86f675cbeca3c to your computer and use it in GitHub Desktop.
Save ntoskrnl/33606aec40100c054fa86f675cbeca3c to your computer and use it in GitHub Desktop.
class JsonRpcRequest(
val id: Long,
val method: String,
val params: Map<String, Any?> = emptyMap()
)
data class JsonRpcResponse(
val id: Long,
val result: JsonElement,
val error: JsonRpcError
)
class JsonRpcError(
val code: Int,
val message: String
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment