Six4Win.WebApi

<back to all web services

GetFeedHeartbeat

The following routes are available for this service:
All Verbs/qry/feed/hb
namespace Six4Win.WebApi.ServiceModel

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    type Stages =
        | None = 0
        | Countdown = 1
        | Processing = 2
        | Draw = 3
        | Results = 4

    [<AllowNullLiteral>]
    type Progress() = 
        member val Step:Int32 = new Int32() with get,set
        member val Steps:Int32 = new Int32() with get,set
        member val Pct:Single = new Single() with get,set

    [<AllowNullLiteral>]
    type FeedHeartbeat() = 
        member val RoundId:String = null with get,set
        member val Stage:Stages = new Stages() with get,set
        member val Step:Int32 = new Int32() with get,set
        member val Steps:Int32 = new Int32() with get,set
        member val UTCTimestamp:DateTime = new DateTime() with get,set
        member val LockdownStepFromEnd:Int32 = new Int32() with get,set
        member val Overall:Progress = null with get,set
        member val IsHappyHour:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type GetFeedHeartbeat() = 
        class end

F# 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
}