Six4Win.WebApi

<back to all web services

GetFeedHeartbeat

The following routes are available for this service:
All Verbs/qry/feed/hb
"use strict";
/** @typedef {number} */
export var Stages;
(function (Stages) {
    Stages[Stages["None"] = 0] = "None"
    Stages[Stages["Countdown"] = 1] = "Countdown"
    Stages[Stages["Processing"] = 2] = "Processing"
    Stages[Stages["Draw"] = 3] = "Draw"
    Stages[Stages["Results"] = 4] = "Results"
})(Stages || (Stages = {}));
export class Progress {
    /** @param {{step?:number,steps?:number,pct?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    step;
    /** @type {number} */
    steps;
    /** @type {number} */
    pct;
}
export class FeedHeartbeat {
    /** @param {{roundId?:string,stage?:Stages,step?:number,steps?:number,utcTimestamp?:string,lockdownStepFromEnd?:number,overall?:Progress,isHappyHour?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    roundId;
    /** @type {Stages} */
    stage;
    /** @type {number} */
    step;
    /** @type {number} */
    steps;
    /** @type {string} */
    utcTimestamp;
    /** @type {number} */
    lockdownStepFromEnd;
    /** @type {Progress} */
    overall;
    /** @type {boolean} */
    isHappyHour;
}
export class GetFeedHeartbeat {
    constructor(init) { Object.assign(this, init) }
}

JavaScript GetFeedHeartbeat 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/feed/hb 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

{
	roundId: String,
	stage: 0,
	step: 0,
	steps: 0,
	utcTimestamp: 0001-01-01,
	lockdownStepFromEnd: 0,
	overall: 
	{
		step: 0,
		steps: 0,
		pct: 0
	},
	isHappyHour: False
}