
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
Teaching how to use gradle.
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()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy