/* Options: Date: 2024-12-23 11:18:56 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: SharePlaceLinkUsedRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/share/share-place-link-used", "POST") public class SharePlaceLinkUsedRequest : IReturn, IPost, Codable { public typealias Return = SharePlaceLinkUsedResponse public var sharePlaceToken:String public var locale:Locale? required public init(){} } public class SharePlaceLinkUsedResponse : Codable { public var sharingUser:SharingUser public var place:SharedPlace public var expiresAt:Date? public var state:SharingState required public init(){} } public enum Locale : String, Codable { case EnUs case NbNo } public class SharingUser : Codable { public var firstName:String public var lastName:String public var profilePhotoUrl:String required public init(){} } public class SharedPlace : Codable { public var id:Int public var guid:String public var name:String public var logoUrl:String public var imageUrl:String public var openingHours:OpeningHours public var timeZoneDto:TimeZoneDto public var rootCategories:[SharedRootCategory] = [] public var priceMainDish:SharePriceMainDish public var wearPriceProfiles:[ShareWearPriceProfile] = [] required public init(){} } public enum SharingState : String, Codable { case Teaser case Awarded case SelfShare case Expired } public enum PriceMainDish : String, Codable { case Value case Medium case High case FineDining } public class OpeningHours : Codable { public var weekly:WeeklyOpeningHours required public init(){} } public class TimeZoneDto : Codable { @TimeSpan public var baseUtcOffset:TimeInterval public var daylightName:String public var displayName:String public var id:String public var standardName:String public var supportsDaylightSavingTime:Bool required public init(){} } public class SharedRootCategory : Codable { public var name:String public var absoluteSlug:String required public init(){} } public class SharePriceMainDish : Codable { public var label:String public var slug:PriceMainDish required public init(){} } public class ShareWearPriceProfile : Codable { public var label:String public var slug:String required public init(){} } public class WeeklyOpeningHours : Codable { public var monday:OpeningHour public var tuesday:OpeningHour public var wednesday:OpeningHour public var thursday:OpeningHour public var friday:OpeningHour public var saturday:OpeningHour public var sunday:OpeningHour required public init(){} } public class OpeningHour : Codable { public var openAtHour:Int public var openAtMinute:Int public var closeAtHour:Int public var closeAtMinute:Int required public init(){} }