Six4Win.WebApi

<back to all web services

GetLastRoundsStats

The following routes are available for this service:
All Verbs/qry/stats/last10

export class Rating
{
    public val: number;
    public count: number;

    public constructor(init?: Partial<Rating>) { (Object as any).assign(this, init); }
}

export class Comparison
{
    public v1: number;
    public v2: number;
    public p1: number;
    public p2: number;

    public constructor(init?: Partial<Comparison>) { (Object as any).assign(this, init); }
}

export class LastRoundsStats
{
    public id: string;
    public topSix: number[];
    public bottomSix: number[];
    public topFirstColors: Rating[];
    public topColors: Rating[];
    public firstNrEvenVsOdd: Comparison;
    public firstNrLessVsGreater24_5: Comparison;
    public sumOfFirstFiveLessVsGreaterThan122_5: Comparison;
    public totalEvenVsOdd: Comparison;

    public constructor(init?: Partial<LastRoundsStats>) { (Object as any).assign(this, init); }
}

export class GetLastRoundsStats
{

    public constructor(init?: Partial<GetLastRoundsStats>) { (Object as any).assign(this, init); }
}

TypeScript GetLastRoundsStats DTOs

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

HTTP + 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
	}
}