| All Verbs | /qry/feed/hb |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
class Stages(IntEnum):
NONE = 0
COUNTDOWN = 1
PROCESSING = 2
DRAW = 3
RESULTS = 4
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Progress:
step: int = 0
steps: int = 0
pct: float = 0.0
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class FeedHeartbeat:
round_id: Optional[str] = None
stage: Optional[Stages] = None
step: int = 0
steps: int = 0
utc_timestamp: datetime.datetime = datetime.datetime(1, 1, 1)
lockdown_step_from_end: int = 0
overall: Optional[Progress] = None
is_happy_hour: bool = False
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetFeedHeartbeat:
pass
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 /qry/feed/hb HTTP/1.1
Host: s4w2.api.bettor.cc
Accept: application/json
Content-Type: application/json
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: application/json
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}