Six4Win.WebApi

<back to all web services

GetDraw

The following routes are available for this service:
All Verbs/qry/rounds/draw
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class GetDraw
    {
        public String id = null;
        
        public String getId() { return id; }
        public GetDraw setId(String value) { this.id = value; return this; }
    }

    public static class Draw
    {
        public String id = null;
        public String sequence = null;
        public ArrayList<Pool> inputAccumulation = null;
        public ArrayList<Pool> outputAccumulation = null;
        public RoundOutcome outcome = null;
        
        public String getId() { return id; }
        public Draw setId(String value) { this.id = value; return this; }
        public String getSequence() { return sequence; }
        public Draw setSequence(String value) { this.sequence = value; return this; }
        public ArrayList<Pool> getInputAccumulation() { return inputAccumulation; }
        public Draw setInputAccumulation(ArrayList<Pool> value) { this.inputAccumulation = value; return this; }
        public ArrayList<Pool> getOutputAccumulation() { return outputAccumulation; }
        public Draw setOutputAccumulation(ArrayList<Pool> value) { this.outputAccumulation = value; return this; }
        public RoundOutcome getOutcome() { return outcome; }
        public Draw setOutcome(RoundOutcome value) { this.outcome = value; return this; }
    }

    public static class Pool
    {
        public Integer id = null;
        public String name = null;
        public BigDecimal coefficient = null;
        public BigDecimal rtp = null;
        public BigDecimal threshold = null;
        public BigDecimal balance = null;
        public BigDecimal rrtp = null;
        public BigDecimal rBalance = null;
        
        public Integer getId() { return id; }
        public Pool setId(Integer value) { this.id = value; return this; }
        public String getName() { return name; }
        public Pool setName(String value) { this.name = value; return this; }
        public BigDecimal getCoefficient() { return coefficient; }
        public Pool setCoefficient(BigDecimal value) { this.coefficient = value; return this; }
        public BigDecimal getRtp() { return rtp; }
        public Pool setRtp(BigDecimal value) { this.rtp = value; return this; }
        public BigDecimal getThreshold() { return threshold; }
        public Pool setThreshold(BigDecimal value) { this.threshold = value; return this; }
        public BigDecimal getBalance() { return balance; }
        public Pool setBalance(BigDecimal value) { this.balance = value; return this; }
        public BigDecimal getRrtp() { return rrtp; }
        public Pool setRrtp(BigDecimal value) { this.rrtp = value; return this; }
        public BigDecimal getRBalance() { return rBalance; }
        public Pool setRBalance(BigDecimal value) { this.rBalance = value; return this; }
    }

    public static class RoundOutcome
    {
        public ArrayList<DrawItem> draw = null;
        public ArrayList<CustomBetOutcome> customBetOutcomes = null;
        public ArrayList<WinnerByCode> lcpWinners = null;
        public SuperWinInfo superWinInfo = null;
        public Jackpot5Info jackpot5Info = null;
        public GlobalCodePotInfo globalCodePotInfo = null;
        public BigDecimal stake = null;
        public Integer betCount = null;
        public BigDecimal winnings = null;
        public BigDecimal balance = null;
        public BigDecimal returnToPlayer = null;
        public Integer winCount = null;
        public Integer slipWinCount = null;
        public Float winCountPct = null;
        public Integer slipCount = null;
        public Integer unitBetCount = null;
        
        public ArrayList<DrawItem> getDraw() { return draw; }
        public RoundOutcome setDraw(ArrayList<DrawItem> value) { this.draw = value; return this; }
        public ArrayList<CustomBetOutcome> getCustomBetOutcomes() { return customBetOutcomes; }
        public RoundOutcome setCustomBetOutcomes(ArrayList<CustomBetOutcome> value) { this.customBetOutcomes = value; return this; }
        public ArrayList<WinnerByCode> getLcpWinners() { return lcpWinners; }
        public RoundOutcome setLcpWinners(ArrayList<WinnerByCode> value) { this.lcpWinners = value; return this; }
        public SuperWinInfo getSuperWinInfo() { return superWinInfo; }
        public RoundOutcome setSuperWinInfo(SuperWinInfo value) { this.superWinInfo = value; return this; }
        public Jackpot5Info getJackpot5Info() { return jackpot5Info; }
        public RoundOutcome setJackpot5Info(Jackpot5Info value) { this.jackpot5Info = value; return this; }
        public GlobalCodePotInfo getGlobalCodePotInfo() { return globalCodePotInfo; }
        public RoundOutcome setGlobalCodePotInfo(GlobalCodePotInfo value) { this.globalCodePotInfo = value; return this; }
        public BigDecimal getStake() { return stake; }
        public RoundOutcome setStake(BigDecimal value) { this.stake = value; return this; }
        public Integer getBetCount() { return betCount; }
        public RoundOutcome setBetCount(Integer value) { this.betCount = value; return this; }
        public BigDecimal getWinnings() { return winnings; }
        public RoundOutcome setWinnings(BigDecimal value) { this.winnings = value; return this; }
        public BigDecimal getBalance() { return balance; }
        public RoundOutcome setBalance(BigDecimal value) { this.balance = value; return this; }
        public BigDecimal getReturnToPlayer() { return returnToPlayer; }
        public RoundOutcome setReturnToPlayer(BigDecimal value) { this.returnToPlayer = value; return this; }
        public Integer getWinCount() { return winCount; }
        public RoundOutcome setWinCount(Integer value) { this.winCount = value; return this; }
        public Integer getSlipWinCount() { return slipWinCount; }
        public RoundOutcome setSlipWinCount(Integer value) { this.slipWinCount = value; return this; }
        public Float getWinCountPct() { return winCountPct; }
        public RoundOutcome setWinCountPct(Float value) { this.winCountPct = value; return this; }
        public Integer getSlipCount() { return slipCount; }
        public RoundOutcome setSlipCount(Integer value) { this.slipCount = value; return this; }
        public Integer getUnitBetCount() { return unitBetCount; }
        public RoundOutcome setUnitBetCount(Integer value) { this.unitBetCount = value; return this; }
    }

    public static class DrawItem
    {
        public Integer ordinal = null;
        public Integer number = null;
        public Float coefficient = null;
        public Boolean isDoubleTriple = null;
        public Boolean constitutesJackpot = null;
        public Integer hits = null;
        public BigDecimal win = null;
        
        public Integer getOrdinal() { return ordinal; }
        public DrawItem setOrdinal(Integer value) { this.ordinal = value; return this; }
        public Integer getNumber() { return number; }
        public DrawItem setNumber(Integer value) { this.number = value; return this; }
        public Float getCoefficient() { return coefficient; }
        public DrawItem setCoefficient(Float value) { this.coefficient = value; return this; }
        public Boolean getIsDoubleTriple() { return isDoubleTriple; }
        public DrawItem setIsDoubleTriple(Boolean value) { this.isDoubleTriple = value; return this; }
        public Boolean isConstitutesJackpot() { return constitutesJackpot; }
        public DrawItem setConstitutesJackpot(Boolean value) { this.constitutesJackpot = value; return this; }
        public Integer getHits() { return hits; }
        public DrawItem setHits(Integer value) { this.hits = value; return this; }
        public BigDecimal getWin() { return win; }
        public DrawItem setWin(BigDecimal value) { this.win = value; return this; }
    }

    public static class CustomBetOutcome
    {
        public CustomBetType type = null;
        public Float coef = null;
        public Integer winCount = null;
        public BigDecimal win = null;
        public Boolean isWin = null;
        public String results = null;
        
        public CustomBetType getType() { return type; }
        public CustomBetOutcome setType(CustomBetType value) { this.type = value; return this; }
        public Float getCoef() { return coef; }
        public CustomBetOutcome setCoef(Float value) { this.coef = value; return this; }
        public Integer getWinCount() { return winCount; }
        public CustomBetOutcome setWinCount(Integer value) { this.winCount = value; return this; }
        public BigDecimal getWin() { return win; }
        public CustomBetOutcome setWin(BigDecimal value) { this.win = value; return this; }
        public Boolean getIsWin() { return isWin; }
        public CustomBetOutcome setIsWin(Boolean value) { this.isWin = value; return this; }
        public String getResults() { return results; }
        public CustomBetOutcome setResults(String value) { this.results = value; return this; }
    }

    public static enum CustomBetType
    {
        @SerializedName("4") FirstNumberOdd(4),
        @SerializedName("5") FirstNumberEven(5),
        @SerializedName("6") FirstNumberLessThan245(6),
        @SerializedName("7") FirstNumberGreaterThan245(7),
        @SerializedName("8") SumOfFirstFiveLessThan1225(8),
        @SerializedName("9") SumOfFirstFiveGreaterThan1225(9),
        @SerializedName("10") FirstColor1(10),
        @SerializedName("11") FirstColor2(11),
        @SerializedName("12") FirstColor3(12),
        @SerializedName("13") FirstColor4(13),
        @SerializedName("14") FirstColor5(14),
        @SerializedName("15") FirstColor6(15),
        @SerializedName("16") FirstColor7(16),
        @SerializedName("17") FirstColor8(17),
        @SerializedName("18") MoreOddNumbers(18),
        @SerializedName("19") MoreEvenNumbers(19);

        private final int value;
        CustomBetType(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    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 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 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 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; }
    }

}

