Six4Win.WebApi

<back to all web services

GetSuperWinConfiguration

The following routes are available for this service:
All Verbs/qry/super-win/config
"use strict";
/** @typedef {number} */
export var SuperWinPoolState;
(function (SuperWinPoolState) {
    SuperWinPoolState[SuperWinPoolState["Idle"] = 0] = "Idle"
    SuperWinPoolState[SuperWinPoolState["Accumulating"] = 1] = "Accumulating"
    SuperWinPoolState[SuperWinPoolState["Awarding"] = 2] = "Awarding"
})(SuperWinPoolState || (SuperWinPoolState = {}));
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 SuperWinWinner {
    /** @param {{isDrawn?:boolean,drawnAtUtc?:string,roundId?:string,betId?:string,slipId?:string,origin?:Origin,bettor?:Ref,code?:string,amount?:number,locationAddressOrBettorInfo?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {boolean} */
    isDrawn;
    /** @type {string} */
    drawnAtUtc;
    /** @type {string} */
    roundId;
    /** @type {string} */
    betId;
    /** @type {string} */
    slipId;
    /** @type {Origin} */
    origin;
    /** @type {Ref} */
    bettor;
    /** @type {string} */
    code;
    /** @type {number} */
    amount;
    /** @type {string} */
    locationAddressOrBettorInfo;
}
export class SuperWinPrize {
    /** @param {{id?:number,amount?:number,scheduledAt?:string,winner?:SuperWinWinner}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    id;
    /** @type {number} */
    amount;
    /** @type {string} */
    scheduledAt;
    /** @type {SuperWinWinner} */
    winner;
}
export class SuperWinPool {
    /** @param {{id?:number,state?:SuperWinPoolState,amount?:number,schedule?:RecordList<SuperWinPrize>}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    id;
    /** @type {SuperWinPoolState} */
    state;
    /** @type {number} */
    amount;
    /** @type {RecordList<SuperWinPrize>} */
    schedule;
}
export class SuperWinState {
    /** @param {{currentDate?:string,availableAmount?:number,pools?:RecordDictionary<number, SuperWinPool>}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    currentDate;
    /** @type {number} */
    availableAmount;
    /** @type {RecordDictionary<number, SuperWinPool>} */
    pools;
}
export class SuperWinStateDoc {
    /** @param {{id?:string,state?:SuperWinState}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id;
    /** @type {SuperWinState} */
    state;
}
export class GetSuperWinConfiguration {
    constructor(init) { Object.assign(this, init) }
}
class Dictionary {}
/** @typedef TKey {any} */
/** @typedef  TVal {any} */
export class RecordDictionary extends Dictionary {
    constructor(init) { super(init); Object.assign(this, init) }
}
/** @typedef T {any} */
export class RecordList extends Array {
    constructor(init) { super(init); Object.assign(this, init) }
}

JavaScript GetSuperWinConfiguration 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/super-win/config HTTP/1.1 
Host: s4w2.api.bettor.webhop.biz 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

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

<SuperWinStateDoc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel">
  <Id>String</Id>
  <State xmlns:d2p1="http://schemas.datacontract.org/2004/07/Six4Win">
    <d2p1:AvailableAmount>0</d2p1:AvailableAmount>
    <d2p1:CurrentDate>String</d2p1:CurrentDate>
    <d2p1:Pools xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfintSuperWinPoolQC5r2uXE>
        <d3p1:Key>0</d3p1:Key>
        <d3p1:Value>
          <d2p1:Amount>0</d2p1:Amount>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:Schedule>
            <d2p1:SuperWinPrize>
              <d2p1:Amount>0</d2p1:Amount>
              <d2p1:Id>0</d2p1:Id>
              <d2p1:ScheduledAt>0001-01-01T00:00:00</d2p1:ScheduledAt>
              <d2p1:Winner>
                <d2p1:Amount>0</d2p1:Amount>
                <d2p1:BetId>String</d2p1:BetId>
                <d2p1:Bettor xmlns:d9p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
                  <d9p1:_x003C_Id_x003E_k__BackingField>String</d9p1:_x003C_Id_x003E_k__BackingField>
                  <d9p1:_x003C_Val_x003E_k__BackingField>String</d9p1:_x003C_Val_x003E_k__BackingField>
                </d2p1:Bettor>
                <d2p1:Code>String</d2p1:Code>
                <d2p1:DrawnAtUtc>0001-01-01T00:00:00</d2p1:DrawnAtUtc>
                <d2p1:IsDrawn>false</d2p1:IsDrawn>
                <d2p1:LocationAddressOrBettorInfo>String</d2p1:LocationAddressOrBettorInfo>
                <d2p1:Origin xmlns:d9p1="http://schemas.datacontract.org/2004/07/Betting.Common">
                  <d9p1:Application>
                    <d9p1:Name>String</d9p1:Name>
                    <d9p1:Version>String</d9p1:Version>
                  </d9p1:Application>
                  <d9p1:Clerk xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
                    <d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
                    <d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
                  </d9p1:Clerk>
                  <d9p1:Device xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
                    <d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
                    <d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
                    <d10p1:_x003C_Data_x003E_k__BackingField>
                      <d3p1:KeyValueOfstringstring>
                        <d3p1:Key>String</d3p1:Key>
                        <d3p1:Value>String</d3p1:Value>
                      </d3p1:KeyValueOfstringstring>
                    </d10p1:_x003C_Data_x003E_k__BackingField>
                  </d9p1:Device>
                  <d9p1:IP>String</d9p1:IP>
                  <d9p1:Location xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
                    <d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
                    <d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
                    <d10p1:_x003C_Data_x003E_k__BackingField>
                      <d3p1:KeyValueOfstringstring>
                        <d3p1:Key>String</d3p1:Key>
                        <d3p1:Value>String</d3p1:Value>
                      </d3p1:KeyValueOfstringstring>
                    </d10p1:_x003C_Data_x003E_k__BackingField>
                  </d9p1:Location>
                  <d9p1:LocationGroup xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
                    <d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
                    <d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
                  </d9p1:LocationGroup>
                  <d9p1:Organization xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
                    <d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
                    <d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
                    <d10p1:_x003C_Data_x003E_k__BackingField>
                      <d3p1:KeyValueOfstringstring>
                        <d3p1:Key>String</d3p1:Key>
                        <d3p1:Value>String</d3p1:Value>
                      </d3p1:KeyValueOfstringstring>
                    </d10p1:_x003C_Data_x003E_k__BackingField>
                  </d9p1:Organization>
                  <d9p1:Region xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
                    <d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
                    <d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
                  </d9p1:Region>
                </d2p1:Origin>
                <d2p1:RoundId>String</d2p1:RoundId>
                <d2p1:SlipId>String</d2p1:SlipId>
              </d2p1:Winner>
            </d2p1:SuperWinPrize>
          </d2p1:Schedule>
          <d2p1:State>Idle</d2p1:State>
        </d3p1:Value>
      </d3p1:KeyValueOfintSuperWinPoolQC5r2uXE>
    </d2p1:Pools>
  </State>
</SuperWinStateDoc>