/* Options: Date: 2025-05-04 23:13:34 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: NewDeviceToken.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* /** * Create a new device token if it doesn't exist already */ @Route(Path="/app/tokens", Verbs="POST") @Api(Description="Create a new device token if it doesn't exist already") open class NewDeviceToken : IReturn, IPost { /** * The type of device */ @ApiMember(Description="The type of device") open var deviceType:DeviceTypes? = null /** * The device token to save */ @ApiMember(Description="The device token to save") open var token:String? = null companion object { private val responseType = DeviceTokenInfo::class.java } override fun getResponseType(): Any? = NewDeviceToken.responseType } open class DeviceTokenInfo { open var deviceType:DeviceTypes? = null open var token:String? = null } enum class DeviceTypes { Web, IOS, Android, }