Class RefereesClient

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

public class RefereesClient
extends AbstractClient
The referees client.

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

Author:
ralph
  • Constructor Summary

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

    Modifier and Type Method Description
    Referee get​(int id)
    Request and returns a specific referee.
    java.util.List<Referee> list​(int countryId)
    Request and return the list of referees in a country.

    Methods inherited from class java.lang.Object

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

    • RefereesClient

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

    • list

      public java.util.List<Referee> list​(int countryId)
      Request and return the list of referees in a country.
      Parameters:
      countryId - - list referees of this country only
      Returns:
      list of referees
    • get

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