commonMain.com.bselzer.gw2.v2.model.account.token.SubToken.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of v2-model-jvm Show documentation
Show all versions of v2-model-jvm Show documentation
Guild Wars 2 API models for v2-client.
The newest version!
package com.bselzer.gw2.v2.model.account.token
import com.bselzer.gw2.v2.scope.core.Permission
import com.bselzer.gw2.v2.scope.core.Requirement
import com.bselzer.gw2.v2.scope.core.Scope
import com.bselzer.ktx.value.identifier.StringIdentifier
import kotlinx.serialization.Serializable
import kotlin.jvm.JvmInline
/**
* The sub-token.
*
* @see createsubtoken on the wiki
*/
@Scope(Requirement.REQUIRED, Permission.ACCOUNT)
@Serializable
@JvmInline
value class SubToken(override val value: String) : StringIdentifier {
override fun toString(): String = value
}