commonMain.com.bselzer.gw2.v2.model.recipe.ingredient.RecipeIngredient.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.recipe.ingredient
import com.bselzer.ktx.value.identifier.Identifiable
import com.bselzer.ktx.value.identifier.Identifier
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
abstract class RecipeIngredient>(
@SerialName("count")
val count: Int = 0
) : Identifiable {
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as RecipeIngredient<*>
if (count != other.count) return false
return true
}
override fun hashCode(): Int {
return count
}
}