/* Options: Date: 2026-10-20 17:39:11 SwiftVersion: 5.0 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://brendle-schneider-servdesk.eras-online.de //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: SmtpConfigTls.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/files/Tls", "POST") // @DataContract public class SmtpConfigTls : SmtpConfig, IReturn { public typealias Return = SmtpConfigResponse // @DataMember(Name="SecurityType") public var SecurityType:SecurityType required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case SecurityType } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) SecurityType = try container.decodeIfPresent(SecurityType.self, forKey: .SecurityType) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if SecurityType != nil { try container.encode(SecurityType, forKey: .SecurityType) } } } public class SmtpConfigResponse : Codable { public var responseStatus:ResponseStatus required public init(){} } public enum SecurityType : String, Codable { case Ssl case Tls case Certificate } // @DataContract public class SmtpConfig : Codable { // @DataMember(Name="Host") public var Host:String // @DataMember(Name="Port") public var Port:String // @DataMember(Name="SecurityType") public var SecurityType:SecurityType // @DataMember(Name="Username") public var Username:String // @DataMember(Name="Password") public var Password:String // @DataMember(Name="SmtpFromEmail") public var SmtpFromEmail:String required public init(){} }