| All Verbs | /qry/feed/hb |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Six4Win.WebApi.ServiceModel;
using Six4Win.ReadModel;
using Six4Win;
namespace Six4Win
{
public enum Stages
{
None = 0,
Countdown = 1,
Processing = 2,
Draw = 3,
Results = 4,
}
}
namespace Six4Win.ReadModel
{
public partial class FeedHeartbeat
{
public virtual string RoundId { get; set; }
public virtual Stages Stage { get; set; }
public virtual int Step { get; set; }
public virtual int Steps { get; set; }
public virtual DateTime UTCTimestamp { get; set; }
public virtual int LockdownStepFromEnd { get; set; }
public virtual Progress Overall { get; set; }
public virtual bool IsHappyHour { get; set; }
}
public partial class Progress
{
public virtual int Step { get; set; }
public virtual int Steps { get; set; }
public virtual float Pct { get; set; }
}
}
namespace Six4Win.WebApi.ServiceModel
{
public partial class GetFeedHeartbeat
{
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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}