| All Verbs | /feed/odds |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class GetOdds
{
}
public static class AvailableRounds
{
public String id = null;
public ArrayList<Round> rounds = null;
public String getId() { return id; }
public AvailableRounds setId(String value) { this.id = value; return this; }
public ArrayList<Round> getRounds() { return rounds; }
public AvailableRounds setRounds(ArrayList<Round> value) { this.rounds = value; return this; }
}
public static class Round
{
public String id = null;
public Date createdAt = null;
public Date updatedAt = null;
public RoundStatus status = null;
public RoundConfiguration configuration = null;
public HashMap<Integer,Outcome> odds = null;
public JackpotInfo jackpotInfo = null;
public String sequence = null;
public RoundProgress progress = null;
public Boolean isLocked = null;
public Boolean isCalculated = null;
public String getId() { return id; }
public Round setId(String value) { this.id = value; return this; }
public Date getCreatedAt() { return createdAt; }
public Round setCreatedAt(Date value) { this.createdAt = value; return this; }
public Date getUpdatedAt() { return updatedAt; }
public Round setUpdatedAt(Date value) { this.updatedAt = value; return this; }
public RoundStatus getStatus() { return status; }
public Round setStatus(RoundStatus value) { this.status = value; return this; }
public RoundConfiguration getConfiguration() { return configuration; }
public Round setConfiguration(RoundConfiguration value) { this.configuration = value; return this; }
public HashMap<Integer,Outcome> getOdds() { return odds; }
public Round setOdds(HashMap<Integer,Outcome> value) { this.odds = value; return this; }
public JackpotInfo getJackpotInfo() { return jackpotInfo; }
public Round setJackpotInfo(JackpotInfo value) { this.jackpotInfo = value; return this; }
public String getSequence() { return sequence; }
public Round setSequence(String value) { this.sequence = value; return this; }
public RoundProgress getProgress() { return progress; }
public Round setProgress(RoundProgress value) { this.progress = value; return this; }
public Boolean getIsLocked() { return isLocked; }
public Round setIsLocked(Boolean value) { this.isLocked = value; return this; }
public Boolean getIsCalculated() { return isCalculated; }
public Round setIsCalculated(Boolean value) { this.isCalculated = value; return this; }
}
public static enum RoundStatus
{
@SerializedName("0") Pending(0),
@SerializedName("1") InProgress(1),
@SerializedName("2") Ended(2);
private final int value;
RoundStatus(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class RoundConfiguration
{
public Integer countdownDurationInSeconds = null;
public Integer raceDurationInSeconds = null;
public Integer resultsDurationInSeconds = null;
public RTPStrategies rtpStrategy = null;
public Integer getCountdownDurationInSeconds() { return countdownDurationInSeconds; }
public RoundConfiguration setCountdownDurationInSeconds(Integer value) { this.countdownDurationInSeconds = value; return this; }
public Integer getRaceDurationInSeconds() { return raceDurationInSeconds; }
public RoundConfiguration setRaceDurationInSeconds(Integer value) { this.raceDurationInSeconds = value; return this; }
public Integer getResultsDurationInSeconds() { return resultsDurationInSeconds; }
public RoundConfiguration setResultsDurationInSeconds(Integer value) { this.resultsDurationInSeconds = value; return this; }
public RTPStrategies getRtpStrategy() { return rtpStrategy; }
public RoundConfiguration setRtpStrategy(RTPStrategies value) { this.rtpStrategy = value; return this; }
}
public static enum RTPStrategies
{
@SerializedName("0") Rng(0),
@SerializedName("1") Default(1);
private final int value;
RTPStrategies(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class Outcome
{
public Integer id = null;
public Float odds = null;
public OutcomeStatus status = null;
public Integer getId() { return id; }
public Outcome setId(Integer value) { this.id = value; return this; }
public Float getOdds() { return odds; }
public Outcome setOdds(Float value) { this.odds = value; return this; }
public OutcomeStatus getStatus() { return status; }
public Outcome setStatus(OutcomeStatus value) { this.status = value; return this; }
}
public static enum OutcomeStatus
{
@SerializedName("0") Unknown(0),
@SerializedName("1") Lost(1),
@SerializedName("2") Won(2),
@SerializedName("3") Void(3);
private final int value;
OutcomeStatus(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class JackpotInfo
{
public Boolean isGiven = null;
public String id = null;
public String slipId = null;
public String jpId = null;
public BigDecimal amount = null;
public String locationId = null;
public String locationName = null;
public String addressLine = null;
public BigDecimal amountAccumulated = null;
public Boolean getIsGiven() { return isGiven; }
public JackpotInfo setIsGiven(Boolean value) { this.isGiven = value; return this; }
public String getId() { return id; }
public JackpotInfo setId(String value) { this.id = value; return this; }
public String getSlipId() { return slipId; }
public JackpotInfo setSlipId(String value) { this.slipId = value; return this; }
public String getJpId() { return jpId; }
public JackpotInfo setJpId(String value) { this.jpId = value; return this; }
public BigDecimal getAmount() { return amount; }
public JackpotInfo setAmount(BigDecimal value) { this.amount = value; return this; }
public String getLocationId() { return locationId; }
public JackpotInfo setLocationId(String value) { this.locationId = value; return this; }
public String getLocationName() { return locationName; }
public JackpotInfo setLocationName(String value) { this.locationName = value; return this; }
public String getAddressLine() { return addressLine; }
public JackpotInfo setAddressLine(String value) { this.addressLine = value; return this; }
public BigDecimal getAmountAccumulated() { return amountAccumulated; }
public JackpotInfo setAmountAccumulated(BigDecimal value) { this.amountAccumulated = value; return this; }
}
public static class RoundProgress
{
public Stages stage = null;
public Integer step = null;
public Integer steps = null;
public Date utcTimestamp = null;
public Stages getStage() { return stage; }
public RoundProgress setStage(Stages value) { this.stage = value; return this; }
public Integer getStep() { return step; }
public RoundProgress setStep(Integer value) { this.step = value; return this; }
public Integer getSteps() { return steps; }
public RoundProgress setSteps(Integer value) { this.steps = value; return this; }
public Date getUtcTimestamp() { return utcTimestamp; }
public RoundProgress setUtcTimestamp(Date value) { this.utcTimestamp = value; return this; }
}
public static enum Stages
{
@SerializedName("0") None(0),
@SerializedName("1") Countdown(1),
@SerializedName("2") Processing(2),
@SerializedName("3") Race(3),
@SerializedName("4") Results(4);
private final int value;
Stages(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /feed/odds HTTP/1.1
Host: grh1.api.bettor.webhop.biz
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"id":"String","rounds":[{"id":"String","odds":[{"id":0,"val":0}]}]}