commonMain.com.bselzer.gw2.v2.model.profession.track.TrainingTrack.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of v2-model Show documentation
Show all versions of v2-model Show documentation
Guild Wars 2 API models for v2-client.
The newest version!
package com.bselzer.gw2.v2.model.profession.track
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
abstract class TrainingTrack(
@SerialName("cost")
val cost: Int = 0
) {
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as TrainingTrack
if (cost != other.cost) return false
return true
}
override fun hashCode(): Int {
return cost
}
}