Six4Win.WebApi

<back to all web services

GetSuperWinAccumulations

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

public class dtos
{

    public static class GetSuperWinAccumulations
    {
        
    }

    public static class SuperWinStateDoc
    {
        public String id = null;
        public SuperWinState state = null;
        
        public String getId() { return id; }
        public SuperWinStateDoc setId(String value) { this.id = value; return this; }
        public SuperWinState getState() { return state; }
        public SuperWinStateDoc setState(SuperWinState value) { this.state = value; return this; }
    }

    public static class SuperWinState
    {
        public String currentDate = null;
        public BigDecimal availableAmount = null;
        public RecordDictionary<Integer, SuperWinPool> pools = null;
        
        public String getCurrentDate() { return currentDate; }
        public SuperWinState setCurrentDate(String value) { this.currentDate = value; return this; }
        public BigDecimal getAvailableAmount() { return availableAmount; }
        public SuperWinState setAvailableAmount(BigDecimal value) { this.availableAmount = value; return this; }
        public RecordDictionary<Integer, SuperWinPool> getPools() { return pools; }
        public SuperWinState setPools(RecordDictionary<Integer, SuperWinPool> value) { this.pools = value; return this; }
    }

    public static class RecordDictionary<TKey, TVal> extends HashMap<TKey,TVal>
    {
        
    }

    public static class SuperWinPool
    {
        public Integer id = null;
        public SuperWinPoolState state = null;
        public BigDecimal amount = null;
        public RecordList<SuperWinPrize> schedule = null;
        
        public Integer getId() { return id; }
        public SuperWinPool setId(Integer value) { this.id = value; return this; }
        public SuperWinPoolState getState() { return state; }
        public SuperWinPool setState(SuperWinPoolState value) { this.state = value; return this; }
        public BigDecimal getAmount() { return amount; }
        public SuperWinPool setAmount(BigDecimal value) { this.amount = value; return this; }
        public RecordList<SuperWinPrize> getSchedule() { return schedule; }
        public SuperWinPool setSchedule(RecordList<SuperWinPrize> value) { this.schedule = value; return this; }
    }

    public static enum SuperWinPoolState
    {
        @SerializedName("0") Idle(0),
        @SerializedName("1") Accumulating(1),
        @SerializedName("2") Awarding(2);

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

    public static class RecordList<T> extends ArrayList<T>
    {
        
    }

    public static class SuperWinPrize
    {
        public Integer id = null;
        public BigDecimal amount = null;
        public Date scheduledAt = null;
        public SuperWinWinner winner = null;
        
        public Integer getId() { return id; }
        public SuperWinPrize setId(Integer value) { this.id = value; return this; }
        public BigDecimal getAmount() { return amount; }
        public SuperWinPrize setAmount(BigDecimal value) { this.amount = value; return this; }
        public Date getScheduledAt() { return scheduledAt; }
        public SuperWinPrize setScheduledAt(Date value) { this.scheduledAt = value; return this; }
        public SuperWinWinner getWinner() { return winner; }
        public SuperWinPrize setWinner(SuperWinWinner value) { this.winner = 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 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; }
    }

}

Java GetSuperWinAccumulations DTOs

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

HTTP + XML

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

POST /qry/super-win/accumulations HTTP/1.1 
Host: s4w1.api.meridian.ath.cx 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetSuperWinAccumulations xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.WebApi.ServiceModel" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SuperWinStateDoc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel">
  <Id>String</Id>
  <State xmlns:d2p1="http://schemas.datacontract.org/2004/07/Six4Win">
    <d2p1:AvailableAmount>0</d2p1:AvailableAmount>
    <d2p1:CurrentDate>String</d2p1:CurrentDate>
    <d2p1:Pools xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfintSuperWinPoolQC5r2uXE>
        <d3p1:Key>0</d3p1:Key>
        <d3p1:Value>
          <d2p1:Amount>0</d2p1:Amount>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:Schedule>
            <d2p1:SuperWinPrize>
              <d2p1:Amount>0</d2p1:Amount>
              <d2p1:Id>0</d2p1:Id>
              <d2p1:ScheduledAt>0001-01-01T00:00:00</d2p1:ScheduledAt>
              <d2p1:Winner>
                <d2p1:Amount>0</d2p1:Amount>
                <d2p1:BetId>String</d2p1:BetId>
                <d2p1:Bettor xmlns:d9p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
                  <d9p1:_x003C_Id_x003E_k__BackingField>String</d9p1:_x003C_Id_x003E_k__BackingField>
                  <d9p1:_x003C_Val_x003E_k__BackingField>String</d9p1:_x003C_Val_x003E_k__BackingField>
                </d2p1:Bettor>
                <d2p1:Code>String</d2p1:Code>
                <d2p1:DrawnAtUtc>0001-01-01T00:00:00</d2p1:DrawnAtUtc>
                <d2p1:IsDrawn>false</d2p1:IsDrawn>
                <d2p1:LocationAddressOrBettorInfo>String</d2p1:LocationAddressOrBettorInfo>
                <d2p1:Origin xmlns:d9p1="http://schemas.datacontract.org/2004/07/Betting.Common">
                  <d9p1:Application>
                    <d9p1:Name>String</d9p1:Name>
                    <d9p1:Version>String</d9p1:Version>
                  </d9p1:Application>
                  <d9p1:Clerk xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
                    <d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
                    <d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
                  </d9p1:Clerk>
                  <d9p1:Device xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
                    <d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
                    <d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
                    <d10p1:_x003C_Data_x003E_k__BackingField>
                      <d3p1:KeyValueOfstringstring>
                        <d3p1:Key>String</d3p1:Key>
                        <d3p1:Value>String</d3p1:Value>
                      </d3p1:KeyValueOfstringstring>
                    </d10p1:_x003C_Data_x003E_k__BackingField>
                  </d9p1:Device>
                  <d9p1:IP>String</d9p1:IP>
                  <d9p1:Location xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
                    <d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
                    <d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
                    <d10p1:_x003C_Data_x003E_k__BackingField>
                      <d3p1:KeyValueOfstringstring>
                        <d3p1:Key>String</d3p1:Key>
                        <d3p1:Value>String</d3p1:Value>
                      </d3p1:KeyValueOfstringstring>
                    </d10p1:_x003C_Data_x003E_k__BackingField>
                  </d9p1:Location>
                  <d9p1:LocationGroup xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
                    <d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
                    <d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
                  </d9p1:LocationGroup>
                  <d9p1:Organization xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
                    <d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
                    <d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
                    <d10p1:_x003C_Data_x003E_k__BackingField>
                      <d3p1:KeyValueOfstringstring>
                        <d3p1:Key>String</d3p1:Key>
                        <d3p1:Value>String</d3p1:Value>
                      </d3p1:KeyValueOfstringstring>
                    </d10p1:_x003C_Data_x003E_k__BackingField>
                  </d9p1:Organization>
                  <d9p1:Region xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
                    <d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
                    <d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
                  </d9p1:Region>
                </d2p1:Origin>
                <d2p1:RoundId>String</d2p1:RoundId>
                <d2p1:SlipId>String</d2p1:SlipId>
              </d2p1:Winner>
            </d2p1:SuperWinPrize>
          </d2p1:Schedule>
          <d2p1:State>Idle</d2p1:State>
        </d3p1:Value>
      </d3p1:KeyValueOfintSuperWinPoolQC5r2uXE>
    </d2p1:Pools>
  </State>
</SuperWinStateDoc>