Six4Win.WebApi

<back to all web services

GetDraw

The following routes are available for this service:
All Verbs/qry/rounds/draw
GetDraw Parameters:
NameParameterData TypeRequiredDescription
IdquerystringNo
Draw Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
SequenceformstringNo
InputAccumulationformList<Pool>No
OutputAccumulationformList<Pool>No
OutcomeformRoundOutcomeNo
Pool Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
CoefficientformdecimalNo
RTPformdecimalNo
ThresholdformdecimalNo
BalanceformdecimalNo
RoundOutcome Parameters:
NameParameterData TypeRequiredDescription
DrawformList<DrawItem>No
CustomBetOutcomesformList<CustomBetOutcome>No
LCPWinnersformList<Winner>No
SuperWinInfoformSuperWinInfoNo
StakeformdecimalNo
WinningsformdecimalNo
BalanceformdecimalNo
ReturnToPlayerformdecimalNo
Jackpot5InfoformJackpot5InfoNo
WinCountformintNo
DrawItem Parameters:
NameParameterData TypeRequiredDescription
OrdinalformintNo
NumberformintNo
CoefficientformfloatNo
IsDoubleTripleformboolNo
ConstitutesJackpotformboolNo
HitsformintNo
WinformdecimalNo
CustomBetOutcome Parameters:
NameParameterData TypeRequiredDescription
TypeformCustomBetTypeNo
CoefformfloatNo
WinCountformintNo
WinformdecimalNo
IsWinformboolNo
ResultsformstringNo
CustomBetType Enum:
NameValue
FirstNumberOdd4
FirstNumberEven5
FirstNumberLessThan24_56
FirstNumberGreaterThan24_57
SumOfFirstFiveLessThan122_58
SumOfFirstFiveGreaterThan122_59
FirstColor110
FirstColor211
FirstColor312
FirstColor413
FirstColor514
FirstColor615
FirstColor716
FirstColor817
MoreOddNumbers18
MoreEvenNumbers19
Winner Parameters:
NameParameterData TypeRequiredDescription
RoundIdformstringNo
SlipIdformstringNo
BetIdformstringNo
CodeformstringNo
AmountformdecimalNo
SuperWinInfo Parameters:
NameParameterData TypeRequiredDescription
IsActiveformboolNo
WinnerformSuperWinWinnerNo
AvailableAmountformdecimalNo
AllPrizesAwardedformboolNo
SuperWinWinner Parameters:
NameParameterData TypeRequiredDescription
IsDrawnformboolNo
DrawnAtUtcformDateTimeNo
RoundIdformstringNo
BetIdformstringNo
SlipIdformstringNo
OriginformOriginNo
BettorformRefNo
CodeformstringNo
AmountformdecimalNo
Origin Parameters:
NameParameterData TypeRequiredDescription
ApplicationformBettingAppNo
IPformstringNo
OrganizationformRefNo
RegionformRefNo
LocationGroupformRefNo
LocationformRefNo
DeviceformRefNo
ClerkformRefNo
BettingApp Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
VersionformstringNo
IsSelfServiceformboolNo
Ref Parameters:
NameParameterData TypeRequiredDescription
IdformstringYes
ValformstringYes
Jackpot5Info Parameters:
NameParameterData TypeRequiredDescription
IsHitformboolNo
AmountAccumulatedformdecimalNo
AmountAwardedformdecimalNo
NrOfWinnersformintNo
JackPot5WinnersformList<JackPot5Winner>No
JackPot5Winner Parameters:
NameParameterData TypeRequiredDescription
BetIdformstringNo
NrOfCombinationsformintNo
WinningsAmountformdecimalNo
OriginformOriginNo
BettorformRefNo
PayloadformDictionary<string, string>No

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/draw HTTP/1.1 
Host: s4w2.api.bengabet.webhop.biz 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

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

