/* Options: Date: 2025-05-04 22:28:40 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: 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 */ using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using Voice.Api.Messaging; using Voice.Api.Sessions; namespace Voice.Api.Messaging { public enum MessageDirections { Incoming, Outgoing, } public partial class MessageInfo { public virtual string Id { get; set; } public virtual string AccountId { get; set; } public virtual string CustomerId { get; set; } public virtual string EndpointId { get; set; } public virtual string EndpointDisplayName { get; set; } public virtual string Date { get; set; } public virtual MessageDirections Direction { get; set; } public virtual string OtherAddress { get; set; } public virtual string Sender { get; set; } public virtual string Text { get; set; } public virtual bool IsUnread { get; set; } } } namespace Voice.Api.Sessions { [Route("/sessions/{sessionId}/messages", "POST")] [Route("/messages")] public partial 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")] public virtual string SessionId { get; set; } /// ///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")] public virtual string EndpointId { get; set; } /// ///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")] public virtual string ToAddress { get; set; } /// ///The body of the message /// [ApiMember(Description="The body of the message")] public virtual string Body { get; set; } } }