Six4Win.WebApi

<back to all web services

GetGameConfig

The following routes are available for this service:
All Verbs/qry/config/game
package dtos

type CountdownConfiguration struct {
	LockdownStepFromEnd       int `json:"lockdownStepFromEnd,omitempty"`
	AssertLockdownStepFromEnd int `json:"assertLockdownStepFromEnd,omitempty"`
}

type DrawConfiguration struct {
	IntroIntervalInMs     int `json:"introIntervalInMs,omitempty"`
	AnimationIntervalInMs int `json:"animationIntervalInMs,omitempty"`
	OutroIntervalInMs     int `json:"outroIntervalInMs,omitempty"`
}

type RTPStrategies int

const (
	RTPStrategiesRNG         RTPStrategies = 0
	RTPStrategiesAccumulator RTPStrategies = 1
)

type HappyHourConfiguration struct {
	IsHappyHour                                        bool    `json:"isHappyHour,omitempty"`
	OddsModifier                                       float64 `json:"oddsModifier,omitempty"`
	RoundPoolBonusPct                                  float64 `json:"roundPoolBonusPct,omitempty"`
	UseOnlyRoundPoolWithNoOptimizations                bool    `json:"useOnlyRoundPoolWithNoOptimizations,omitempty"`
	OverrideSyphonCombinationCountPerRoundThreshold    bool    `json:"overrideSyphonCombinationCountPerRoundThreshold,omitempty"`
	SyphonCombinationCountPerRoundThresholdPctOverride float64 `json:"syphonCombinationCountPerRoundThresholdPctOverride,omitempty"`
}

type RoundConfiguration struct {
	Coefficients               *RecordList[float32]    `json:"coefficients,omitempty"`
	IsDoubleTripleActive       bool                    `json:"isDoubleTripleActive,omitempty"`
	IsJackpot5Active           bool                    `json:"isJackpot5Active,omitempty"`
	CountdownDurationInSeconds int                     `json:"countdownDurationInSeconds,omitempty"`
	CountdownConfiguration     *CountdownConfiguration `json:"countdownConfiguration,omitempty"`
	DrawConfiguration          *DrawConfiguration      `json:"drawConfiguration,omitempty"`
	ResultsDurationInSeconds   int                     `json:"resultsDurationInSeconds,omitempty"`
	RtpStrategy                RTPStrategies           `json:"rtpStrategy,omitempty"`
	HappyHourConfiguration     *HappyHourConfiguration `json:"happyHourConfiguration,omitempty"`
}

type TimePoint struct {
	Hour   int `json:"hour,omitempty"`
	Minute int `json:"minute,omitempty"`
}

type TimeInterval struct {
	Start *TimePoint `json:"start,omitempty"`
	End   *TimePoint `json:"end,omitempty"`
}

type HappyHourItem struct {
	Id                int64         `json:"id,omitempty"`
	Interval          *TimeInterval `json:"interval,omitempty"`
	OddsModifier      float64       `json:"oddsModifier,omitempty"`
	RoundPoolBonusPct float64       `json:"roundPoolBonusPct,omitempty"`
}

type HappyHourConfig struct {
	IsActive                                           bool            `json:"isActive,omitempty"`
	Items                                              []HappyHourItem `json:"items,omitempty"`
	UseOnlyRoundPoolWithNoOptimizations                bool            `json:"useOnlyRoundPoolWithNoOptimizations,omitempty"`
	OverrideSyphonCombinationCountPerRoundThreshold    bool            `json:"overrideSyphonCombinationCountPerRoundThreshold,omitempty"`
	SyphonCombinationCountPerRoundThresholdPctOverride float64         `json:"syphonCombinationCountPerRoundThresholdPctOverride,omitempty"`
}

type GameConfiguration struct {
	Id                 *string             `json:"id,omitempty"`
	QueueSize          int                 `json:"queueSize,omitempty"`
	RoundConfiguration *RoundConfiguration `json:"roundConfiguration,omitempty"`
	HappyHourConfig    *HappyHourConfig    `json:"happyHourConfig,omitempty"`
}

type GetGameConfig struct {
	LocationId *string `json:"locationId,omitempty"`
}

type RecordList[T any] []T

Go GetGameConfig DTOs

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

HTTP + JSV

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

{
	locationId: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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,
			useOnlyRoundPoolWithNoOptimizations: False,
			overrideSyphonCombinationCountPerRoundThreshold: False,
			syphonCombinationCountPerRoundThresholdPctOverride: 0
		}
	},
	happyHourConfig: 
	{
		isActive: False,
		items: 
		[
			{
				id: 0,
				interval: 
				{
					start: 
					{
						hour: 0,
						minute: 0
					},
					end: 
					{
						hour: 0,
						minute: 0
					}
				},
				oddsModifier: 0,
				roundPoolBonusPct: 0
			}
		],
		useOnlyRoundPoolWithNoOptimizations: False,
		overrideSyphonCombinationCountPerRoundThreshold: False,
		syphonCombinationCountPerRoundThresholdPctOverride: 0
	}
}