Class MarketsClient

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

public class MarketsClient
extends AbstractClient
The markets client.

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

Author:
ralph
  • Constructor Details

    • MarketsClient

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

    • list

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

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