MatchApiService

interface MatchApiService

Service interface for match-related network operations.

This interface defines the API calls related to basketball matches and the necessary annotations for Retrofit to convert these into HTTP requests.

Functions

Link copied to clipboard
@GET(value = "games")
abstract suspend fun getMatches(@Query(value = "dates[]") date: String): ApiResponseMatch

Retrieves match data for a specific date from the API.

Link copied to clipboard

A helper function to convert the network response for matches into a Flow.