Six4Win.WebApi

<back to all web services

GetFeedHeartbeat

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

import (
	"time"
)

type Stages int

const (
	StagesNone       Stages = 0
	StagesCountdown  Stages = 1
	StagesProcessing Stages = 2
	StagesDraw       Stages = 3
	StagesResults    Stages = 4
)

type Progress struct {
	Step  int     `json:"step,omitempty"`
	Steps int     `json:"steps,omitempty"`
	Pct   float32 `json:"pct,omitempty"`
}

type FeedHeartbeat struct {
	RoundId             *string   `json:"roundId,omitempty"`
	Stage               Stages    `json:"stage,omitempty"`
	Step                int       `json:"step,omitempty"`
	Steps               int       `json:"steps,omitempty"`
	UtcTimestamp        time.Time `json:"utcTimestamp,omitempty"`
	LockdownStepFromEnd int       `json:"lockdownStepFromEnd,omitempty"`
	Overall             *Progress `json:"overall,omitempty"`
	IsHappyHour         bool      `json:"isHappyHour,omitempty"`
}

type GetFeedHeartbeat struct {
}

Go 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.webhop.biz 
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
}