AddServerRequest

data class AddServerRequest(server: Server) : SignaldRequestBodyV1<AddServer, String>

add a new server to connect to. Returns the new server's UUID.

Constructors

AddServerRequest
Link copied to clipboard
common
fun AddServerRequest(server: Server)

Functions

getTypedResponseOrNull
Link copied to clipboard
common
open override fun getTypedResponseOrNull(responseWrapper: JsonMessageWrapper<*>): String?
A function to resolve the response body by verifying the type of the response and returning a non-null value iff the wrapper and data is the right type.
submit
Link copied to clipboard
common
fun submit(socketCommunicator: SocketCommunicator): String

Properties

id
Link copied to clipboard
common
val id: String
The id to include in the request.
server
Link copied to clipboard
common
val server: Server
version
Link copied to clipboard
common
val version: String
The version to include in the request.