| All Verbs | /config/game |
|---|
"use strict";
/** @typedef {number} */
export var RTPStrategies;
(function (RTPStrategies) {
RTPStrategies[RTPStrategies["RNG"] = 0] = "RNG"
RTPStrategies[RTPStrategies["Default"] = 1] = "Default"
})(RTPStrategies || (RTPStrategies = {}));
export class RoundConfiguration {
/** @param {{countdownDurationInSeconds?:number,raceDurationInSeconds?:number,resultsDurationInSeconds?:number,rtpStrategy?:RTPStrategies}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
countdownDurationInSeconds;
/** @type {number} */
raceDurationInSeconds;
/** @type {number} */
resultsDurationInSeconds;
/** @type {RTPStrategies} */
rtpStrategy;
}
export class GameConfiguration {
/** @param {{id?:string,queueSize?:number,roundConfiguration?:RoundConfiguration}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?string} */
id;
/** @type {number} */
queueSize;
/** @type {?RoundConfiguration} */
roundConfiguration;
}
export class GetGameConfig {
constructor(init) { Object.assign(this, init) }
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /config/game HTTP/1.1
Host: grh1.api.bettor.webhop.biz
Accept: application/json
Content-Type: application/json
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id":"String","queueSize":0,"roundConfiguration":{"countdownDurationInSeconds":0,"raceDurationInSeconds":0,"resultsDurationInSeconds":0,"rtpStrategy":0}}