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

commonMain.com.bselzer.gw2.v2.model.title.Title.kt Maven / Gradle / Ivy

The newest version!
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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy