This repository has been archived by the owner on Aug 18, 2021. It is now read-only.
Releases: caravancodes/consumable-code-the-sport-db-api
Releases · caravancodes/consumable-code-the-sport-db-api
Release v1.1.1
* Update Build Gradle *
* Enhance Performance *
Update Build Gradle
* Update build.gradle *
* Fixing Bug *
* Enhance Performance *
* Remove Kotlin Android Extension *
Update Build Gradle
* update build.gradle *
Fixing bug null-able params
* Fixing bug, adding null-able params, update build.gradle *
Consumable Code The Sport DB API
- adding simple code
- update build.gradle version
Change location url
Refactoring location url from buildConfig to SportUrl
Handling Progress View
Add method :
// Show progress view
fun onShowProgress()
// Show progress view
fun onHideProgress()
Handling Null Data From API
update: Null Safety Data
Complete API Call
Completes the rest of the APIs that have not been called in function, except for patreon services. The following is a list of additional functions
// List all sports
fun getAllSports(sportResultCallback: SportResultCallback<Sports>)
// List all leagues
fun getAllLeagues(sportResultCallback: SportResultCallback<Leagues>)
// List all Leagues in a country
fun searchAllLeagues(countryName: String, sportResultCallback: SportResultCallback<Countrys>)
// List all Leagues in a country specific by sport
fun searchAllLeagues(countryName: String, sportName: String, sportResultCallback: SportResultCallback<Countrys>)
// List all Seasons in a League
fun searchAllSeasons(idTeam: String, sportResultCallback: SportResultCallback<Seasons>)
// List all Teams in a League
fun searchAllTeam(league: String, sportResultCallback: SportResultCallback<Teams>)
// List all Teams in Sportname & Country Name
fun searchAllTeam(sportName: String, countryName: String, sportResultCallback: SportResultCallback<Teams>)
// List All teams details in a league by Id
fun lookupAllTeam(idLeague: String, sportResultCallback: SportResultCallback<Teams>)
// List All players in a team by Team Id *Patreon ONLY*
fun lookupAllPlayer(idTeam: String, sportResultCallback: SportResultCallback<Players>)
// List all users loved teams and players
fun searchLoves(userName: String, sportResultCallback: SportResultCallback<Users>)
// League Details by Id
fun lookupLeagues(idLeague: String, sportResultCallback: SportResultCallback<Leagues>)
// Team Details by Id
fun lookupTeam(idTeam: String, sportResultCallback: SportResultCallback<Teams>)
// Player Details by Id
fun lookupPlayer(idPlayer: String, sportResultCallback: SportResultCallback<Players>)
// Event Details by Id
fun lookupEvent(idEvent: String, sportResultCallback: SportResultCallback<Events>)
// Player Honours by Player Id
fun lookupHonour(idPlayer: String, sportResultCallback: SportResultCallback<Honors>)
// Player Former Teams by Player Id
fun lookupFormerTeam(idPlayer: String, sportResultCallback: SportResultCallback<FormerTeams>)
// Player Contracts by Player Id
fun lookupContract(idPlayer: String, sportResultCallback: SportResultCallback<Contracts>)
// Lookup Table by League ID and Season
fun lookupTable(idLeague: String, season: String, sportResultCallback: SportResultCallback<Tables>)
// Next 5 Events by Team Id
fun eventsNext(idTeam: String, sportResultCallback: SportResultCallback<Events>)
// Next 15 Events by League Id
fun eventsNextLeague(idLeague: String, sportResultCallback: SportResultCallback<Events>)
// Last 5 Events by Team Id
fun eventsLast(idTeam: String, sportResultCallback: SportResultCallback<Results>)
// Last 15 Events by League Id
fun eventsPastLeague(idLeague: String, sportResultCallback: SportResultCallback<Events>)
// Events in a specific round by league id/round/season
fun eventsRound(idLeague: String, round: String, season: String, sportResultCallback: SportResultCallback<Events>)
// All events in specific league by season (Free tier limited to 200 events)
fun eventsSeason(idLeague: String, season: String, sportResultCallback: SportResultCallback<Events>)
Adding Chuck Interceptor
Adding Chuck Interceptor Client