Class OddsClient

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

public class OddsClient
extends AbstractClient
The odds client.

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

Author:
ralph
  • Constructor Details

    • OddsClient

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

    • getPrematch

      public Odds getPrematch​(int matchId)
      Request and return the prematch odds for a match.
      Parameters:
      matchId - - ID of match
      Returns:
      list of prematch odds
    • getInplay

      public Odds getInplay​(int matchId)
      Request and return the inplay odds for a match.
      Parameters:
      matchId - - ID of match
      Returns:
      list of inplay odds