| All Verbs | /feed |
|---|
// @ts-nocheck
export enum RoundStatus
{
Pending = 0,
InProgress = 1,
Ended = 2,
}
export enum RTPStrategies
{
RNG = 0,
Default = 1,
}
export class RoundConfiguration
{
public countdownDurationInSeconds: number;
public raceDurationInSeconds: number;
public resultsDurationInSeconds: number;
public rtpStrategy: RTPStrategies;
public constructor(init?: Partial<RoundConfiguration>) { (Object as any).assign(this, init); }
}
export enum OutcomeStatus
{
Unknown = 0,
Lost = 1,
Won = 2,
Void = 3,
}
export class Outcome
{
public id: number;
public odds: number;
public status: OutcomeStatus;
public constructor(init?: Partial<Outcome>) { (Object as any).assign(this, init); }
}
export class JackpotInfo
{
public isGiven: boolean;
public id?: string;
public slipId?: string;
public jpId?: string;
public amount: number;
public locationId?: string;
public locationName?: string;
public addressLine?: string;
public amountAccumulated: number;
public constructor(init?: Partial<JackpotInfo>) { (Object as any).assign(this, init); }
}
export enum Stages
{
None = 0,
Countdown = 1,
Processing = 2,
Race = 3,
Results = 4,
}
export class RoundProgress
{
public stage: Stages;
public step: number;
public steps: number;
public utcTimestamp: string;
public constructor(init?: Partial<RoundProgress>) { (Object as any).assign(this, init); }
}
export class Round
{
public id?: string;
public createdAt: string;
public updatedAt: string;
public status: RoundStatus;
public configuration?: RoundConfiguration;
public odds?: { [index:number]: Outcome; };
public jackpotInfo?: JackpotInfo;
public sequence?: string;
public progress?: RoundProgress;
public isLocked: boolean;
public isCalculated: boolean;
public constructor(init?: Partial<Round>) { (Object as any).assign(this, init); }
}
export class Feed
{
public id?: string;
public round?: Round;
public lastJackpotInfo?: JackpotInfo;
public constructor(init?: Partial<Feed>) { (Object as any).assign(this, init); }
}
export class GetFeed
{
public constructor(init?: Partial<GetFeed>) { (Object as any).assign(this, init); }
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /feed HTTP/1.1
Host: grh1.api.bettor.webhop.biz
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetFeed xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Greyhounds.WebApi.ServiceModel" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<Feed xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Greyhounds.ReadModel">
<Id>String</Id>
<LastJackpotInfo>
<AddressLine>String</AddressLine>
<Amount>0</Amount>
<AmountAccumulated>0</AmountAccumulated>
<Id>String</Id>
<IsGiven>false</IsGiven>
<JPId>String</JPId>
<LocationId>String</LocationId>
<LocationName>String</LocationName>
<SlipId>String</SlipId>
</LastJackpotInfo>
<Round>
<Configuration>
<CountdownDurationInSeconds>0</CountdownDurationInSeconds>
<RTPStrategy>RNG</RTPStrategy>
<RaceDurationInSeconds>0</RaceDurationInSeconds>
<ResultsDurationInSeconds>0</ResultsDurationInSeconds>
</Configuration>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<Id>String</Id>
<IsCalculated>false</IsCalculated>
<IsLocked>false</IsLocked>
<JackpotInfo>
<AddressLine>String</AddressLine>
<Amount>0</Amount>
<AmountAccumulated>0</AmountAccumulated>
<Id>String</Id>
<IsGiven>false</IsGiven>
<JPId>String</JPId>
<LocationId>String</LocationId>
<LocationName>String</LocationName>
<SlipId>String</SlipId>
</JackpotInfo>
<Odds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfintRound.OutcomeBB7LCH9U>
<d3p1:Key>0</d3p1:Key>
<d3p1:Value>
<Id>0</Id>
<Odds>0</Odds>
<Status>Unknown</Status>
</d3p1:Value>
</d3p1:KeyValueOfintRound.OutcomeBB7LCH9U>
</Odds>
<Progress>
<Stage>None</Stage>
<Step>0</Step>
<Steps>0</Steps>
<UTCTimestamp>0001-01-01T00:00:00</UTCTimestamp>
</Progress>
<Sequence>String</Sequence>
<Status>Pending</Status>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
</Round>
</Feed>