| All Verbs | /qry/config/game |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Six4Win.WebApi.ServiceModel
Imports Six4Win.ReadModel
Imports Six4Win
Imports Starnet.Common
Namespace Global
Namespace Six4Win
Public Partial Class CountdownConfiguration
Public Overridable Property LockdownStepFromEnd As Integer
Public Overridable Property AssertLockdownStepFromEnd As Integer
End Class
Public Partial Class DrawConfiguration
Public Overridable Property IntroIntervalInMs As Integer
Public Overridable Property AnimationIntervalInMs As Integer
Public Overridable Property OutroIntervalInMs As Integer
End Class
Public Partial Class HappyHourConfig
Public Overridable Property IsActive As Boolean
Public Overridable Property Items As List(Of HappyHourItem)
Public Partial Class HappyHourItem
Public Overridable Property Id As Long
Public Overridable Property Interval As TimeInterval
Public Overridable Property OddsModifier As Decimal
Public Overridable Property RoundPoolBonusPct As Decimal
End Class
Public Partial Class TimeInterval
Public Overridable Property Start As TimePoint
Public Overridable Property [End] As TimePoint
End Class
Public Partial Class TimePoint
Public Overridable Property Hour As Integer
Public Overridable Property Minute As Integer
End Class
End Class
Public Partial Class HappyHourConfiguration
Public Overridable Property IsHappyHour As Boolean
Public Overridable Property OddsModifier As Decimal
Public Overridable Property RoundPoolBonusPct As Decimal
End Class
Public Partial Class RoundConfiguration
Public Overridable Property Coefficients As RecordList(Of Single)
Public Overridable Property IsDoubleTripleActive As Boolean
Public Overridable Property IsJackpot5Active As Boolean
Public Overridable Property CountdownDurationInSeconds As Integer
Public Overridable Property CountdownConfiguration As CountdownConfiguration
Public Overridable Property DrawConfiguration As DrawConfiguration
Public Overridable Property ResultsDurationInSeconds As Integer
Public Overridable Property RTPStrategy As RTPStrategies
Public Overridable Property HappyHourConfiguration As HappyHourConfiguration
End Class
Public Enum RTPStrategies
RNG = 0
Accumulator = 1
End Enum
End Namespace
Namespace Six4Win.ReadModel
Public Partial Class GameConfiguration
Public Overridable Property Id As String
Public Overridable Property QueueSize As Integer
Public Overridable Property RoundConfiguration As RoundConfiguration
Public Overridable Property HappyHourConfig As HappyHourConfig
End Class
End Namespace
Namespace Six4Win.WebApi.ServiceModel
Public Partial Class GetGameConfig
Public Overridable Property LocationId As String
End Class
End Namespace
Namespace Starnet.Common
Public Partial Class RecordList(Of T)
Inherits List(Of T)
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /qry/config/game HTTP/1.1
Host: s4w2.api.bettor.cc
Accept: application/json
Content-Type: application/json
Content-Length: length
{"locationId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id":"String","queueSize":0,"roundConfiguration":{"coefficients":[0],"isDoubleTripleActive":false,"isJackpot5Active":false,"countdownDurationInSeconds":0,"countdownConfiguration":{"lockdownStepFromEnd":0,"assertLockdownStepFromEnd":0},"drawConfiguration":{"introIntervalInMs":0,"animationIntervalInMs":0,"outroIntervalInMs":0},"resultsDurationInSeconds":0,"rtpStrategy":0,"happyHourConfiguration":{"isHappyHour":false,"oddsModifier":0,"roundPoolBonusPct":0}},"happyHourConfig":{"isActive":false,"items":[{"id":0,"interval":{"start":{"hour":0,"minute":0},"end":{"hour":0,"minute":0}},"oddsModifier":0,"roundPoolBonusPct":0}]}}