Six4Win.WebApi

<back to all web services

GetFeedHeartbeat

The following routes are available for this service:
All Verbs/qry/feed/hb
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Six4Win.WebApi.ServiceModel
Imports Six4Win.ReadModel
Imports Six4Win

Namespace Global

    Namespace Six4Win

        Public Enum Stages
            None = 0
            Countdown = 1
            Processing = 2
            Draw = 3
            Results = 4
        End Enum
    End Namespace

    Namespace Six4Win.ReadModel

        Public Partial Class FeedHeartbeat
            Public Overridable Property RoundId As String
            Public Overridable Property Stage As Stages
            Public Overridable Property [Step] As Integer
            Public Overridable Property Steps As Integer
            Public Overridable Property UTCTimestamp As Date
            Public Overridable Property LockdownStepFromEnd As Integer
            Public Overridable Property Overall As Progress
            Public Overridable Property IsHappyHour As Boolean
        End Class

        Public Partial Class Progress
            Public Overridable Property [Step] As Integer
            Public Overridable Property Steps As Integer
            Public Overridable Property Pct As Single
        End Class
    End Namespace

    Namespace Six4Win.WebApi.ServiceModel

        Public Partial Class GetFeedHeartbeat
        End Class
    End Namespace
End Namespace

VB.NET GetFeedHeartbeat DTOs

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

HTTP + CSV

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/csv
Content-Type: text/csv
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"roundId":"String","stage":0,"step":0,"steps":0,"utcTimestamp":"0001-01-01T00:00:00.0000000Z","lockdownStepFromEnd":0,"overall":{"step":0,"steps":0,"pct":0},"isHappyHour":false}