All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.bselzer.gw2.v2.model.account.token.ApiKey.kt Maven / Gradle / Ivy

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

// TODO validation?
@Scope(Requirement.REQUIRED, Permission.ACCOUNT)
@Serializable
@JvmInline
value class ApiKey(override val value: String = "") : StringIdentifier {
    override fun toString(): String = value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy