/* Options: Date: 2024-12-23 12:12:05 SwiftVersion: 5.0 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://consumer-api.brovs.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: LotteryGetRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/lottery", "GET") public class LotteryGetRequest : IReturn, IGet, Codable { public typealias Return = LotteryGetResponse required public init(){} } public class LotteryGetResponse : Codable { public var activeLottery:ActiveLotteryDto public var relevantPreviousLottery:PreviousLotteryDto required public init(){} } public class ActiveLotteryDto : Codable { public var id:Int public var imageUrls:[String] = [] public var startAt:Date public var stopAt:Date public var title:String public var Description:String public var yourTicketCount:Int required public init(){} } public class PreviousLotteryDto : Codable { public var id:Int public var startAt:Date public var stopAt:Date public var title:String public var yourTicketCount:Int public var winner:String public var youAreTheWinner:Bool required public init(){} }