| 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 .other suffix or ?format=other
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/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"roundId":"String","stage":0,"step":0,"steps":0,"utcTimestamp":"0001-01-01T00:00:00.0000000Z","lockdownStepFromEnd":0,"overall":{"step":0,"steps":0,"pct":0},"isHappyHour":false}