Team

data class Team(val id: Int, val abbreviation: String, val city: String, val conference: String, val division: String, val full_name: String, val name: String)

Represents a team with detailed information in the context of basketball matches.

Constructors

Link copied to clipboard
constructor(id: Int, abbreviation: String, city: String, conference: String, division: String, full_name: String, name: String)

Properties

Link copied to clipboard

The standard abbreviation used to refer to the team (e.g., "LAL" for Los Angeles Lakers).

Link copied to clipboard

The city or location the team is associated with.

Link copied to clipboard

The conference the team belongs to (e.g., "East" or "West" in the NBA).

Link copied to clipboard

The division within the conference that the team is part of.

Link copied to clipboard

The full, official name of the team (e.g., "Los Angeles Lakers").

Link copied to clipboard
val id: Int

The unique identifier for the team.

Link copied to clipboard

The common name of the team (e.g., "Lakers").

Functions

Link copied to clipboard

Converts a domain model Team instance to a database entity DbTeam.