GW2v2Achievement

@Serializable
data class GW2v2Achievement(val id: GW2AchievementId, val icon: String? = null, val name: String, val description: String, val requirement: String, val lockedText: String, val type: String, val flags: List<String>, val tiers: List<GW2v2Achievement.Tier>, val prerequisites: List<Int>? = null, val rewards: List<GW2v2Achievement.Reward>? = null, val bits: List<GW2v2Achievement.Bit>? = null, val pointCap: Int? = null)

Information about an achievement.

Parameters

id

the achievement's ID

icon

the URL for the achievement's icon

name

the achievement's localized name

description

the achievement's localized description

requirement

the achievement's requirement as listed in-game

lockedText

the achievement's in-game description prior to unlocking it

type

the achievement's type

flags

the achievement's categories

tiers

the achievement's tiers

prerequisites

the IDs of the achievements that are required to progress this achievement

rewards

the achievement's rewards

bits

the achievement's bits

pointCap

the maximum number of AP that can be rewarded by an achievement flagged as "Repeatable"

Constructors

Link copied to clipboard
constructor(id: GW2AchievementId, icon: String? = null, name: String, description: String, requirement: String, lockedText: String, type: String, flags: List<String>, tiers: List<GW2v2Achievement.Tier>, prerequisites: List<Int>? = null, rewards: List<GW2v2Achievement.Reward>? = null, bits: List<GW2v2Achievement.Bit>? = null, pointCap: Int? = null)

Types

Link copied to clipboard
@Serializable
data class Bit(val type: String, val id: Int? = null, val text: String? = null)

Information about an achievement bit.

Link copied to clipboard

Information about an achievement reward.

Link copied to clipboard
@Serializable
data class Tier(val count: Int, val points: Int)

Information about an achievement's tier.

Properties

Link copied to clipboard

This field holds the achievement's bits.

Link copied to clipboard

This field holds the achievement's localized description.

Link copied to clipboard

This field holds the achievement's categories.

Link copied to clipboard
val icon: String? = null

This field holds the URL for the achievement's icon.

Link copied to clipboard

This field holds the achievement's ID.

Link copied to clipboard
@SerialName(value = "locked_text")
val lockedText: String

This field holds the achievement's in-game description prior to unlocking it.

Link copied to clipboard

This field holds the achievement's localized name.

Link copied to clipboard
@SerialName(value = "point_cap")
val pointCap: Int? = null

This field holds the maximum number of AP that can be rewarded by an achievement flagged as "Repeatable".

Link copied to clipboard
val prerequisites: List<Int>? = null

This field holds the IDs of the achievements that are required to progress this achievement.

Link copied to clipboard

This field holds the achievement's requirement as listed in-game.

Link copied to clipboard

This field holds the achievement's rewards.

Link copied to clipboard

This field holds the achievement's tiers.

Link copied to clipboard

This field holds the achievement's type.