Six4Win.WebApi

<back to all web services

GetLocationFeed

The following routes are available for this service:
All Verbs/qry/feed/locations

export class CurrentRoundInfo
{
    public roundId: string;
    public amount: number;
    public inertCode: string;

    public constructor(init?: Partial<CurrentRoundInfo>) { (Object as any).assign(this, init); }
}

export class BettingApp
{
    public name: string;
    public version: string;

    public constructor(init?: Partial<BettingApp>) { (Object as any).assign(this, init); }
}

export class Ref
{
    public id: string;
    public val: string;

    public constructor(init?: Partial<Ref>) { (Object as any).assign(this, init); }
}

export class RefEx extends Ref
{
    public data: RecordDictionary<string, string>;

    public constructor(init?: Partial<RefEx>) { super(init); (Object as any).assign(this, init); }
}

export class Origin
{
    public application: BettingApp;
    public ip: string;
    public organization: RefEx;
    public region: Ref;
    public locationGroup: Ref;
    public location: RefEx;
    public device: RefEx;
    public clerk: Ref;

    public constructor(init?: Partial<Origin>) { (Object as any).assign(this, init); }
}

export class WinnerByCode
{
    public roundId: string;
    public drawnAtUtc: string;
    public slipId: string;
    public betId: string;
    public code: string;
    public amount: number;
    public origin: Origin;
    public bettor: Ref;
    public locationAddressOrBettorInfo: string;

    public constructor(init?: Partial<WinnerByCode>) { (Object as any).assign(this, init); }
}

export class LocalCodePotInfo
{
    public isActive: boolean;
    public current: CurrentRoundInfo;
    public winners: WinnerByCode[];

    public constructor(init?: Partial<LocalCodePotInfo>) { (Object as any).assign(this, init); }
}

export class LocationFeed
{
    public exists: boolean;
    public id: string;
    public lcpInfo: LocalCodePotInfo;

    public constructor(init?: Partial<LocationFeed>) { (Object as any).assign(this, init); }
}

export class GetLocationFeed
{
    public id: string;

    public constructor(init?: Partial<GetLocationFeed>) { (Object as any).assign(this, init); }
}

export class Dictionary<T> { [Key: string]: T; }

export class RecordDictionary<TKey, TVal> extends Dictionary<TVal>
{

    public constructor(init?: Partial<RecordDictionary<TKey, TVal>>) { super(); (Object as any).assign(this, init); }
}

TypeScript GetLocationFeed DTOs

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

HTTP + OTHER

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: s4w2.api.bettor.cc 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"exists":false,"id":"String","lcpInfo":{"isActive":false,"current":{"roundId":"String","amount":0,"inertCode":"String"},"winners":[{"roundId":"String","drawnAtUtc":"0001-01-01T00:00:00.0000000Z","slipId":"String","betId":"String","code":"String","amount":0,"origin":{"application":{"name":"String","version":"String"},"ip":"String","organization":{"data":{"String":"String"},"id":"String","val":"String"},"region":{"id":"String","val":"String"},"locationGroup":{"id":"String","val":"String"},"location":{"data":{"String":"String"},"id":"String","val":"String"},"device":{"data":{"String":"String"},"id":"String","val":"String"},"clerk":{"id":"String","val":"String"}},"bettor":{"id":"String","val":"String"},"locationAddressOrBettorInfo":"String"}]}}