/* Options: Date: 2026-08-01 16:55:11 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://dmsshow.kyocerasolutions.cz //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: BrotherTemplateQuestionResponse.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/{Brand}/templates/{TemplateGuid}/submit") public class BrotherTemplateQuestionResponse : QuestionRequestDto { //question:IClientQuestion ignored. Swift doesn't support interface properties required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case question } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) question = try container.decodeIfPresent(IClientQuestion.self, forKey: .question) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if question != nil { try container.encode(question, forKey: .question) } } } public enum Brand : String, Codable { case Desktop case Hp case Kyocera case NeaScan case Samsung case FujiXerox case Ta case Utax case Epson case ScanFront400 case Sharp case Ricoh case FujiFilm case Brother } public class RequestBase : DtoBase { 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 QuestionRequestDto : RequestBase { public var templateGuid:String? public var questionGuid:String? public var parent:String? public var folderBrowser:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case templateGuid case questionGuid case parent case folderBrowser } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) templateGuid = try container.decodeIfPresent(String.self, forKey: .templateGuid) questionGuid = try container.decodeIfPresent(String.self, forKey: .questionGuid) parent = try container.decodeIfPresent(String.self, forKey: .parent) folderBrowser = try container.decodeIfPresent(String.self, forKey: .folderBrowser) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if templateGuid != nil { try container.encode(templateGuid, forKey: .templateGuid) } if questionGuid != nil { try container.encode(questionGuid, forKey: .questionGuid) } if parent != nil { try container.encode(parent, forKey: .parent) } if folderBrowser != nil { try container.encode(folderBrowser, forKey: .folderBrowser) } } } public protocol IClientQuestion : ITemplateQuestion { var questionGuid:String? { get set } var valueDisplayed:String? { get set } var valueReturned:String? { get set } var answered:Bool? { get set } var regexMatches:Bool? { get set } var regexHint:String? { get set } } public class DtoBase : Codable { public var brand:Brand? required public init(){} } public enum TemplateQuestionType : String, Codable { case Edit case List case EditList case Browse case Password case Date case Time case Boolean case Integer case Double case BrowseList } public protocol ITemplatePicklist : IStatus { var guid:String? { get set } } public protocol ITemplateQuestion : IStatus { var tagName:String? { get set } var question:String? { get set } var tooltip:String? { get set } var defaultValue:String? { get set } var hideDefaultValue:Bool? { get set } var regex:String? { get set } var sample:String? { get set } var questionType:TemplateQuestionType? { get set } var minimumSize:Int? { get set } var maximumSize:Int? { get set } var isRequired:Bool? { get set } //picklist:ITemplatePicklist ignored. Swift doesn't support interface properties } public protocol IStatus : IInterface { var status:Bool? { get set } } public protocol IInterface { }