de.kevcodez.pubg.model.match.MatchResponse.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.match
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import de.kevcodez.pubg.model.Link
import de.kevcodez.pubg.model.Relationships
import java.time.Instant
data class MatchResponse(
val data: MatchData,
val included: List,
val links: Link,
val meta: Any
)
data class MatchData(
val type: String,
val id: String,
val attributes: MatchAttributes,
val links: Link,
val relationships: Relationships
)
@JsonIgnoreProperties("stats", "tags")
data class MatchAttributes(
val createdAt: Instant,
val duration: Int,
val gameMode: String,
val mapName: String,
val shardId: String,
val titleId: String,
val isCustomMatch: Boolean = false
)