/* Options: Date: 2024-12-23 11:23:57 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: GetSavedSearchesRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/searches/GetSavedSearches", "GET") public class GetSavedSearchesRequest : IReturn, IGet, Codable { public typealias Return = GetSavedSearchesResponse required public init(){} } public class GetSavedSearchesResponse : Codable { public var searches:[SavedSearchDto] = [] required public init(){} } public class QueryFilterDto : Codable { public var term:String public var placeGuid:String? public var adMessageGuid:String? public var categoryAbsoluteSlugs:[String] = [] public var barSpecialitySlugs:[String] = [] public var barTypeSlugs:[String] = [] public var brandNames:[String] = [] public var cuisineSlugs:[String] = [] public var mealTypeSlugs:[String] = [] public var parking:[Parking] = [] public var paymentOptions:[PaymentOption] = [] public var priceMainDishes:[PriceMainDish] = [] public var eatingSuitabilitySlugs:[String] = [] public var takeAwaySlugs:[String] = [] public var wearPriceProfileSlugs:[String] = [] public var wheelChairAccessible:Bool? public var wifi:Bool? public var outdoorSeating:Bool? public var saveFoodAndMoney:Bool? public var openAt:OpenAtTimeDto required public init(){} } public class QueryLocationDto : Codable { public var longitude:Float? public var latitude:Float? public var searchRadiusInKm:Float? required public init(){} } public class SavedSearchDto : Codable { public var id:Int public var name:String public var filter:QueryFilterDto public var location:QueryLocationDto public var filterDetails:FilterDetails public var createdAt:Date public var updatedAt:Date required public init(){} } public enum Parking : String, Codable { case StreetParking case ParkingGarageNearby } public enum PaymentOption : String, Codable { case Visa case MasterCard case AmericanExpress case Diners case Vipps } public enum PriceMainDish : String, Codable { case Value case Medium case High case FineDining } public class OpenAtTimeDto : Codable { public var weekDay:DayOfWeek public var hour:Int public var minute:Int required public init(){} } public class BarSpecialityDto : Codable { public var slug:String public var title:String required public init(){} } public class BarTypeDto : Codable { public var slug:String public var title:String required public init(){} } public class CuisineDto : Codable { public var label:String public var slug:String required public init(){} } public class MealTypeDto : Codable { public var label:String public var slug:String required public init(){} } public class ParkingDto : Codable { public var label:String public var slug:Parking required public init(){} } public class PaymentOptionDto : Codable { public var label:String public var slug:PaymentOption required public init(){} } public class EatingSuitabilityDto : Codable { public var label:String public var slug:String required public init(){} } public class TakeAwayDto : Codable { public var label:String public var slug:String required public init(){} } public class WearPriceProfileDto : Codable { public var slug:String public var label:String required public init(){} } public class PriceMainDishDto : Codable { public var title:String public var slug:PriceMainDish required public init(){} } public class FilterDetails : Codable { public var categories:[CategoryDto] = [] public var barSpecialities:[BarSpecialityDto] = [] public var barTypes:[BarTypeDto] = [] public var brands:[BrandDto] = [] public var cuisines:[CuisineDto] = [] public var mealTypes:[MealTypeDto] = [] public var parking:[ParkingDto] = [] public var paymentOptions:[PaymentOptionDto] = [] public var priceMainDishes:[PriceMainDishDto] = [] public var eatingSuitability:[EatingSuitabilityDto] = [] public var takeAways:[TakeAwayDto] = [] public var wearPriceProfiles:[WearPriceProfileDto] = [] public var rootCategories:[CategoryDto] = [] required public init(){} } public class BrandDto : Codable { public var name:String required public init(){} } public enum DayOfWeek : String, Codable { case Sunday case Monday case Tuesday case Wednesday case Thursday case Friday case Saturday } public class CategoryDto : Codable { public var name:String public var slug:String public var absoluteSlug:String public var imageUrl:String public var allImageUrl:String public var iconImageUrl:String public var position:Int required public init(){} }