Package-level declarations

Types

Link copied to clipboard
@Serializable
data class ApiResponseTeam(val data: List<ApiTeam>, val meta: ApiMeta)

Represents the response structure for team-related API calls.

Link copied to clipboard
@Serializable
data class ApiTeam(val id: Int, val abbreviation: String, val city: String, val conference: String, val division: String, val full_name: String, val name: String)

Represents team data retrieved from the API.

Link copied to clipboard
interface TeamApiService

Defines the network operations related to basketball teams.

Functions

Link copied to clipboard

Converts a list of ApiTeam instances to a list of domain model Team instances.

fun Flow<List<ApiTeam>>.asDomainObjects(): Flow<List<Team>>

Transforms a flow of a list of ApiTeam to a flow of a list of Team.

Link copied to clipboard

Converts the network response for teams into a Flow.