Betting.WebApi

<back to all web services

GetGameConfig

The following routes are available for this service:
All Verbs/config/game
GameConfiguration Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
QueueSizeformintNo
RoundConfigurationformRoundConfigurationNo
RoundConfiguration Parameters:
NameParameterData TypeRequiredDescription
Coefficientsformfloat[]No
IsDoubleTripleActiveformboolNo
IsJackpot5ActiveformboolNo
CountdownDurationInSecondsformintNo
DrawConfigurationformDrawConfigurationNo
ResultsDurationInSecondsformintNo
RTPStrategyformRTPStrategiesNo
DrawConfiguration Parameters:
NameParameterData TypeRequiredDescription
IntroIntervalInMsformintNo
AnimationIntervalInMsformintNo
OutroIntervalInMsformintNo
RTPStrategies Enum:
NameValue
RNG0
Accumulator1

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 /config/game HTTP/1.1 
Host: s4wapi.wwin.ath.cx 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetGameConfig 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

<GameConfiguration xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel">
  <Id>String</Id>
  <QueueSize>0</QueueSize>
  <RoundConfiguration>
    <Coefficients xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:float>0</d3p1:float>
    </Coefficients>
    <CountdownDurationInSeconds>0</CountdownDurationInSeconds>
    <DrawConfiguration>
      <AnimationIntervalInMs>0</AnimationIntervalInMs>
      <IntroIntervalInMs>0</IntroIntervalInMs>
      <OutroIntervalInMs>0</OutroIntervalInMs>
    </DrawConfiguration>
    <IsDoubleTripleActive>false</IsDoubleTripleActive>
    <IsJackpot5Active>false</IsJackpot5Active>
    <RTPStrategy>RNG</RTPStrategy>
    <ResultsDurationInSeconds>0</ResultsDurationInSeconds>
  </RoundConfiguration>
</GameConfiguration>