/* Options: Date: 2024-12-23 11:52:31 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: ReferFriendLinkUsedRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/share/refer-friend-link-used", "POST") public class ReferFriendLinkUsedRequest : IReturn, IPost, Codable { public typealias Return = ReferFriendLinkUsedResponse public var referFriendToken:String required public init(){} } public class ReferFriendLinkUsedResponse : Codable { public var referringUser:ReferFriendUser public var expiresAt:Date? public var state:ReferFriendState required public init(){} } public class ReferFriendUser : Codable { public var firstName:String public var lastName:String public var profilePhotoUrl:String required public init(){} } public enum ReferFriendState : String, Codable { case Available case Awarded case CanNotReferYourself case YouWereAlreadySignedUp case Expired }