ApiMatch

@Serializable
data class ApiMatch(val id: Int, val date: String?, val home_team: ApiTeam, val home_team_score: Int, val period: Int, val postseason: Boolean, val season: Int, val status: String, val time: String?, val visitor_team: ApiTeam, val visitor_team_score: Int)

Represents match data retrieved from the API.

Constructors

Link copied to clipboard
constructor(id: Int, date: String?, home_team: ApiTeam, home_team_score: Int, period: Int, postseason: Boolean, season: Int, status: String, time: String?, visitor_team: ApiTeam, visitor_team_score: Int)

Properties

Link copied to clipboard
val date: String?

The date of the match. Nullable.

Link copied to clipboard

The home team data.

Link copied to clipboard

The score for the home team.

Link copied to clipboard
val id: Int

The unique identifier for the match.

Link copied to clipboard
val period: Int

The period in which the match is.

Link copied to clipboard

Boolean indicating if the match is in the postseason.

Link copied to clipboard
val season: Int

The season year the match is part of.

Link copied to clipboard

The current status of the match.

Link copied to clipboard
val time: String?

The time at which the match takes place. Nullable.

Link copied to clipboard

The visitor team data.

Link copied to clipboard

The score for the visitor team.