Six4Win.WebApi

<back to all web services

GetRoundIntegrity

The following routes are available for this service:
All Verbs/qry/rounds/integrity
"use strict";
/** @typedef {number} */
export var CheckStatus;
(function (CheckStatus) {
    CheckStatus[CheckStatus["Ok"] = 1] = "Ok"
    CheckStatus[CheckStatus["Error"] = 2] = "Error"
})(CheckStatus || (CheckStatus = {}));
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 JackPot5Winner {
    /** @param {{betId?:string,nrOfCombinations?:number,winningsAmount?:number,origin?:Origin,bettor?:Ref,payload?:{ [index:string]: string; }}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    betId;
    /** @type {number} */
    nrOfCombinations;
    /** @type {number} */
    winningsAmount;
    /** @type {Origin} */
    origin;
    /** @type {Ref} */
    bettor;
    /** @type {{ [index:string]: string; }} */
    payload;
}
export class Jackpot5Info {
    /** @param {{isHit?:boolean,amountAccumulated?:number,amountAwarded?:number,nrOfWinners?:number,jackPot5Winners?:JackPot5Winner[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {boolean} */
    isHit;
    /** @type {number} */
    amountAccumulated;
    /** @type {number} */
    amountAwarded;
    /** @type {number} */
    nrOfWinners;
    /** @type {JackPot5Winner[]} */
    jackPot5Winners;
}
export class RoundIntegrityCheckResult {
    /** @param {{status?:CheckStatus,extraWinnings?:number,betCount?:number,jpInfo?:Jackpot5Info}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {CheckStatus} */
    status;
    /** @type {number} */
    extraWinnings;
    /** @type {number} */
    betCount;
    /** @type {Jackpot5Info} */
    jpInfo;
}
export class GetRoundIntegrity {
    /** @param {{roundId?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    roundId;
}
class Dictionary {}
/** @typedef TKey {any} */
/** @typedef  TVal {any} */
export class RecordDictionary extends Dictionary {
    constructor(init) { super(init); Object.assign(this, init) }
}

JavaScript GetRoundIntegrity DTOs

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

HTTP + XML

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.webhop.biz 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetRoundIntegrity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.WebApi.ServiceModel">
  <RoundId>String</RoundId>
</GetRoundIntegrity>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<RoundIntegrityCheckResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel">
  <BetCount>0</BetCount>
  <ExtraWinnings>0</ExtraWinnings>
  <JpInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/Six4Win">
    <d2p1:AmountAccumulated>0</d2p1:AmountAccumulated>
    <d2p1:AmountAwarded>0</d2p1:AmountAwarded>
    <d2p1:IsHit>false</d2p1:IsHit>
    <d2p1:JackPot5Winners>
      <d2p1:JackPot5Winner>
        <d2p1:BetId>String</d2p1:BetId>
        <d2p1: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>
        </d2p1:Bettor>
        <d2p1:NrOfCombinations>0</d2p1:NrOfCombinations>
        <d2p1: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>
        </d2p1:Origin>
        <d2p1:Payload xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Payload>
        <d2p1:WinningsAmount>0</d2p1:WinningsAmount>
      </d2p1:JackPot5Winner>
    </d2p1:JackPot5Winners>
    <d2p1:NrOfWinners>0</d2p1:NrOfWinners>
  </JpInfo>
  <Status>Ok</Status>
</RoundIntegrityCheckResult>