/* Options: Date: 2025-05-04 23:06:14 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SendMessage.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* @Route(Path="/sessions/{sessionId}/messages", Verbs="POST") // @Route(Path="/messages") open class SendMessage : IReturn { /** * The ID of the session you want to post a message to. Specify either this or EndpointId+ToAddress */ @ApiMember(Description="The ID of the session you want to post a message to. Specify either this or EndpointId+ToAddress") open var sessionId:String? = null /** * The ID of the endpoint you want to post a message to. Typically the ID of a phone number endpoint. Not used if SessionId is specified */ @ApiMember(Description="The ID of the endpoint you want to post a message to. Typically the ID of a phone number endpoint. Not used if SessionId is specified") open var endpointId:String? = null /** * The address of the party you want to send a message to, e.g. +15556667777. Not used if SessionId is specified */ @ApiMember(Description="The address of the party you want to send a message to, e.g. +15556667777. Not used if SessionId is specified") open var toAddress:String? = null /** * The body of the message */ @ApiMember(Description="The body of the message") open var body:String? = null companion object { private val responseType = MessageInfo::class.java } override fun getResponseType(): Any? = SendMessage.responseType } open class MessageInfo { open var id:String? = null open var accountId:String? = null open var customerId:String? = null open var endpointId:String? = null open var endpointDisplayName:String? = null open var date:String? = null open var direction:MessageDirections? = null open var otherAddress:String? = null open var sender:String? = null open var text:String? = null open var isUnread:Boolean? = null } enum class MessageDirections { Incoming, Outgoing, }