| All Verbs | /qry/feed/hb |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class GetFeedHeartbeat
{
}
public static class FeedHeartbeat
{
public String roundId = null;
public Stages stage = null;
public Integer step = null;
public Integer steps = null;
public Date utcTimestamp = null;
public Integer lockdownStepFromEnd = null;
public Progress overall = null;
public Boolean isHappyHour = null;
public String getRoundId() { return roundId; }
public FeedHeartbeat setRoundId(String value) { this.roundId = value; return this; }
public Stages getStage() { return stage; }
public FeedHeartbeat setStage(Stages value) { this.stage = value; return this; }
public Integer getStep() { return step; }
public FeedHeartbeat setStep(Integer value) { this.step = value; return this; }
public Integer getSteps() { return steps; }
public FeedHeartbeat setSteps(Integer value) { this.steps = value; return this; }
public Date getUtcTimestamp() { return utcTimestamp; }
public FeedHeartbeat setUtcTimestamp(Date value) { this.utcTimestamp = value; return this; }
public Integer getLockdownStepFromEnd() { return lockdownStepFromEnd; }
public FeedHeartbeat setLockdownStepFromEnd(Integer value) { this.lockdownStepFromEnd = value; return this; }
public Progress getOverall() { return overall; }
public FeedHeartbeat setOverall(Progress value) { this.overall = value; return this; }
public Boolean getIsHappyHour() { return isHappyHour; }
public FeedHeartbeat setIsHappyHour(Boolean value) { this.isHappyHour = value; return this; }
}
public static enum Stages
{
@SerializedName("0") None(0),
@SerializedName("1") Countdown(1),
@SerializedName("2") Processing(2),
@SerializedName("3") Draw(3),
@SerializedName("4") Results(4);
private final int value;
Stages(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class Progress
{
public Integer step = null;
public Integer steps = null;
public Float pct = null;
public Integer getStep() { return step; }
public Progress setStep(Integer value) { this.step = value; return this; }
public Integer getSteps() { return steps; }
public Progress setSteps(Integer value) { this.steps = value; return this; }
public Float getPct() { return pct; }
public Progress setPct(Float value) { this.pct = value; return this; }
}
}
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}