| All Verbs | /rounds/race |
|---|
// @ts-nocheck
export class Pool
{
public id: number;
public name?: string;
public coefficient: number;
public rtp: number;
public threshold: number;
public balance: number;
public constructor(init?: Partial<Pool>) { (Object as any).assign(this, init); }
}
export class RaceOutcomeRecap
{
public id: number;
public coef: number;
public winCount: number;
public win: number;
public isWin: boolean;
public results?: string;
public constructor(init?: Partial<RaceOutcomeRecap>) { (Object as any).assign(this, init); }
}
export class RoundOutcome
{
public raceOutcomeRecaps?: RaceOutcomeRecap[];
public stake: number;
public winnings: number;
public balance: number;
public returnToPlayer: number;
public constructor(init?: Partial<RoundOutcome>) { (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 class Race
{
public id?: string;
public sequence?: string;
public inputAccumulation?: Pool[];
public outputAccumulation?: Pool[];
public outcome?: RoundOutcome;
public jackpotInfo?: JackpotInfo;
public constructor(init?: Partial<Race>) { (Object as any).assign(this, init); }
}
export class GetRace
{
public id?: string;
public constructor(init?: Partial<GetRace>) { (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 /rounds/race HTTP/1.1
Host: grh1.api.bettor.webhop.biz
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetRace xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Greyhounds.WebApi.ServiceModel">
<Id>String</Id>
</GetRace>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<Race xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Greyhounds.ReadModel">
<Id>String</Id>
<InputAccumulation>
<Accumulation.Pool>
<Amount>0</Amount>
<Id>0</Id>
<Name>String</Name>
</Accumulation.Pool>
</InputAccumulation>
<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>
<Outcome>
<Balance>0</Balance>
<RaceOutcomeRecaps>
<RaceOutcomeRecap>
<Coef>0</Coef>
<Id>0</Id>
<IsWin>false</IsWin>
<Results>String</Results>
<Win>0</Win>
<WinCount>0</WinCount>
</RaceOutcomeRecap>
</RaceOutcomeRecaps>
<ReturnToPlayer>0</ReturnToPlayer>
<Stake>0</Stake>
<Winnings>0</Winnings>
</Outcome>
<OutputAccumulation>
<Accumulation.Pool>
<Amount>0</Amount>
<Id>0</Id>
<Name>String</Name>
</Accumulation.Pool>
</OutputAccumulation>
<Sequence>String</Sequence>
</Race>