/* Options: Date: 2025-07-17 23:38:33 SwiftVersion: 5.0 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://hcbtas-q-albamfs-api.azurewebsites.net //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: ScriptTrackerReq.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/script", "GET") // @Route("/script/{Sprint}", "GET") // @Route("/script/{Sprint}/{Country}/{Language}/{Section}/{Element}", "GET") // @Route("/script/{Sprint}/{Country}/{Language}/{Section}/{ItemCode}/{Element}", "GET") public class ScriptTrackerReq : IReturn, Codable { public typealias Return = ScriptTracker public var sprint:String? public var country:String? public var language:String? public var section:String? public var itemCode:String? public var element:String? required public init(){} } public class ScriptTracker : Entity { public var sprint:String? public var country:String? public var language:String? public var section:String? public var itemCode:String? public var element:String? public var value:String? public var isFromMerge:Bool? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case sprint case country case language case section case itemCode case element case value case isFromMerge } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) sprint = try container.decodeIfPresent(String.self, forKey: .sprint) country = try container.decodeIfPresent(String.self, forKey: .country) language = try container.decodeIfPresent(String.self, forKey: .language) section = try container.decodeIfPresent(String.self, forKey: .section) itemCode = try container.decodeIfPresent(String.self, forKey: .itemCode) element = try container.decodeIfPresent(String.self, forKey: .element) value = try container.decodeIfPresent(String.self, forKey: .value) isFromMerge = try container.decodeIfPresent(Bool.self, forKey: .isFromMerge) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if sprint != nil { try container.encode(sprint, forKey: .sprint) } if country != nil { try container.encode(country, forKey: .country) } if language != nil { try container.encode(language, forKey: .language) } if section != nil { try container.encode(section, forKey: .section) } if itemCode != nil { try container.encode(itemCode, forKey: .itemCode) } if element != nil { try container.encode(element, forKey: .element) } if value != nil { try container.encode(value, forKey: .value) } if isFromMerge != nil { try container.encode(isFromMerge, forKey: .isFromMerge) } } } public class Entity : IEntity, Codable { public var id:String? required public init(){} } public class Entity : Codable { public var logoUri:String? public var name:String? public var contactDetails:ContactDetails? required public init(){} }