/* Options: Date: 2024-07-03 12:35:49 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GenerateToken.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/token", Verbs="POST") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") open class GenerateToken : IReturn { /** * The token identifier */ @ApiMember(Description="The token identifier") var TokenIdentifier:String? = null /** * The token type */ @ApiMember(Description="The token type", IsRequired=true) var Type:Int? = null /** * The token expiration datetime */ @ApiMember(Description="The token expiration datetime", IsRequired=true) var ExpirationDate:Date? = null /** * The unique token.If empty a unique token will be generated automatically */ @ApiMember(Description="The unique token.If empty a unique token will be generated automatically", IsRequired=true) var UniqueToken:String? = null companion object { private val responseType = TokenResponse::class.java } override fun getResponseType(): Any? = GenerateToken.responseType } open class TokenResponse { /** * The token indentifier */ @ApiMember(Description="The token indentifier") var TokenIdentifier:String? = null var Type:Int? = null /** * The unique token */ @ApiMember(Description="The unique token", IsRequired=true) var UniqueToken:String? = null var ExpirationDate:Date? = null var ResponseStatus:ResponseStatus? = null }