' Options: 'Date: 2025-05-04 23:22:59 'Version: 8.71 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://team.evovoice.io ' '''GlobalNamespace: '''MakePartial: True '''MakeVirtual: True '''MakeDataContractsExtensible: False '''AddReturnMarker: True '''AddDescriptionAsComments: True '''AddDataContractAttributes: False '''AddIndexesToDataMembers: False '''AddGeneratedCodeAttributes: False '''AddResponseStatus: False '''AddImplicitVersion: '''InitializeCollections: False '''ExportValueTypes: False 'IncludeTypes: SendMessage.* '''ExcludeTypes: '''AddNamespaces: '''AddDefaultXmlNamespace: http://schemas.servicestack.net/types Imports System Imports System.IO Imports System.Collections Imports System.Collections.Generic Imports System.Runtime.Serialization Imports ServiceStack Imports ServiceStack.DataAnnotations Imports Voice.Api.Messaging Imports Voice.Api.Sessions Namespace Global Namespace Voice.Api.Messaging Public Enum MessageDirections Incoming Outgoing End Enum Public Partial Class MessageInfo Public Overridable Property Id As String Public Overridable Property AccountId As String Public Overridable Property CustomerId As String Public Overridable Property EndpointId As String Public Overridable Property EndpointDisplayName As String Public Overridable Property [Date] As String Public Overridable Property Direction As MessageDirections Public Overridable Property OtherAddress As String Public Overridable Property Sender As String Public Overridable Property Text As String Public Overridable Property IsUnread As Boolean End Class End Namespace Namespace Voice.Api.Sessions Public Partial Class SendMessage Implements IReturn(Of MessageInfo) ''' '''The ID of the session you want to post a message to. Specify either this or EndpointId+ToAddress ''' Public Overridable Property SessionId As String ''' '''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 ''' Public Overridable Property EndpointId As String ''' '''The address of the party you want to send a message to, e.g. +15556667777. Not used if SessionId is specified ''' Public Overridable Property ToAddress As String ''' '''The body of the message ''' Public Overridable Property Body As String End Class End Namespace End Namespace