Six4Win.WebApi

<back to all web services

GetRoundIntegrity

The following routes are available for this service:
All Verbs/qry/rounds/integrity

export enum CheckStatus
{
    Ok = 1,
    Error = 2,
}

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 JackPot5Winner
{
    public betId: string;
    public nrOfCombinations: number;
    public winningsAmount: number;
    public origin: Origin;
    public bettor: Ref;
    public payload: { [index:string]: string; };

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

export class Jackpot5Info
{
    public isHit: boolean;
    public amountAccumulated: number;
    public amountAwarded: number;
    public nrOfWinners: number;
    public jackPot5Winners: JackPot5Winner[];

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

export class RoundIntegrityCheckResult
{
    public status: CheckStatus;
    public extraWinnings: number;
    public betCount: number;
    public jpInfo: Jackpot5Info;

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

export class GetRoundIntegrity
{
    public roundId: string;

    public constructor(init?: Partial<GetRoundIntegrity>) { (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 GetRoundIntegrity DTOs

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

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /qry/rounds/integrity HTTP/1.1 
Host: s4w2.api.bettor.cc 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	roundId: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	status: 1,
	extraWinnings: 0,
	betCount: 0,
	jpInfo: 
	{
		isHit: False,
		amountAccumulated: 0,
		amountAwarded: 0,
		nrOfWinners: 0,
		jackPot5Winners: 
		[
			{
				betId: String,
				nrOfCombinations: 0,
				winningsAmount: 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
				},
				payload: 
				{
					String: String
				}
			}
		]
	}
}