Six4Win.WebApi

<back to all web services

GetFeedHeartbeat

The following routes are available for this service:
All Verbs/qry/feed/hb
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class GetFeedHeartbeat
{
}

open class FeedHeartbeat
{
    open var roundId:String? = null
    open var stage:Stages? = null
    open var step:Int? = null
    open var steps:Int? = null
    open var utcTimestamp:Date? = null
    open var lockdownStepFromEnd:Int? = null
    open var overall:Progress? = null
    open var isHappyHour:Boolean? = null
}

enum class Stages(val value:Int)
{
    @SerializedName("0") None(0),
    @SerializedName("1") Countdown(1),
    @SerializedName("2") Processing(2),
    @SerializedName("3") Draw(3),
    @SerializedName("4") Results(4),
}

open class Progress
{
    open var step:Int? = null
    open var steps:Int? = null
    open var pct:Float? = null
}

Kotlin 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
}