Created
September 30, 2017 16:25
-
-
Save ntoskrnl/33606aec40100c054fa86f675cbeca3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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