Java GetDraw DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /qry/rounds/draw HTTP/1.1 
Host: s4w2.api.bettor.cc 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"id":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id":"String","sequence":"String","inputAccumulation":[{"id":0,"name":"String","amount":0,"reserveAmount":0}],"outputAccumulation":[{"id":0,"name":"String","amount":0,"reserveAmount":0}],"outcome":{"draw":[{"ordinal":0,"number":0,"coefficient":0,"isDoubleTriple":false,"constitutesJackpot":false,"hits":0,"win":0}],"customBetOutcomes":[{"type":4,"coef":0,"winCount":0,"win":0,"isWin":false,"results":"String"}],"lcpWinners":[{"roundId":"String","drawnAtUtc":"0001-01-01T00:00:00.0000000Z","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"}],"superWinInfo":{"isActive":false,"winner":{"isDrawn":false,"drawnAtUtc":"0001-01-01T00:00:00.0000000Z","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},"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"}}]},"globalCodePotInfo":{"isActive":false,"isDrawn":true,"winner":{"roundId":"String","drawnAtUtc":"0001-01-01T00:00:00.0000000Z","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},"stake":0,"betCount":0,"winnings":0,"balance":0,"returnToPlayer":0,"winCount":0,"slipWinCount":0,"winCountPct":0,"slipCount":0,"unitBetCount":0}}