/* Options: Date: 2025-12-06 07:06:18 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://backoffice-api.brovs.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: LotteryGetAllRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/lottery/get_all", "GET") public class LotteryGetAllRequest : IReturn, IGet, Codable { public typealias Return = LotteryGetAllResponse public var state:LotteryState? required public init(){} } public class LotteryGetAllResponse : Codable { public var lotteries:[LotteryListingDto] = [] required public init(){} } public enum LotteryState : String, Codable { case Draft case Published case Archived } public class LotteryListingDto : Codable { public var id:Int? public var startAt:Date? public var stopAt:Date? public var title:String? public var countryCode:String? public var state:TimeRelativeLotteryState? required public init(){} } public enum TimeRelativeLotteryState : String, Codable { case Draft case PublishedUpcoming case PublishedActive case PublishedEndedDrawWinner case PublishedEndedContactWinner case Archived }