Six4Win.WebApi

<back to all web services

GetFeedHeartbeat

The following routes are available for this service:
All Verbs/qry/feed/hb

export enum Stages
{
    None = 0,
    Countdown = 1,
    Processing = 2,
    Draw = 3,
    Results = 4,
}

export class Progress
{
    public step: number;
    public steps: number;
    public pct: number;

    public constructor(init?: Partial<Progress>) { (Object as any).assign(this, init); }
}

export class FeedHeartbeat
{
    public roundId: string;
    public stage: Stages;
    public step: number;
    public steps: number;
    public utcTimestamp: string;
    public lockdownStepFromEnd: number;
    public overall: Progress;
    public isHappyHour: boolean;

    public constructor(init?: Partial<FeedHeartbeat>) { (Object as any).assign(this, init); }
}

export class GetFeedHeartbeat
{

    public constructor(init?: Partial<GetFeedHeartbeat>) { (Object as any).assign(this, init); }
}

TypeScript GetFeedHeartbeat DTOs

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

HTTP + XML

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/xml
Content-Type: application/xml
Content-Length: length

<GetFeedHeartbeat xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.WebApi.ServiceModel" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FeedHeartbeat xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel">
  <IsHappyHour>false</IsHappyHour>
  <LockdownStepFromEnd>0</LockdownStepFromEnd>
  <Overall>
    <Pct>0</Pct>
    <Step>0</Step>
    <Steps>0</Steps>
  </Overall>
  <RoundId>String</RoundId>
  <Stage>None</Stage>
  <Step>0</Step>
  <Steps>0</Steps>
  <UTCTimestamp>0001-01-01T00:00:00</UTCTimestamp>
</FeedHeartbeat>