| All Verbs | /qry/lcp/accumulations |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class GetLocalCodePotAccumulations
{
}
public static class LocalCodePotAccumulations
{
public String id = null;
public HashMap<String,LCPAccumulation> accumulations = null;
public String currentRoundId = null;
public String inertCode = null;
public String getId() { return id; }
public LocalCodePotAccumulations setId(String value) { this.id = value; return this; }
public HashMap<String,LCPAccumulation> getAccumulations() { return accumulations; }
public LocalCodePotAccumulations setAccumulations(HashMap<String,LCPAccumulation> value) { this.accumulations = value; return this; }
public String getCurrentRoundId() { return currentRoundId; }
public LocalCodePotAccumulations setCurrentRoundId(String value) { this.currentRoundId = value; return this; }
public String getInertCode() { return inertCode; }
public LocalCodePotAccumulations setInertCode(String value) { this.inertCode = value; return this; }
}
public static class LCPAccumulation
{
public String locId = null;
public String locName = null;
public BigDecimal amount = null;
public BigDecimal threshold = null;
public LCPConfiguration cfg = null;
public ArrayList<WinnerByCode> winners = null;
public String getLocId() { return locId; }
public LCPAccumulation setLocId(String value) { this.locId = value; return this; }
public String getLocName() { return locName; }
public LCPAccumulation setLocName(String value) { this.locName = value; return this; }
public BigDecimal getAmount() { return amount; }
public LCPAccumulation setAmount(BigDecimal value) { this.amount = value; return this; }
public BigDecimal getThreshold() { return threshold; }
public LCPAccumulation setThreshold(BigDecimal value) { this.threshold = value; return this; }
public LCPConfiguration getCfg() { return cfg; }
public LCPAccumulation setCfg(LCPConfiguration value) { this.cfg = value; return this; }
public ArrayList<WinnerByCode> getWinners() { return winners; }
public LCPAccumulation setWinners(ArrayList<WinnerByCode> value) { this.winners = value; return this; }
}
public static class LCPConfiguration
{
public Boolean isActive = null;
public ThresholdInterval interval = null;
public BigDecimal pct = null;
public Boolean getIsActive() { return isActive; }
public LCPConfiguration setIsActive(Boolean value) { this.isActive = value; return this; }
public ThresholdInterval getInterval() { return interval; }
public LCPConfiguration setInterval(ThresholdInterval value) { this.interval = value; return this; }
public BigDecimal getPct() { return pct; }
public LCPConfiguration setPct(BigDecimal value) { this.pct = value; return this; }
}
public static class ThresholdInterval
{
public BigDecimal start = null;
public BigDecimal end = null;
public BigDecimal getStart() { return start; }
public ThresholdInterval setStart(BigDecimal value) { this.start = value; return this; }
public BigDecimal getEnd() { return end; }
public ThresholdInterval setEnd(BigDecimal value) { this.end = 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 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>
{
}
}
Java GetLocalCodePotAccumulations DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /qry/lcp/accumulations HTTP/1.1
Host: s4w2.api.bettor.cc
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetLocalCodePotAccumulations 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
<LocalCodePotAccumulations xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel">
<Accumulations xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringLCPAccumulationQC5r2uXE>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value xmlns:d4p1="http://schemas.datacontract.org/2004/07/Six4Win">
<d4p1:Amount>0</d4p1:Amount>
<d4p1:Cfg>
<d4p1:Interval>
<d4p1:End>0</d4p1:End>
<d4p1:Start>0</d4p1:Start>
</d4p1:Interval>
<d4p1:IsActive>false</d4p1:IsActive>
<d4p1:Pct>0</d4p1:Pct>
</d4p1:Cfg>
<d4p1:LocId>String</d4p1:LocId>
<d4p1:LocName>String</d4p1:LocName>
<d4p1:Threshold>0</d4p1:Threshold>
<d4p1:Winners xmlns:d5p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<d5p1:_array />
<d5p1:_head>0</d5p1:_head>
<d5p1:_size>0</d5p1:_size>
<d5p1:_tail>0</d5p1:_tail>
<d5p1:_version>0</d5p1:_version>
</d4p1:Winners>
</d2p1:Value>
</d2p1:KeyValueOfstringLCPAccumulationQC5r2uXE>
</Accumulations>
<CurrentRoundId>String</CurrentRoundId>
<Id>String</Id>
<InertCode>String</InertCode>
</LocalCodePotAccumulations>