/* Options: Date: 2024-12-23 11:43:22 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: ProfileGetRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/profile", "GET") public class ProfileGetRequest : IReturn, IGet, Codable { public typealias Return = ProfileGetResponse required public init(){} } public class ProfileGetResponse : Codable { public var userProfile:UserProfileDto required public init(){} } public class DateOfBirth : Codable { public var year:Int public var month:Int public var dayOfMonth:Int required public init(){} } public enum Sex : String, Codable { case Male case Female } public enum DistanceUnit : String, Codable { case Kilometer case Mile } public enum Locale : String, Codable { case EnUs case NbNo } public class HomeLocation : Codable { public var address:UserAddress public var latitude:Float public var longitude:Float required public init(){} } public class UserProfileDto : Codable { public var locale:Locale public var userGuid:String public var firstName:String public var lastName:String public var profilePhotoUrl:String public var mobilePhone:String public var mobilePhoneVerified:Bool public var email:String public var emailVerified:Bool public var hasPassword:Bool public var dateOfBirth:DateOfBirth public var sex:Sex? public var home:HomeLocation public var showDistancesIn:DistanceUnit public var managesPlacesInBusinessWeb:Bool public var pointsTotal:Int required public init(){} } public class UserAddress : Codable { public var streetName:String public var streetNumber:String public var postalCode:String public var region:String public var countryCode:String required public init(){} }