| All Verbs | /qry/feed |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class GetFeed
{
}
public static class Feed
{
public String id = null;
public Round round = null;
public Jackpot5Info lastJackpot5Info = null;
public SuperWinInfo superWinInfo = null;
public GlobalCodePotInfo globalCodePotInfo = null;
public String getId() { return id; }
public Feed setId(String value) { this.id = value; return this; }
public Round getRound() { return round; }
public Feed setRound(Round value) { this.round = value; return this; }
public Jackpot5Info getLastJackpot5Info() { return lastJackpot5Info; }
public Feed setLastJackpot5Info(Jackpot5Info value) { this.lastJackpot5Info = value; return this; }
public SuperWinInfo getSuperWinInfo() { return superWinInfo; }
public Feed setSuperWinInfo(SuperWinInfo value) { this.superWinInfo = value; return this; }
public GlobalCodePotInfo getGlobalCodePotInfo() { return globalCodePotInfo; }
public Feed setGlobalCodePotInfo(GlobalCodePotInfo value) { this.globalCodePotInfo = value; return this; }
}
public static class Round
{
public String id = null;
public Date createdAt = null;
public Date updatedAt = null;
public Date shouldStartAtUtc = null;
public Date startedAtUtc = null;
public RoundStatus status = null;
public RoundConfiguration configuration = null;
public String sequence = null;
public Jackpot5Info jackpot5Info = null;
public SuperWinInfo superWinInfo = null;
public GlobalCodePotInfo globalCodePotInfo = 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 Date getShouldStartAtUtc() { return shouldStartAtUtc; }
public Round setShouldStartAtUtc(Date value) { this.shouldStartAtUtc = value; return this; }
public Date getStartedAtUtc() { return startedAtUtc; }
public Round setStartedAtUtc(Date value) { this.startedAtUtc = 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 String getSequence() { return sequence; }
public Round setSequence(String value) { this.sequence = value; return this; }
public Jackpot5Info getJackpot5Info() { return jackpot5Info; }
public Round setJackpot5Info(Jackpot5Info value) { this.jackpot5Info = value; return this; }
public SuperWinInfo getSuperWinInfo() { return superWinInfo; }
public Round setSuperWinInfo(SuperWinInfo value) { this.superWinInfo = value; return this; }
public GlobalCodePotInfo getGlobalCodePotInfo() { return globalCodePotInfo; }
public Round setGlobalCodePotInfo(GlobalCodePotInfo value) { this.globalCodePotInfo = 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 RecordList<Float> coefficients = null;
public Boolean isDoubleTripleActive = null;
public Boolean isJackpot5Active = null;
public Integer countdownDurationInSeconds = null;
public CountdownConfiguration countdownConfiguration = null;
public DrawConfiguration drawConfiguration = null;
public Integer resultsDurationInSeconds = null;
public RTPStrategies rtpStrategy = null;
public HappyHourConfiguration happyHourConfiguration = null;
public RecordList<Float> getCoefficients() { return coefficients; }
public RoundConfiguration setCoefficients(RecordList<Float> value) { this.coefficients = value; return this; }
public Boolean getIsDoubleTripleActive() { return isDoubleTripleActive; }
public RoundConfiguration setIsDoubleTripleActive(Boolean value) { this.isDoubleTripleActive = value; return this; }
public Boolean getIsJackpot5Active() { return isJackpot5Active; }
public RoundConfiguration setIsJackpot5Active(Boolean value) { this.isJackpot5Active = value; return this; }
public Integer getCountdownDurationInSeconds() { return countdownDurationInSeconds; }
public RoundConfiguration setCountdownDurationInSeconds(Integer value) { this.countdownDurationInSeconds = value; return this; }
public CountdownConfiguration getCountdownConfiguration() { return countdownConfiguration; }
public RoundConfiguration setCountdownConfiguration(CountdownConfiguration value) { this.countdownConfiguration = value; return this; }
public DrawConfiguration getDrawConfiguration() { return drawConfiguration; }
public RoundConfiguration setDrawConfiguration(DrawConfiguration value) { this.drawConfiguration = 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 HappyHourConfiguration getHappyHourConfiguration() { return happyHourConfiguration; }
public RoundConfiguration setHappyHourConfiguration(HappyHourConfiguration value) { this.happyHourConfiguration = value; return this; }
}
public static class RecordList<T> extends ArrayList<T>
{
}
public static class CountdownConfiguration
{
public Integer lockdownStepFromEnd = null;
public Integer assertLockdownStepFromEnd = null;
public Integer getLockdownStepFromEnd() { return lockdownStepFromEnd; }
public CountdownConfiguration setLockdownStepFromEnd(Integer value) { this.lockdownStepFromEnd = value; return this; }
public Integer getAssertLockdownStepFromEnd() { return assertLockdownStepFromEnd; }
public CountdownConfiguration setAssertLockdownStepFromEnd(Integer value) { this.assertLockdownStepFromEnd = value; return this; }
}
public static class DrawConfiguration
{
public Integer introIntervalInMs = null;
public Integer animationIntervalInMs = null;
public Integer outroIntervalInMs = null;
public Integer getIntroIntervalInMs() { return introIntervalInMs; }
public DrawConfiguration setIntroIntervalInMs(Integer value) { this.introIntervalInMs = value; return this; }
public Integer getAnimationIntervalInMs() { return animationIntervalInMs; }
public DrawConfiguration setAnimationIntervalInMs(Integer value) { this.animationIntervalInMs = value; return this; }
public Integer getOutroIntervalInMs() { return outroIntervalInMs; }
public DrawConfiguration setOutroIntervalInMs(Integer value) { this.outroIntervalInMs = value; return this; }
}
public static enum RTPStrategies
{
@SerializedName("0") Rng(0),
@SerializedName("1") Accumulator(1);
private final int value;
RTPStrategies(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class HappyHourConfiguration
{
public Boolean isHappyHour = null;
public BigDecimal oddsModifier = null;
public BigDecimal roundPoolBonusPct = null;
public Boolean getIsHappyHour() { return isHappyHour; }
public HappyHourConfiguration setIsHappyHour(Boolean value) { this.isHappyHour = value; return this; }
public BigDecimal getOddsModifier() { return oddsModifier; }
public HappyHourConfiguration setOddsModifier(BigDecimal value) { this.oddsModifier = value; return this; }
public BigDecimal getRoundPoolBonusPct() { return roundPoolBonusPct; }
public HappyHourConfiguration setRoundPoolBonusPct(BigDecimal value) { this.roundPoolBonusPct = value; return this; }
}
public static class Jackpot5Info
{
public Boolean isHit = null;
public BigDecimal amountAccumulated = null;
public BigDecimal amountAwarded = null;
public Integer nrOfWinners = null;
public ArrayList<JackPot5Winner> jackPot5Winners = null;
public Boolean getIsHit() { return isHit; }
public Jackpot5Info setIsHit(Boolean value) { this.isHit = value; return this; }
public BigDecimal getAmountAccumulated() { return amountAccumulated; }
public Jackpot5Info setAmountAccumulated(BigDecimal value) { this.amountAccumulated = value; return this; }
public BigDecimal getAmountAwarded() { return amountAwarded; }
public Jackpot5Info setAmountAwarded(BigDecimal value) { this.amountAwarded = value; return this; }
public Integer getNrOfWinners() { return nrOfWinners; }
public Jackpot5Info setNrOfWinners(Integer value) { this.nrOfWinners = value; return this; }
public ArrayList<JackPot5Winner> getJackPot5Winners() { return jackPot5Winners; }
public Jackpot5Info setJackPot5Winners(ArrayList<JackPot5Winner> value) { this.jackPot5Winners = value; return this; }
}
public static class JackPot5Winner
{
public String betId = null;
public Integer nrOfCombinations = null;
public BigDecimal winningsAmount = null;
public Origin origin = null;
public Ref bettor = null;
public HashMap<String,String> payload = null;
public String getBetId() { return betId; }
public JackPot5Winner setBetId(String value) { this.betId = value; return this; }
public Integer getNrOfCombinations() { return nrOfCombinations; }
public JackPot5Winner setNrOfCombinations(Integer value) { this.nrOfCombinations = value; return this; }
public BigDecimal getWinningsAmount() { return winningsAmount; }
public JackPot5Winner setWinningsAmount(BigDecimal value) { this.winningsAmount = value; return this; }
public Origin getOrigin() { return origin; }
public JackPot5Winner setOrigin(Origin value) { this.origin = value; return this; }
public Ref getBettor() { return bettor; }
public JackPot5Winner setBettor(Ref value) { this.bettor = value; return this; }
public HashMap<String,String> getPayload() { return payload; }
public JackPot5Winner setPayload(HashMap<String,String> value) { this.payload = value; return this; }
}
public static class Origin
{
public BettingApp application = null;
public String ip = null;
public RefEx organization = null;
public Ref region = null;
public Ref locationGroup = null;
public RefEx location = null;
public RefEx device = null;
public Ref clerk = null;
public BettingApp getApplication() { return application; }
public Origin setApplication(BettingApp value) { this.application = value; return this; }
public String getIp() { return ip; }
public Origin setIp(String value) { this.ip = value; return this; }
public RefEx getOrganization() { return organization; }
public Origin setOrganization(RefEx value) { this.organization = value; return this; }
public Ref getRegion() { return region; }
public Origin setRegion(Ref value) { this.region = value; return this; }
public Ref getLocationGroup() { return locationGroup; }
public Origin setLocationGroup(Ref value) { this.locationGroup = value; return this; }
public RefEx getLocation() { return location; }
public Origin setLocation(RefEx value) { this.location = value; return this; }
public RefEx getDevice() { return device; }
public Origin setDevice(RefEx value) { this.device = value; return this; }
public Ref getClerk() { return clerk; }
public Origin setClerk(Ref value) { this.clerk = value; return this; }
}
public static class BettingApp
{
public String name = null;
public String version = null;
public String getName() { return name; }
public BettingApp setName(String value) { this.name = value; return this; }
public String getVersion() { return version; }
public BettingApp setVersion(String value) { this.version = value; return this; }
}
public static class RefEx extends Ref
{
public RecordDictionary<String, String> data = null;
public RecordDictionary<String, String> getData() { return data; }
public RefEx setData(RecordDictionary<String, String> value) { this.data = value; return this; }
}
public static class Ref
{
public String id = null;
public String val = null;
public String getId() { return id; }
public Ref setId(String value) { this.id = value; return this; }
public String getVal() { return val; }
public Ref setVal(String value) { this.val = value; return this; }
}
public static class RecordDictionary<TKey, TVal> extends HashMap<TKey,TVal>
{
}
public static class SuperWinInfo
{
public Boolean isActive = null;
public SuperWinWinner winner = null;
public BigDecimal availableAmount = null;
public Boolean allPrizesAwarded = null;
public Boolean getIsActive() { return isActive; }
public SuperWinInfo setIsActive(Boolean value) { this.isActive = value; return this; }
public SuperWinWinner getWinner() { return winner; }
public SuperWinInfo setWinner(SuperWinWinner value) { this.winner = value; return this; }
public BigDecimal getAvailableAmount() { return availableAmount; }
public SuperWinInfo setAvailableAmount(BigDecimal value) { this.availableAmount = value; return this; }
public Boolean isAllPrizesAwarded() { return allPrizesAwarded; }
public SuperWinInfo setAllPrizesAwarded(Boolean value) { this.allPrizesAwarded = value; return this; }
}
public static class SuperWinWinner
{
public Boolean isDrawn = null;
public Date drawnAtUtc = null;
public String roundId = null;
public String betId = null;
public String slipId = null;
public Origin origin = null;
public Ref bettor = null;
public String code = null;
public BigDecimal amount = null;
public String locationAddressOrBettorInfo = null;
public Boolean getIsDrawn() { return isDrawn; }
public SuperWinWinner setIsDrawn(Boolean value) { this.isDrawn = value; return this; }
public Date getDrawnAtUtc() { return drawnAtUtc; }
public SuperWinWinner setDrawnAtUtc(Date value) { this.drawnAtUtc = value; return this; }
public String getRoundId() { return roundId; }
public SuperWinWinner setRoundId(String value) { this.roundId = value; return this; }
public String getBetId() { return betId; }
public SuperWinWinner setBetId(String value) { this.betId = value; return this; }
public String getSlipId() { return slipId; }
public SuperWinWinner setSlipId(String value) { this.slipId = value; return this; }
public Origin getOrigin() { return origin; }
public SuperWinWinner setOrigin(Origin value) { this.origin = value; return this; }
public Ref getBettor() { return bettor; }
public SuperWinWinner setBettor(Ref value) { this.bettor = value; return this; }
public String getCode() { return code; }
public SuperWinWinner setCode(String value) { this.code = value; return this; }
public BigDecimal getAmount() { return amount; }
public SuperWinWinner setAmount(BigDecimal value) { this.amount = value; return this; }
public String getLocationAddressOrBettorInfo() { return locationAddressOrBettorInfo; }
public SuperWinWinner setLocationAddressOrBettorInfo(String value) { this.locationAddressOrBettorInfo = value; return this; }
}
public static class GlobalCodePotInfo
{
public Boolean isActive = null;
public Boolean isDrawn = null;
public WinnerByCode winner = null;
public String inertCode = null;
public BigDecimal accumulation = null;
public Boolean getIsActive() { return isActive; }
public GlobalCodePotInfo setIsActive(Boolean value) { this.isActive = value; return this; }
public Boolean getIsDrawn() { return isDrawn; }
public GlobalCodePotInfo setIsDrawn(Boolean value) { this.isDrawn = value; return this; }
public WinnerByCode getWinner() { return winner; }
public GlobalCodePotInfo setWinner(WinnerByCode value) { this.winner = value; return this; }
public String getInertCode() { return inertCode; }
public GlobalCodePotInfo setInertCode(String value) { this.inertCode = value; return this; }
public BigDecimal getAccumulation() { return accumulation; }
public GlobalCodePotInfo setAccumulation(BigDecimal value) { this.accumulation = value; return this; }
}
public static class WinnerByCode
{
public String roundId = null;
public Date drawnAtUtc = null;
public String slipId = null;
public String betId = null;
public String code = null;
public BigDecimal amount = null;
public Origin origin = null;
public Ref bettor = null;
public String locationAddressOrBettorInfo = null;
public String getRoundId() { return roundId; }
public WinnerByCode setRoundId(String value) { this.roundId = value; return this; }
public Date getDrawnAtUtc() { return drawnAtUtc; }
public WinnerByCode setDrawnAtUtc(Date value) { this.drawnAtUtc = value; return this; }
public String getSlipId() { return slipId; }
public WinnerByCode setSlipId(String value) { this.slipId = value; return this; }
public String getBetId() { return betId; }
public WinnerByCode setBetId(String value) { this.betId = value; return this; }
public String getCode() { return code; }
public WinnerByCode setCode(String value) { this.code = value; return this; }
public BigDecimal getAmount() { return amount; }
public WinnerByCode setAmount(BigDecimal value) { this.amount = value; return this; }
public Origin getOrigin() { return origin; }
public WinnerByCode setOrigin(Origin value) { this.origin = value; return this; }
public Ref getBettor() { return bettor; }
public WinnerByCode setBettor(Ref value) { this.bettor = value; return this; }
public String getLocationAddressOrBettorInfo() { return locationAddressOrBettorInfo; }
public WinnerByCode setLocationAddressOrBettorInfo(String value) { this.locationAddressOrBettorInfo = 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") Draw(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 .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /qry/feed HTTP/1.1
Host: s4w2.api.bettor.cc
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: String,
round:
{
id: String,
createdAt: 0001-01-01,
updatedAt: 0001-01-01,
shouldStartAtUtc: 0001-01-01,
startedAtUtc: 0001-01-01,
status: 0,
configuration:
{
coefficients:
[
0
],
isDoubleTripleActive: False,
isJackpot5Active: False,
countdownDurationInSeconds: 0,
countdownConfiguration:
{
lockdownStepFromEnd: 0,
assertLockdownStepFromEnd: 0
},
drawConfiguration:
{
introIntervalInMs: 0,
animationIntervalInMs: 0,
outroIntervalInMs: 0
},
resultsDurationInSeconds: 0,
rtpStrategy: 0,
happyHourConfiguration:
{
isHappyHour: False,
oddsModifier: 0,
roundPoolBonusPct: 0
}
},
sequence: String,
jackpot5Info:
{
isHit: False,
amountAccumulated: 0,
amountAwarded: 0,
nrOfWinners: 0,
jackPot5Winners:
[
{
betId: String,
nrOfCombinations: 0,
winningsAmount: 0,
origin:
{
application:
{
name: String,
version: String
},
ip: String,
organization:
{
data:
{
String: String
},
id: String,
val: String
},
region:
{
id: String,
val: String
},
locationGroup:
{
id: String,
val: String
},
location:
{
data:
{
String: String
},
id: String,
val: String
},
device:
{
data:
{
String: String
},
id: String,
val: String
},
clerk:
{
id: String,
val: String
}
},
bettor:
{
id: String,
val: String
},
payload:
{
String: String
}
}
]
},
superWinInfo:
{
isActive: False,
winner:
{
isDrawn: False,
drawnAtUtc: 0001-01-01,
roundId: String,
betId: String,
slipId: String,
origin:
{
application:
{
name: String,
version: String
},
ip: String,
organization:
{
data:
{
String: String
},
id: String,
val: String
},
region:
{
id: String,
val: String
},
locationGroup:
{
id: String,
val: String
},
location:
{
data:
{
String: String
},
id: String,
val: String
},
device:
{
data:
{
String: String
},
id: String,
val: String
},
clerk:
{
id: String,
val: String
}
},
bettor:
{
id: String,
val: String
},
code: String,
amount: 0,
locationAddressOrBettorInfo: String
},
availableAmount: 0,
allPrizesAwarded: False
},
globalCodePotInfo:
{
isActive: False,
isDrawn: True,
winner:
{
roundId: String,
drawnAtUtc: 0001-01-01,
slipId: String,
betId: String,
code: String,
amount: 0,
origin:
{
application:
{
name: String,
version: String
},
ip: String,
organization:
{
data:
{
String: String
},
id: String,
val: String
},
region:
{
id: String,
val: String
},
locationGroup:
{
id: String,
val: String
},
location:
{
data:
{
String: String
},
id: String,
val: String
},
device:
{
data:
{
String: String
},
id: String,
val: String
},
clerk:
{
id: String,
val: String
}
},
bettor:
{
id: String,
val: String
},
locationAddressOrBettorInfo: String
},
inertCode: String,
accumulation: 0
},
progress:
{
stage: 0,
step: 0,
steps: 0,
utcTimestamp: 0001-01-01
},
isLocked: False,
isCalculated: False
},
lastJackpot5Info:
{
isHit: False,
amountAccumulated: 0,
amountAwarded: 0,
nrOfWinners: 0,
jackPot5Winners:
[
{
betId: String,
nrOfCombinations: 0,
winningsAmount: 0,
origin:
{
application:
{
name: String,
version: String
},
ip: String,
organization:
{
data:
{
String: String
},
id: String,
val: String
},
region:
{
id: String,
val: String
},
locationGroup:
{
id: String,
val: String
},
location:
{
data:
{
String: String
},
id: String,
val: String
},
device:
{
data:
{
String: String
},
id: String,
val: String
},
clerk:
{
id: String,
val: String
}
},
bettor:
{
id: String,
val: String
},
payload:
{
String: String
}
}
]
},
superWinInfo:
{
isActive: False,
winner:
{
isDrawn: False,
drawnAtUtc: 0001-01-01,
roundId: String,
betId: String,
slipId: String,
origin:
{
application:
{
name: String,
version: String
},
ip: String,
organization:
{
data:
{
String: String
},
id: String,
val: String
},
region:
{
id: String,
val: String
},
locationGroup:
{
id: String,
val: String
},
location:
{
data:
{
String: String
},
id: String,
val: String
},
device:
{
data:
{
String: String
},
id: String,
val: String
},
clerk:
{
id: String,
val: String
}
},
bettor:
{
id: String,
val: String
},
code: String,
amount: 0,
locationAddressOrBettorInfo: String
},
availableAmount: 0,
allPrizesAwarded: False
},
globalCodePotInfo:
{
isActive: False,
isDrawn: True,
winner:
{
roundId: String,
drawnAtUtc: 0001-01-01,
slipId: String,
betId: String,
code: String,
amount: 0,
origin:
{
application:
{
name: String,
version: String
},
ip: String,
organization:
{
data:
{
String: String
},
id: String,
val: String
},
region:
{
id: String,
val: String
},
locationGroup:
{
id: String,
val: String
},
location:
{
data:
{
String: String
},
id: String,
val: String
},
device:
{
data:
{
String: String
},
id: String,
val: String
},
clerk:
{
id: String,
val: String
}
},
bettor:
{
id: String,
val: String
},
locationAddressOrBettorInfo: String
},
inertCode: String,
accumulation: 0
}
}