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

commonMain.com.bselzer.gw2.v2.intl.model.Translation.kt Maven / Gradle / Ivy

Go to download

Internalization support by mapping translations from Guild Wars 2 API models.

There is a newer version: 3.13.0
Show newest version
package com.bselzer.gw2.v2.intl.model

import kotlinx.serialization.Serializable

@Serializable
data class Translation(
    /**
     * The default English text.
     */
    val default: String,

    /**
     * The translated version of the [default] text.
     */
    val translated: String,

    /**
     * The language the [translated] text is in.
     */
    val language: String,
) : Comparable {
    override fun compareTo(other: Translation): Int = translated.compareTo(other.translated)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy