/* Options: Date: 2025-05-04 23:23:12 SwiftVersion: 6.0 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: NewDeviceToken.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack /** * Create a new device token if it doesn't exist already */ // @Route("/app/tokens", "POST") // @Api(Description="Create a new device token if it doesn't exist already") public class NewDeviceToken : IReturn, IPost, Codable { public typealias Return = DeviceTokenInfo /** * The type of device */ // @ApiMember(Description="The type of device") public var deviceType:DeviceTypes? /** * The device token to save */ // @ApiMember(Description="The device token to save") public var token:String? required public init(){} } public class DeviceTokenInfo : Codable { public var deviceType:DeviceTypes? public var token:String? required public init(){} } public enum DeviceTypes : String, Codable { case Web case iOS case Android }