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

de.kevcodez.pubg.model.season.Season.kt Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy