| All Verbs | /qry/rounds/integrity |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class GetRoundIntegrity
{
public String roundId = null;
public String getRoundId() { return roundId; }
public GetRoundIntegrity setRoundId(String value) { this.roundId = value; return this; }
}
public static class RoundIntegrityCheckResult
{
public CheckStatus status = null;
public BigDecimal extraWinnings = null;
public Integer betCount = null;
public Jackpot5Info jpInfo = null;
public CheckStatus getStatus() { return status; }
public RoundIntegrityCheckResult setStatus(CheckStatus value) { this.status = value; return this; }
public BigDecimal getExtraWinnings() { return extraWinnings; }
public RoundIntegrityCheckResult setExtraWinnings(BigDecimal value) { this.extraWinnings = value; return this; }
public Integer getBetCount() { return betCount; }
public RoundIntegrityCheckResult setBetCount(Integer value) { this.betCount = value; return this; }
public Jackpot5Info getJpInfo() { return jpInfo; }
public RoundIntegrityCheckResult setJpInfo(Jackpot5Info value) { this.jpInfo = value; return this; }
}
public static enum CheckStatus
{
@SerializedName("1") Ok(1),
@SerializedName("2") Error(2);
private final int value;
CheckStatus(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
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>
{
}
}
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 /qry/rounds/integrity HTTP/1.1
Host: s4w2.api.bettor.cc
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"roundId":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"status":1,"extraWinnings":0,"betCount":0,"jpInfo":{"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"}}]}}