Six4Win.WebApi

<back to all web services

GetRoundIntegrity

The following routes are available for this service:
All Verbs/qry/rounds/integrity
"use strict";
/** @typedef {number} */
export var CheckStatus;
(function (CheckStatus) {
    CheckStatus[CheckStatus["Ok"] = 1] = "Ok"
    CheckStatus[CheckStatus["Error"] = 2] = "Error"
})(CheckStatus || (CheckStatus = {}));
export class BettingApp {
    /** @param {{name?:string,version?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    name;
    /** @type {string} */
    version;
}
export class Ref {
    /** @param {{id?:string,val?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id;
    /** @type {string} */
    val;
}
export class RefEx extends Ref {
    /** @param {{data?:RecordDictionary<string, string>,id?:string,val?:string}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {RecordDictionary<string, string>} */
    data;
}
export class Origin {
    /** @param {{application?:BettingApp,ip?:string,organization?:RefEx,region?:Ref,locationGroup?:Ref,location?:RefEx,device?:RefEx,clerk?:Ref}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {BettingApp} */
    application;
    /** @type {string} */
    ip;
    /** @type {RefEx} */
    organization;
    /** @type {Ref} */
    region;
    /** @type {Ref} */
    locationGroup;
    /** @type {RefEx} */
    location;
    /** @type {RefEx} */
    device;
    /** @type {Ref} */
    clerk;
}
export class JackPot5Winner {
    /** @param {{betId?:string,nrOfCombinations?:number,winningsAmount?:number,origin?:Origin,bettor?:Ref,payload?:{ [index:string]: string; }}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    betId;
    /** @type {number} */
    nrOfCombinations;
    /** @type {number} */
    winningsAmount;
    /** @type {Origin} */
    origin;
    /** @type {Ref} */
    bettor;
    /** @type {{ [index:string]: string; }} */
    payload;
}
export class Jackpot5Info {
    /** @param {{isHit?:boolean,amountAccumulated?:number,amountAwarded?:number,nrOfWinners?:number,jackPot5Winners?:JackPot5Winner[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {boolean} */
    isHit;
    /** @type {number} */
    amountAccumulated;
    /** @type {number} */
    amountAwarded;
    /** @type {number} */
    nrOfWinners;
    /** @type {JackPot5Winner[]} */
    jackPot5Winners;
}
export class RoundIntegrityCheckResult {
    /** @param {{status?:CheckStatus,extraWinnings?:number,betCount?:number,jpInfo?:Jackpot5Info}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {CheckStatus} */
    status;
    /** @type {number} */
    extraWinnings;
    /** @type {number} */
    betCount;
    /** @type {Jackpot5Info} */
    jpInfo;
}
export class GetRoundIntegrity {
    /** @param {{roundId?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    roundId;
}
class Dictionary {}
/** @typedef TKey {any} */
/** @typedef  TVal {any} */
export class RecordDictionary extends Dictionary {
    constructor(init) { super(init); Object.assign(this, init) }
}

JavaScript GetRoundIntegrity DTOs

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

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /qry/rounds/integrity HTTP/1.1 
Host: s4w2.api.bettor.cc 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"roundId":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"status":1,"extraWinnings":0,"betCount":0,"jpInfo":{"isHit":false,"amountAccumulated":0,"amountAwarded":0,"nrOfWinners":0,"jackPot5Winners":[{"betId":"String","nrOfCombinations":0,"winningsAmount":0,"origin":{"application":{"name":"String","version":"String"},"ip":"String","organization":{"data":{"String":"String"},"id":"String","val":"String"},"region":{"id":"String","val":"String"},"locationGroup":{"id":"String","val":"String"},"location":{"data":{"String":"String"},"id":"String","val":"String"},"device":{"data":{"String":"String"},"id":"String","val":"String"},"clerk":{"id":"String","val":"String"}},"bettor":{"id":"String","val":"String"},"payload":{"String":"String"}}]}}