Skip to content
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

Release v1.1.1

25 Jun 23:41
Compare
Choose a tag to compare
* Update Build Gradle *
* Enhance Performance *

Update Build Gradle

09 May 19:15
Compare
Choose a tag to compare
* Update build.gradle *
* Fixing Bug *
* Enhance Performance *
* Remove Kotlin Android Extension *

Update Build Gradle

20 Feb 02:24
Compare
Choose a tag to compare
* update build.gradle *

Fixing bug null-able params

16 May 22:58
Compare
Choose a tag to compare
* Fixing bug, adding null-able params, update build.gradle *

Consumable Code The Sport DB API

13 May 13:40
Compare
Choose a tag to compare
  • adding simple code
  • update build.gradle version

Change location url

06 Apr 09:52
Compare
Choose a tag to compare

Refactoring location url from buildConfig to SportUrl

Handling Progress View

17 Mar 07:44
Compare
Choose a tag to compare

Add method :

    // Show progress view
    fun onShowProgress()

    // Show progress view
    fun onHideProgress()

Handling Null Data From API

10 Mar 14:01
Compare
Choose a tag to compare

update: Null Safety Data

Complete API Call

09 Mar 05:35
Compare
Choose a tag to compare

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

06 Mar 16:29
Compare
Choose a tag to compare

Adding Chuck Interceptor Client