Six4Win.WebApi

<back to all web services

GetFeedHeartbeat

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

public class GetFeedHeartbeat : Codable
{
    required public init(){}
}

public class FeedHeartbeat : Codable
{
    public var roundId:String
    public var stage:Stages
    public var step:Int
    public var steps:Int
    public var utcTimestamp:Date
    public var lockdownStepFromEnd:Int
    public var overall:Progress
    public var isHappyHour:Bool

    required public init(){}
}

public enum Stages : Int, Codable
{
    case None = 0
    case Countdown = 1
    case Processing = 2
    case Draw = 3
    case Results = 4
}

public class Progress : Codable
{
    public var step:Int
    public var steps:Int
    public var pct:Float

    required public init(){}
}


Swift 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.cc 
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
}