SendingMessageBody

class SendingMessageBody(val id: String, val method: String, val params: ParamRequest, val jsonrpc: String = "2.0")

A data class the represents the structure of every message received via the socket connection

Parameters

id

a string ID that identifies each message that is sent

method

the Telnyx Message Method - ie. INVITE, BYE, MODIFY, etc.

params

the parameters that accompany each message, these are represented in ParamRequest and can be Login, Call, Bye or Modify related

See also

Constructors

Link copied to clipboard
constructor(id: String, method: String, params: ParamRequest, jsonrpc: String = "2.0")

Properties

Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard