/* Options: Date: 2025-08-04 04:14:38 SwiftVersion: 5.0 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://szallitoiportal-be.veolia.hu //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: BrowseTenderRoundAllDocumentType.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/tender/{tenderid}/round/{tenderroundid}/documenttype", "GET") public class BrowseTenderRoundAllDocumentType : IReturn, IGet, Codable { public typealias Return = BrowseTenderRoundAllDocumentTypeResponse public var tenderId:Int public var tenderRoundId:Int required public init(){} } public class BrowseTenderRoundAllDocumentTypeResponse : ResponseBase { public var documentTypes:[TenderRoundDocumentTypeSimple] = [] required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case documentTypes } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) documentTypes = try container.decodeIfPresent([TenderRoundDocumentTypeSimple].self, forKey: .documentTypes) ?? [] } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if documentTypes.count > 0 { try container.encode(documentTypes, forKey: .documentTypes) } } } public class ResponseBase : Codable { public var responseStatus:ResponseStatus required public init(){} } public class TenderRoundDocumentTypeSimple : Codable { public var id:Int public var tenderRoundId:Int public var documentType:String required public init(){} }