Six4Win.WebApi

<back to all web services

GetRecentSuperWinWinners

The following routes are available for this service:
GET/qry/recentSuperWinWinners
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class GetRecentSuperWinWinners
    {
        
    }

    public static class RecentSuperWinWinners
    {
        public String id = null;
        public ArrayList<SuperWinWinner> recentWinners = null;
        
        public String getId() { return id; }
        public RecentSuperWinWinners setId(String value) { this.id = value; return this; }
        public ArrayList<SuperWinWinner> getRecentWinners() { return recentWinners; }
        public RecentSuperWinWinners setRecentWinners(ArrayList<SuperWinWinner> value) { this.recentWinners = 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; }
    }

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

}

Java GetRecentSuperWinWinners 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.

GET /qry/recentSuperWinWinners HTTP/1.1 
Host: s4w2.api.bettor.cc 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<RecentSuperWinWinners xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel">
  <RecentWinners xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <d2p1:_array xmlns:d3p1="http://schemas.datacontract.org/2004/07/Six4Win" />
    <d2p1:_head>0</d2p1:_head>
    <d2p1:_size>0</d2p1:_size>
    <d2p1:_tail>0</d2p1:_tail>
    <d2p1:_version>0</d2p1:_version>
  </RecentWinners>
</RecentSuperWinWinners>