| All Verbs | /qry/feed/locations |
|---|
"use strict";
export class CurrentRoundInfo {
/** @param {{roundId?:string,amount?:number,inertCode?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
roundId;
/** @type {number} */
amount;
/** @type {string} */
inertCode;
}
export class BettingApp {
/** @param {{name?:string,version?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
name;
/** @type {string} */
version;
}
export class Ref {
/** @param {{id?:string,val?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id;
/** @type {string} */
val;
}
export class RefEx extends Ref {
/** @param {{data?:RecordDictionary<string, string>,id?:string,val?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {RecordDictionary<string, string>} */
data;
}
export class Origin {
/** @param {{application?:BettingApp,ip?:string,organization?:RefEx,region?:Ref,locationGroup?:Ref,location?:RefEx,device?:RefEx,clerk?:Ref}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {BettingApp} */
application;
/** @type {string} */
ip;
/** @type {RefEx} */
organization;
/** @type {Ref} */
region;
/** @type {Ref} */
locationGroup;
/** @type {RefEx} */
location;
/** @type {RefEx} */
device;
/** @type {Ref} */
clerk;
}
export class WinnerByCode {
/** @param {{roundId?:string,drawnAtUtc?:string,slipId?:string,betId?:string,code?:string,amount?:number,origin?:Origin,bettor?:Ref,locationAddressOrBettorInfo?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
roundId;
/** @type {string} */
drawnAtUtc;
/** @type {string} */
slipId;
/** @type {string} */
betId;
/** @type {string} */
code;
/** @type {number} */
amount;
/** @type {Origin} */
origin;
/** @type {Ref} */
bettor;
/** @type {string} */
locationAddressOrBettorInfo;
}
export class LocalCodePotInfo {
/** @param {{isActive?:boolean,current?:CurrentRoundInfo,winners?:WinnerByCode[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {boolean} */
isActive;
/** @type {CurrentRoundInfo} */
current;
/** @type {WinnerByCode[]} */
winners;
}
export class LocationFeed {
/** @param {{exists?:boolean,id?:string,lcpInfo?:LocalCodePotInfo}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {boolean} */
exists;
/** @type {string} */
id;
/** @type {LocalCodePotInfo} */
lcpInfo;
}
export class GetLocationFeed {
/** @param {{id?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id;
}
class Dictionary {}
/** @typedef TKey {any} */
/** @typedef TVal {any} */
export class RecordDictionary extends Dictionary {
constructor(init) { super(init); Object.assign(this, init) }
}
JavaScript GetLocationFeed DTOs
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 /qry/feed/locations HTTP/1.1
Host: s4w1.api.meridian.ath.cx
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetLocationFeed xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.WebApi.ServiceModel">
<Id>String</Id>
</GetLocationFeed>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<LocationFeed xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel">
<Exists>false</Exists>
<Id>String</Id>
<LCPInfo>
<Current>
<Amount>0</Amount>
<InertCode>String</InertCode>
<RoundId>String</RoundId>
</Current>
<IsActive>false</IsActive>
<Winners xmlns:d3p1="http://schemas.datacontract.org/2004/07/Six4Win">
<d3p1:WinnerByCode>
<d3p1:Amount>0</d3p1:Amount>
<d3p1:BetId>String</d3p1:BetId>
<d3p1:Bettor xmlns:d5p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d5p1:_x003C_Id_x003E_k__BackingField>String</d5p1:_x003C_Id_x003E_k__BackingField>
<d5p1:_x003C_Val_x003E_k__BackingField>String</d5p1:_x003C_Val_x003E_k__BackingField>
</d3p1:Bettor>
<d3p1:Code>String</d3p1:Code>
<d3p1:DrawnAtUtc>0001-01-01T00:00:00</d3p1:DrawnAtUtc>
<d3p1:LocationAddressOrBettorInfo>String</d3p1:LocationAddressOrBettorInfo>
<d3p1:Origin xmlns:d5p1="http://schemas.datacontract.org/2004/07/Betting.Common">
<d5p1:Application>
<d5p1:Name>String</d5p1:Name>
<d5p1:Version>String</d5p1:Version>
</d5p1:Application>
<d5p1:Clerk xmlns:d6p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d6p1:_x003C_Id_x003E_k__BackingField>String</d6p1:_x003C_Id_x003E_k__BackingField>
<d6p1:_x003C_Val_x003E_k__BackingField>String</d6p1:_x003C_Val_x003E_k__BackingField>
</d5p1:Clerk>
<d5p1:Device xmlns:d6p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d6p1:_x003C_Id_x003E_k__BackingField>String</d6p1:_x003C_Id_x003E_k__BackingField>
<d6p1:_x003C_Val_x003E_k__BackingField>String</d6p1:_x003C_Val_x003E_k__BackingField>
<d6p1:_x003C_Data_x003E_k__BackingField xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:KeyValueOfstringstring>
<d7p1:Key>String</d7p1:Key>
<d7p1:Value>String</d7p1:Value>
</d7p1:KeyValueOfstringstring>
</d6p1:_x003C_Data_x003E_k__BackingField>
</d5p1:Device>
<d5p1:IP>String</d5p1:IP>
<d5p1:Location xmlns:d6p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d6p1:_x003C_Id_x003E_k__BackingField>String</d6p1:_x003C_Id_x003E_k__BackingField>
<d6p1:_x003C_Val_x003E_k__BackingField>String</d6p1:_x003C_Val_x003E_k__BackingField>
<d6p1:_x003C_Data_x003E_k__BackingField xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:KeyValueOfstringstring>
<d7p1:Key>String</d7p1:Key>
<d7p1:Value>String</d7p1:Value>
</d7p1:KeyValueOfstringstring>
</d6p1:_x003C_Data_x003E_k__BackingField>
</d5p1:Location>
<d5p1:LocationGroup xmlns:d6p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d6p1:_x003C_Id_x003E_k__BackingField>String</d6p1:_x003C_Id_x003E_k__BackingField>
<d6p1:_x003C_Val_x003E_k__BackingField>String</d6p1:_x003C_Val_x003E_k__BackingField>
</d5p1:LocationGroup>
<d5p1:Organization xmlns:d6p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d6p1:_x003C_Id_x003E_k__BackingField>String</d6p1:_x003C_Id_x003E_k__BackingField>
<d6p1:_x003C_Val_x003E_k__BackingField>String</d6p1:_x003C_Val_x003E_k__BackingField>
<d6p1:_x003C_Data_x003E_k__BackingField xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:KeyValueOfstringstring>
<d7p1:Key>String</d7p1:Key>
<d7p1:Value>String</d7p1:Value>
</d7p1:KeyValueOfstringstring>
</d6p1:_x003C_Data_x003E_k__BackingField>
</d5p1:Organization>
<d5p1:Region xmlns:d6p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d6p1:_x003C_Id_x003E_k__BackingField>String</d6p1:_x003C_Id_x003E_k__BackingField>
<d6p1:_x003C_Val_x003E_k__BackingField>String</d6p1:_x003C_Val_x003E_k__BackingField>
</d5p1:Region>
</d3p1:Origin>
<d3p1:RoundId>String</d3p1:RoundId>
<d3p1:SlipId>String</d3p1:SlipId>
</d3p1:WinnerByCode>
</Winners>
</LCPInfo>
</LocationFeed>