Six4Win.WebApi

<back to all web services

GetLastRoundsStats

The following routes are available for this service:
All Verbs/qry/stats/last10
"use strict";
export class Rating {
    /** @param {{val?:number,count?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    val;
    /** @type {number} */
    count;
}
export class Comparison {
    /** @param {{v1?:number,v2?:number,p1?:number,p2?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    v1;
    /** @type {number} */
    v2;
    /** @type {number} */
    p1;
    /** @type {number} */
    p2;
}
export class LastRoundsStats {
    /** @param {{id?:string,topSix?:number[],bottomSix?:number[],topFirstColors?:Rating[],topColors?:Rating[],firstNrEvenVsOdd?:Comparison,firstNrLessVsGreater24_5?:Comparison,sumOfFirstFiveLessVsGreaterThan122_5?:Comparison,totalEvenVsOdd?:Comparison}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id;
    /** @type {number[]} */
    topSix;
    /** @type {number[]} */
    bottomSix;
    /** @type {Rating[]} */
    topFirstColors;
    /** @type {Rating[]} */
    topColors;
    /** @type {Comparison} */
    firstNrEvenVsOdd;
    /** @type {Comparison} */
    firstNrLessVsGreater24_5;
    /** @type {Comparison} */
    sumOfFirstFiveLessVsGreaterThan122_5;
    /** @type {Comparison} */
    totalEvenVsOdd;
}
export class GetLastRoundsStats {
    constructor(init) { Object.assign(this, init) }
}

JavaScript GetLastRoundsStats DTOs

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

HTTP + CSV

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/csv
Content-Type: text/csv
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/csv
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}}