/* Options: Date: 2025-11-08 11:10:25 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://s4w2.api.bettor.cc //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: GetLocationFeed.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/qry/feed/locations") public class GetLocationFeed : IReturn, Codable { public typealias Return = LocationFeed public var id:String? required public init(){} } public class LocationFeed : Codable { public var exists:Bool? public var id:String? public var lcpInfo:LocalCodePotInfo? required public init(){} } public class Ref : Codable { public var id:String? public var val:String? required public init(){} } public class Origin : Codable { public var application:BettingApp? public var ip:String? public var organization:RefEx? public var region:Ref? public var locationGroup:Ref? public var location:RefEx? public var device:RefEx? public var clerk:Ref? required public init(){} } public class LocalCodePotInfo : Codable { public var isActive:Bool? public var current:CurrentRoundInfo? public var winners:[WinnerByCode]? required public init(){} } public class WinnerByCode : Codable { public var roundId:String? public var drawnAtUtc:Date? public var slipId:String? public var betId:String? public var code:String? public var amount:Double? public var origin:Origin? public var bettor:Ref? public var locationAddressOrBettorInfo:String? required public init(){} } public class BettingApp : Codable { public var name:String? public var version:String? required public init(){} } public class RefEx : Ref { public var data:RecordDictionary? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case data } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) data = try container.decodeIfPresent(RecordDictionary.self, forKey: .data) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if data != nil { try container.encode(data, forKey: .data) } } } public class RecordDictionary : List { 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 CurrentRoundInfo : Codable { public var roundId:String? public var amount:Double? public var inertCode:String? required public init(){} }