de.kevcodez.pubg.model.season.Season.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pubg-api-wrapper Show documentation
Show all versions of pubg-api-wrapper Show documentation
Playerunknowns Battlegrounds API wrapper written in Kotlin. Requires Java 1.8+
package de.kevcodez.pubg.model.season
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.databind.JsonNode
data class Season(
val id: String,
val type: String,
var isCurrentSeason: Boolean,
var isOffseason: Boolean
) {
@JsonProperty("attributes")
private fun unpackAttributes(matches: JsonNode) {
isCurrentSeason = matches.get("isCurrentSeason").booleanValue()
isOffseason = matches.get("isOffseason").booleanValue()
}
}