Class BookmakersClient

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

public class BookmakersClient
extends AbstractClient
The bookmakers client.

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

Author:
ralph
  • Constructor Details

    • BookmakersClient

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

    • list

      public java.util.List<Bookmaker> list()
      Request and return the list of bookmakers.
      Returns:
      list of bookmakers
    • get

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