| All Verbs | /qry/stats/last10 |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class GetLastRoundsStats
{
}
public static class LastRoundsStats
{
public String id = null;
public ArrayList<Integer> topSix = null;
public ArrayList<Integer> bottomSix = null;
public ArrayList<Rating> topFirstColors = null;
public ArrayList<Rating> topColors = null;
public Comparison firstNrEvenVsOdd = null;
public Comparison firstNrLessVsGreater24_5 = null;
public Comparison sumOfFirstFiveLessVsGreaterThan122_5 = null;
public Comparison totalEvenVsOdd = null;
public String getId() { return id; }
public LastRoundsStats setId(String value) { this.id = value; return this; }
public ArrayList<Integer> getTopSix() { return topSix; }
public LastRoundsStats setTopSix(ArrayList<Integer> value) { this.topSix = value; return this; }
public ArrayList<Integer> getBottomSix() { return bottomSix; }
public LastRoundsStats setBottomSix(ArrayList<Integer> value) { this.bottomSix = value; return this; }
public ArrayList<Rating> getTopFirstColors() { return topFirstColors; }
public LastRoundsStats setTopFirstColors(ArrayList<Rating> value) { this.topFirstColors = value; return this; }
public ArrayList<Rating> getTopColors() { return topColors; }
public LastRoundsStats setTopColors(ArrayList<Rating> value) { this.topColors = value; return this; }
public Comparison getFirstNrEvenVsOdd() { return firstNrEvenVsOdd; }
public LastRoundsStats setFirstNrEvenVsOdd(Comparison value) { this.firstNrEvenVsOdd = value; return this; }
public Comparison getFirstNrLessVsGreater245() { return firstNrLessVsGreater24_5; }
public LastRoundsStats setFirstNrLessVsGreater245(Comparison value) { this.firstNrLessVsGreater24_5 = value; return this; }
public Comparison getSumOfFirstFiveLessVsGreaterThan1225() { return sumOfFirstFiveLessVsGreaterThan122_5; }
public LastRoundsStats setSumOfFirstFiveLessVsGreaterThan1225(Comparison value) { this.sumOfFirstFiveLessVsGreaterThan122_5 = value; return this; }
public Comparison getTotalEvenVsOdd() { return totalEvenVsOdd; }
public LastRoundsStats setTotalEvenVsOdd(Comparison value) { this.totalEvenVsOdd = value; return this; }
}
public static class Rating
{
public Integer val = null;
public Integer count = null;
public Integer getVal() { return val; }
public Rating setVal(Integer value) { this.val = value; return this; }
public Integer getCount() { return count; }
public Rating setCount(Integer value) { this.count = value; return this; }
}
public static class Comparison
{
public Integer v1 = null;
public Integer v2 = null;
public Float p1 = null;
public Float p2 = null;
public Integer getV1() { return v1; }
public Comparison setV1(Integer value) { this.v1 = value; return this; }
public Integer getV2() { return v2; }
public Comparison setV2(Integer value) { this.v2 = value; return this; }
public Float getP1() { return p1; }
public Comparison setP1(Float value) { this.p1 = value; return this; }
public Float getP2() { return p2; }
public Comparison setP2(Float value) { this.p2 = value; return this; }
}
}
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/stats/last10 HTTP/1.1
Host: s4w2.api.bettor.cc
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetLastRoundsStats 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
<LastRoundsStats xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel.Stats">
<BottomSix xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>0</d2p1:int>
</BottomSix>
<FirstNrEvenVsOdd>
<V1>0</V1>
<V2>0</V2>
</FirstNrEvenVsOdd>
<FirstNrLessVsGreater24_5>
<V1>0</V1>
<V2>0</V2>
</FirstNrLessVsGreater24_5>
<Id>String</Id>
<SumOfFirstFiveLessVsGreaterThan122_5>
<V1>0</V1>
<V2>0</V2>
</SumOfFirstFiveLessVsGreaterThan122_5>
<TopColors>
<LastRoundsStats.Rating>
<Count>0</Count>
<Val>0</Val>
</LastRoundsStats.Rating>
</TopColors>
<TopFirstColors>
<LastRoundsStats.Rating>
<Count>0</Count>
<Val>0</Val>
</LastRoundsStats.Rating>
</TopFirstColors>
<TopSix xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>0</d2p1:int>
</TopSix>
<TotalEvenVsOdd>
<V1>0</V1>
<V2>0</V2>
</TotalEvenVsOdd>
</LastRoundsStats>