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.*;

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

}

Java GetFeedHeartbeat DTOs

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

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<GetFeedHeartbeat xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.WebApi.ServiceModel" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FeedHeartbeat xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel">
  <IsHappyHour>false</IsHappyHour>
  <LockdownStepFromEnd>0</LockdownStepFromEnd>
  <Overall>
    <Pct>0</Pct>
    <Step>0</Step>
    <Steps>0</Steps>
  </Overall>
  <RoundId>String</RoundId>
  <Stage>None</Stage>
  <Step>0</Step>
  <Steps>0</Steps>
  <UTCTimestamp>0001-01-01T00:00:00</UTCTimestamp>
</FeedHeartbeat>