/* Options: Date: 2025-05-04 22:28:41 SwiftVersion: 6.0 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: NewFlowMessage.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/flows/message") public class NewFlowMessage : IReturnVoid, Codable { /** * The ID of the endpoint that received the message */ // @ApiMember(Description="The ID of the endpoint that received the message") public var endpointId:String? /** * The session values */ // @ApiMember(Description="The session values") public var sessionParameters:Struct? /** * The from address */ // @ApiMember(Description="The from address") public var fromAddress:String? /** * The to address */ // @ApiMember(Description="The to address") public var toAddress:String? /** * The identity of the sender */ // @ApiMember(Description="The identity of the sender") public var identity:String? /** * The display name of the sender (will default to identity if not specified */ // @ApiMember(Description="The display name of the sender (will default to identity if not specified") public var displayName:String? /** * The URL to call when replies need to be sent back */ // @ApiMember(Description="The URL to call when replies need to be sent back") public var messageUrl:String? required public init(){} } public class Struct : List { required public init(){ super.init() } required public init(from decoder: Decoder) throws { try super.init(from: decoder) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) } } public class Value : Codable { public var boolValue:Bool? public var stringValue:String? public var numberValue:Double? public var listValue:[Struct]? public var structValue:Struct? required public init(){} }