commonMain.com.bselzer.gw2.v2.model.title.Title.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.
package com.bselzer.gw2.v2.model.title
import com.bselzer.gw2.v2.model.achievement.AchievementId
import com.bselzer.gw2.v2.model.achievement.AchievementPoints
import com.bselzer.ktx.value.identifier.Identifiable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Title(
@SerialName("id")
override val id: TitleId = TitleId(),
@SerialName("name")
val name: String = "",
/**
* The ids of the achievements required to grant the title.
* @see the wiki
*/
@SerialName("achievements")
val achievementIds: List = emptyList(),
/**
* The number of achievement points required to grant the title.
*
* Null if achievement points are not required
*/
@SerialName("ap_required")
val achievementPointsRequired: AchievementPoints? = null
) : Identifiable