| 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 .jsv suffix or ?format=jsv
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: text/jsv
Content-Type: text/jsv
Content-Length: length
{
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: String,
topSix:
[
0
],
bottomSix:
[
0
],
topFirstColors:
[
{
val: 0,
count: 0
}
],
topColors:
[
{
val: 0,
count: 0
}
],
firstNrEvenVsOdd:
{
v1: 0,
v2: 0,
p1: 0,
p2: 0
},
firstNrLessVsGreater24_5:
{
v1: 0,
v2: 0,
p1: 0,
p2: 0
},
sumOfFirstFiveLessVsGreaterThan122_5:
{
v1: 0,
v2: 0,
p1: 0,
p2: 0
},
totalEvenVsOdd:
{
v1: 0,
v2: 0,
p1: 0,
p2: 0
}
}