SnapOddsResult

public final class SnapOddsResult

Represents the odds for a sport event

Constructors

Link copied to clipboard
SnapOddsResult SnapOddsResult(@Json(name = "startTime") String rawStartTime, @Json(name = "competitors") List<SnapOddsCompetitor> competitors, @Json(name = "players") List<SnapOddsPlayer> players, @Json(name = "sportsBooks") List<SnapOddsSportBook> sportsBooks, @Json(name = "bestOffers") List<SnapOddsOffer> bestOffers, @Json(name = "oddsOfferOrder") List<String> oddsOfferOrder)

Functions

Link copied to clipboard
final List<SnapOddsOffer> getBestOffers()

The best offers available. Each offer might be by a different odds provider (sports book)

Link copied to clipboard
final List<SnapOddsCompetitor> getCompetitors()

Information about the competitors in this event

Link copied to clipboard
final List<SnapOddsOfferType> getOfferTypeOrder()
Link copied to clipboard
final List<SnapOddsPlayer> getPlayers()

Information about the players in this event

Link copied to clipboard
final List<SnapOddsSportBook> getSportsBooks()

A list of providers that offer bets

Link copied to clipboard
final ZonedDateTime getStartTime()

Properties

Link copied to clipboard
private final List<SnapOddsOffer> bestOffers

The best offers available. Each offer might be by a different odds provider (sports book)

Link copied to clipboard
private final List<SnapOddsCompetitor> competitors

Information about the competitors in this event

Link copied to clipboard
private final List<SnapOddsOfferType> offerTypeOrder

Specific order to display offers in

Link copied to clipboard
private final List<SnapOddsPlayer> players

Information about the players in this event

Link copied to clipboard
private final List<SnapOddsSportBook> sportsBooks

A list of providers that offer bets

Link copied to clipboard
private final ZonedDateTime startTime

Start time for the sport event (in local timezone ZoneId.systemDefault())