<Draw xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel">
  <Id>String</Id>
  <InputAccumulation>
    <Accumulation.Pool>
      <Amount>0</Amount>
      <Id>0</Id>
      <Name>String</Name>
    </Accumulation.Pool>
  </InputAccumulation>
  <Outcome>
    <Balance>0</Balance>
    <CustomBetOutcomes>
      <CustomBetOutcome>
        <Coef>0</Coef>
        <IsWin>false</IsWin>
        <Results>String</Results>
        <Type>FirstNumberOdd</Type>
        <Win>0</Win>
        <WinCount>0</WinCount>
      </CustomBetOutcome>
    </CustomBetOutcomes>
    <Draw>
      <DrawItem>
        <Coefficient>0</Coefficient>
        <ConstitutesJackpot>false</ConstitutesJackpot>
        <Hits>0</Hits>
        <IsDoubleTriple>false</IsDoubleTriple>
        <Number>0</Number>
        <Ordinal>0</Ordinal>
        <Win>0</Win>
      </DrawItem>
    </Draw>
    <Jackpot5Info xmlns:d3p1="http://schemas.datacontract.org/2004/07/Six4Win">
      <d3p1:AmountAccumulated>0</d3p1:AmountAccumulated>
      <d3p1:AmountAwarded>0</d3p1:AmountAwarded>
      <d3p1:IsHit>false</d3p1:IsHit>
      <d3p1:JackPot5Winners>
        <d3p1:JackPot5Winner>
          <d3p1:BetId>String</d3p1:BetId>
          <d3p1:Bettor xmlns:d6p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
            <d6p1:Id>String</d6p1:Id>
            <d6p1:Val>String</d6p1:Val>
          </d3p1:Bettor>
          <d3p1:NrOfCombinations>0</d3p1:NrOfCombinations>
          <d3p1:Origin xmlns:d6p1="http://schemas.datacontract.org/2004/07/Betting.Common">
            <d6p1:Application>
              <d6p1:IsSelfService>false</d6p1:IsSelfService>
              <d6p1:Name>String</d6p1:Name>
              <d6p1:Version>String</d6p1:Version>
            </d6p1:Application>
            <d6p1:Clerk xmlns:d7p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
              <d7p1:Id>String</d7p1:Id>
              <d7p1:Val>String</d7p1:Val>
            </d6p1:Clerk>
            <d6p1:Device xmlns:d7p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
              <d7p1:Id>String</d7p1:Id>
              <d7p1:Val>String</d7p1:Val>
            </d6p1:Device>
            <d6p1:IP>String</d6p1:IP>
            <d6p1:Location xmlns:d7p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
              <d7p1:Id>String</d7p1:Id>
              <d7p1:Val>String</d7p1:Val>
            </d6p1:Location>
            <d6p1:LocationGroup xmlns:d7p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
              <d7p1:Id>String</d7p1:Id>
              <d7p1:Val>String</d7p1:Val>
            </d6p1:LocationGroup>
            <d6p1:Organization xmlns:d7p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
              <d7p1:Id>String</d7p1:Id>
              <d7p1:Val>String</d7p1:Val>
            </d6p1:Organization>
            <d6p1:Region xmlns:d7p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
              <d7p1:Id>String</d7p1:Id>
              <d7p1:Val>String</d7p1:Val>
            </d6p1:Region>
          </d3p1:Origin>
          <d3p1:Payload xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>String</d6p1:Key>
              <d6p1:Value>String</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
          </d3p1:Payload>
          <d3p1:WinningsAmount>0</d3p1:WinningsAmount>
        </d3p1:JackPot5Winner>
      </d3p1:JackPot5Winners>
      <d3p1:NrOfWinners>0</d3p1:NrOfWinners>
    </Jackpot5Info>
    <LCPWinners xmlns:d3p1="http://schemas.datacontract.org/2004/07/Six4Win">
      <d3p1:LCPAccumulation.Winner>
        <d3p1:Amount>0</d3p1:Amount>
        <d3p1:BetId>String</d3p1:BetId>
        <d3p1:Code>String</d3p1:Code>
        <d3p1:RoundId>String</d3p1:RoundId>
        <d3p1:SlipId>String</d3p1:SlipId>
      </d3p1:LCPAccumulation.Winner>
    </LCPWinners>
    <ReturnToPlayer>0</ReturnToPlayer>
    <Stake>0</Stake>
    <SuperWinInfo xmlns:d3p1="http://schemas.datacontract.org/2004/07/Six4Win">
      <d3p1:AllPrizesAwarded>false</d3p1:AllPrizesAwarded>
      <d3p1:AvailableAmount>0</d3p1:AvailableAmount>
      <d3p1:IsActive>false</d3p1:IsActive>
      <d3p1:Winner>
        <d3p1:Amount>0</d3p1:Amount>
        <d3p1:BetId>String</d3p1:BetId>
        <d3p1:Bettor xmlns:d5p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
          <d5p1:Id>String</d5p1:Id>
          <d5p1:Val>String</d5p1:Val>
        </d3p1:Bettor>
        <d3p1:Code>String</d3p1:Code>
        <d3p1:DrawnAtUtc>0001-01-01T00:00:00</d3p1:DrawnAtUtc>
        <d3p1:IsDrawn>false</d3p1:IsDrawn>
        <d3p1:Origin xmlns:d5p1="http://schemas.datacontract.org/2004/07/Betting.Common">
          <d5p1:Application>
            <d5p1:IsSelfService>false</d5p1:IsSelfService>
            <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:Id>String</d6p1:Id>
            <d6p1:Val>String</d6p1:Val>
          </d5p1:Clerk>
          <d5p1:Device xmlns:d6p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
            <d6p1:Id>String</d6p1:Id>
            <d6p1:Val>String</d6p1:Val>
          </d5p1:Device>
          <d5p1:IP>String</d5p1:IP>
          <d5p1:Location xmlns:d6p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
            <d6p1:Id>String</d6p1:Id>
            <d6p1:Val>String</d6p1:Val>
          </d5p1:Location>
          <d5p1:LocationGroup xmlns:d6p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
            <d6p1:Id>String</d6p1:Id>
            <d6p1:Val>String</d6p1:Val>
          </d5p1:LocationGroup>
          <d5p1:Organization xmlns:d6p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
            <d6p1:Id>String</d6p1:Id>
            <d6p1:Val>String</d6p1:Val>
          </d5p1:Organization>
          <d5p1:Region xmlns:d6p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
            <d6p1:Id>String</d6p1:Id>
            <d6p1:Val>String</d6p1:Val>
          </d5p1:Region>
        </d3p1:Origin>
        <d3p1:RoundId>String</d3p1:RoundId>
        <d3p1:SlipId>String</d3p1:SlipId>
      </d3p1:Winner>
    </SuperWinInfo>
    <WinCount>0</WinCount>
    <Winnings>0</Winnings>
  </Outcome>
  <OutputAccumulation>
    <Accumulation.Pool>
      <Amount>0</Amount>
      <Id>0</Id>
      <Name>String</Name>
    </Accumulation.Pool>
  </OutputAccumulation>
  <Sequence>String</Sequence>
</Draw>