Class SeasonsClient

java.lang.Object
com.sportdataapi.util.AbstractClient
com.sportdataapi.client.SeasonsClient

public class SeasonsClient
extends AbstractClient
The seasons client.

Attention! You shall never create this client directly but use SoccerClient.seasons() instead.

Author:
ralph
  • Constructor Summary

    Constructors 
    Constructor Description
    SeasonsClient​(javax.ws.rs.client.WebTarget target)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    Season get​(int id)
    Request and returns a specific season.
    java.util.List<Season> list​(int leagueId)
    Request and return the list of seasons for a specific league.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SeasonsClient

      public SeasonsClient​(javax.ws.rs.client.WebTarget target)
      Constructor.
      Parameters:
      target - - the target to request
  • Method Details

    • list

      public java.util.List<Season> list​(int leagueId)
      Request and return the list of seasons for a specific league.
      Parameters:
      leagueId - - the ID of the league to query
      Returns:
      list of seasons for the league
    • get

      public Season get​(int id)
      Request and returns a specific season.
      Parameters:
      id - - id of season
      Returns:
      the season requested or null