Package com.sportdataapi.client
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 Summary
Constructors Constructor Description OddsClient(javax.ws.rs.client.WebTarget target)
Constructor. -
Method Summary
Modifier and Type Method Description Odds
getInplay(int matchId)
Request and return the inplay odds for a match.Odds
getPrematch(int matchId)
Request and return the prematch odds for a match.Methods inherited from class com.sportdataapi.util.AbstractClient
addRequestListener, fireRequestRegistered, get, getLastUri, getRequest, getTarget, registerRequest
-
Constructor Details
-
OddsClient
public OddsClient(javax.ws.rs.client.WebTarget target)Constructor.- Parameters:
target
- - the target to request
-
-
Method Details
-
getPrematch
Request and return the prematch odds for a match.- Parameters:
matchId
- - ID of match- Returns:
- list of prematch odds
-
getInplay
Request and return the inplay odds for a match.- Parameters:
matchId
- - ID of match- Returns:
- list of inplay odds
-