/* Options: Date: 2025-11-07 05:07:19 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: GetLicenseChangesLog.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/licenseChangesLog", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) public class GetLicenseChangesLog : QueryDb2, IReturn { public typealias Return = QueryResponse public var id:Int? public var vossSubscriptionId:String? public var checkedAt:Date? public var checkStatus:String? public var checkNote:String? public var createdDate:Date? public var companyId:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case id case vossSubscriptionId case checkedAt case checkStatus case checkNote case createdDate case companyId } 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) vossSubscriptionId = try container.decodeIfPresent(String.self, forKey: .vossSubscriptionId) checkedAt = try container.decodeIfPresent(Date.self, forKey: .checkedAt) checkStatus = try container.decodeIfPresent(String.self, forKey: .checkStatus) checkNote = try container.decodeIfPresent(String.self, forKey: .checkNote) createdDate = try container.decodeIfPresent(Date.self, forKey: .createdDate) companyId = try container.decodeIfPresent(String.self, forKey: .companyId) } 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 vossSubscriptionId != nil { try container.encode(vossSubscriptionId, forKey: .vossSubscriptionId) } if checkedAt != nil { try container.encode(checkedAt, forKey: .checkedAt) } if checkStatus != nil { try container.encode(checkStatus, forKey: .checkStatus) } if checkNote != nil { try container.encode(checkNote, forKey: .checkNote) } if createdDate != nil { try container.encode(createdDate, forKey: .createdDate) } if companyId != nil { try container.encode(companyId, forKey: .companyId) } } } public class LicenseChangesLog : Codable { public var metaData:String? public var id:Int? public var vossSubscriptionId:String? public var checkedAt:Date? public var checkStatus:String? public var checkNote:String? // @Required() public var createdDate:Date? public var companyId:String? required public init(){} } public class LicenseChangesLogQueryResponse : Codable { public var metaData:String? public var id:Int? public var vossSubscriptionId:String? public var checkedAt:Date? public var checkStatus:String? public var checkNote:String? public var createdDate:Date? public var companyId:String? required public init(){} }