' Options:
'Date: 2025-05-05 01:08:47
'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: ListMessages.*
'''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
Imports Voice.Api.Messaging
Namespace Global
Namespace Voice.Api
Public Partial Class ListRequest(Of T)
Implements IGet
'''
'''The page of data to retrieve
'''
Public Overridable Property Page As Integer
'''
'''If you want all objects to be returned. This should be used with care
'''
Public Overridable Property All As Boolean
'''
'''The number per page to retrieve
'''
Public Overridable Property CountPerPage As Integer
'''
'''Specific IDs
'''
Public Overridable Property SpecificIds As List(Of String)
'''
'''Specify a sort field
'''
Public Overridable Property SortField As String
'''
'''Specify a sort order
'''
Public Overridable Property SortOrder As SortOrders
'''
'''Disables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array
'''
Public Overridable Property SimplifiedPaging As Boolean
End Class
Public Partial Class ListResponse(Of T)
'''
'''The items
'''
Public Overridable Property Items As List(Of MessageInfo)
'''
'''The total number of items
'''
Public Overridable Property TotalCount As Integer
'''
'''The total number of pages
'''
Public Overridable Property TotalPages As Integer
'''
'''Are there more pages of items? Used with simplified paging
'''
Public Overridable Property HasMorePages As Boolean
End Class
Public Enum SortOrders
Ascend
Descend
End Enum
End Namespace
Namespace Voice.Api.Messaging
Public Partial Class ListMessages
Inherits ListRequest(Of MessageInfo)
Implements IReturn(Of ListResponse(Of MessageInfo))
'''
'''The IDs of the account whose messages you want to retrieve
'''
Public Overridable Property AccountIds As List(Of String)
'''
'''The IDs of the customers whose messages you want to retrieve
'''
Public Overridable Property CustomerIds As List(Of String)
'''
'''The IDs of the endpoints whose messages you want to retrieve
'''
Public Overridable Property EndpointIds As List(Of String)
'''
'''The ID of the conversations whose messages you want to retrieve
'''
Public Overridable Property ConversationIds As List(Of String)
'''
'''The date after which messages should be retrieved
'''
Public Overridable Property AfterDate As String
End Class
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
End Namespace