(* Options: Date: 2025-05-05 01:24:39 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //GlobalNamespace: //MakeDataContractsExtensible: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //ExportValueTypes: False IncludeTypes: ListMessages.* //ExcludeTypes: //InitializeCollections: False //AddNamespaces: *) namespace Voice.Api open System open System.IO open System.Collections open System.Collections.Generic open System.Runtime.Serialization open ServiceStack open ServiceStack.DataAnnotations type SortOrders = | Ascend = 0 | Descend = 1 [] type ListRequest() = interface IGet /// ///The page of data to retrieve /// [] member val Page:Int32 = new Int32() with get,set /// ///If you want all objects to be returned. This should be used with care /// [] member val All:Boolean = new Boolean() with get,set /// ///The number per page to retrieve /// [] member val CountPerPage:Int32 = new Int32() with get,set /// ///Specific IDs /// [] member val SpecificIds:ResizeArray = null with get,set /// ///Specify a sort field /// [] member val SortField:String = null with get,set /// ///Specify a sort order /// [] member val SortOrder:SortOrders = new SortOrders() with get,set /// ///Disables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array /// [] member val SimplifiedPaging:Boolean = new Boolean() with get,set type MessageDirections = | Incoming = 0 | Outgoing = 1 [] type MessageInfo() = member val Id:String = null with get,set member val AccountId:String = null with get,set member val CustomerId:String = null with get,set member val EndpointId:String = null with get,set member val EndpointDisplayName:String = null with get,set member val Date:String = null with get,set member val Direction:MessageDirections = new MessageDirections() with get,set member val OtherAddress:String = null with get,set member val Sender:String = null with get,set member val Text:String = null with get,set member val IsUnread:Boolean = new Boolean() with get,set [] type ListResponse() = /// ///The items /// [] member val Items:ResizeArray = null with get,set /// ///The total number of items /// [] member val TotalCount:Int32 = new Int32() with get,set /// ///The total number of pages /// [] member val TotalPages:Int32 = new Int32() with get,set /// ///Are there more pages of items? Used with simplified paging /// [] member val HasMorePages:Boolean = new Boolean() with get,set [] [] type ListMessages() = inherit ListRequest() interface IReturn> /// ///The IDs of the account whose messages you want to retrieve /// [] member val AccountIds:ResizeArray = null with get,set /// ///The IDs of the customers whose messages you want to retrieve /// [] member val CustomerIds:ResizeArray = null with get,set /// ///The IDs of the endpoints whose messages you want to retrieve /// [] member val EndpointIds:ResizeArray = null with get,set /// ///The ID of the conversations whose messages you want to retrieve /// [] member val ConversationIds:ResizeArray = null with get,set /// ///The date after which messages should be retrieved /// [] member val AfterDate:String = null with get,set