Match

data class Match(val id: Int, val date: String, val homeTeam: Team, val homeTeamScore: Int, val period: Int, val postseason: Boolean, val season: Int, val status: String, val time: String, val visitorTeam: Team, val visitorTeamScore: Int)

Represents a basketball match with details about the teams involved and the match's specifics.

Constructors

Link copied to clipboard
constructor(id: Int, date: String, homeTeam: Team, homeTeamScore: Int, period: Int, postseason: Boolean, season: Int, status: String, time: String, visitorTeam: Team, visitorTeamScore: Int)

Properties

Link copied to clipboard

The date when the match is scheduled to occur.

Link copied to clipboard

An instance of Team representing the home team.

Link copied to clipboard

The score achieved by the home team. This may be final or current, depending on the match status.

Link copied to clipboard
val id: Int

The unique identifier for the match.

Link copied to clipboard
val period: Int

The period or stage of the match (e.g., quarter, half, etc.).

Link copied to clipboard

Indicates whether the match is part of the postseason (playoffs).

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 (e.g., scheduled, in progress, completed).

Link copied to clipboard

The scheduled start time for the match.

Link copied to clipboard

An instance of Team representing the visiting team.

Link copied to clipboard

The score achieved by the visiting team. This may be final or current, depending on the match status.

Functions

Link copied to clipboard

Converts a domain model Match instance to a database entity DbMatch.