/* Options: Date: 2024-11-23 08:55:08 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: LicenseInformationTypeQuery.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/licenses/informationtypes/", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) public class LicenseInformationTypeQuery : QueryDb2, IReturn { public typealias Return = QueryResponse public var responseStatus:ResponseStatus required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case responseStatus } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) responseStatus = try container.decodeIfPresent(ResponseStatus.self, forKey: .responseStatus) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if responseStatus != nil { try container.encode(responseStatus, forKey: .responseStatus) } } } public class LicenseInformationType : BaseModel { public var id:Int // @Required() public var name:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case id case name } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) id = try container.decodeIfPresent(Int.self, forKey: .id) name = try container.decodeIfPresent(String.self, forKey: .name) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if id != nil { try container.encode(id, forKey: .id) } if name != nil { try container.encode(name, forKey: .name) } } } public class LicenseInformationTypeQueryResponse : Codable { /** * The license information type id */ // @ApiMember(Description="The license information type id") public var id:Int /** * The license information type name */ // @ApiMember(Description="The license information type name") public var name:String required public init(){} } public class BaseModel : Codable { required public init(){} }