Six4Win.WebApi

<back to all web services

GetDrawDignostics

The following routes are available for this service:
All Verbs/qry/rounds/draw/diagnostics
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 Starnet.Common
Imports Six4Win
Imports Betting.Common
Imports Six4Win.Common

Namespace Global

    Namespace Betting.Common

        Public Partial Class BettingApp
            Public Overridable Property Name As String
            Public Overridable Property Version As String
        End Class

        Public Partial Class Origin
            Public Overridable Property Application As BettingApp
            Public Overridable Property IP As String
            Public Overridable Property Organization As RefEx
            Public Overridable Property Region As Ref
            Public Overridable Property LocationGroup As Ref
            Public Overridable Property Location As RefEx
            Public Overridable Property Device As RefEx
            Public Overridable Property Clerk As Ref
        End Class
    End Namespace

    Namespace Six4Win

        Public Partial Class WinnerByCode
            Public Overridable Property RoundId As String
            Public Overridable Property DrawnAtUtc As Date
            Public Overridable Property SlipId As String
            Public Overridable Property BetId As String
            Public Overridable Property Code As String
            Public Overridable Property Amount As Decimal
            Public Overridable Property Origin As Origin
            Public Overridable Property Bettor As Ref
            Public Overridable Property LocationAddressOrBettorInfo As String
        End Class
    End Namespace

    Namespace Six4Win.Common

        Public Partial Class Syphon
            Public Overridable Property Id As String
            Public Overridable Property Name As String
            Public Overridable Property Type As SyphonType
            Public Overridable Property NrOfCombinations As Integer
        End Class

        Public Partial Class SyphonInfo
            Public Overridable Property Bettors As Dictionary(Of String, Syphon)
            Public Overridable Property Locations As Dictionary(Of String, Syphon)
            Public Overridable Property HasSyphons As Boolean
            Public Overridable Property TotalSyphonsInRound As Integer
        End Class

        Public Enum SyphonType
            Location = 0
            Bettor = 1
        End Enum
    End Namespace

    Namespace Six4Win.ReadModel

        Public Partial Class AccumulatorConfiguration
            Inherits AccumulatorConfiguration
            Public Overridable Property Id As String
            Public Overridable Property UpdatedAt As Date
        End Class

        Public Partial Class DrawDiagnostics
            Public Overridable Property Id As String
            Public Overridable Property InitializationInfo As Initialization
            Public Overridable Property SequenceGenerationInfo As SequenceGeneration
            Public Overridable Property BestFitFinderInfo As BestFitFinder
            Public Overridable Property PurgerInfo As Purger
            Public Overridable Property Duration As Long
            Public Overridable Property StimulationResponses As List(Of StimulationResponse)
            Public Overridable Property LocalCodePot As LocalCodePotInfo
            Public Overridable Property SuperWin As SuperWinInfo
            Public Overridable Property HappyHour As HappyHourInfo
            Public Overridable Property Reasoning As String
            Public Overridable Property Configuration As AccumulatorConfiguration
            Public Overridable Property SyphonInfo As SyphonInfo

            Public Partial Class Initialization
                Public Overridable Property DataLoadDuration As Long
                Public Overridable Property BetsCollectionsCreationDuration As Long
                Public Overridable Property CombinationsOccuranceLookupInitializationDuration As Long
            End Class

            Public Partial Class Purger
                Public Overridable Property PrevalentStake As Decimal
                Public Overridable Property PoolPurger As String
                Public Overridable Property QualifiedPools As List(Of QualifiedPool)
            End Class

            Public Partial Class QualifiedPool
                Public Overridable Property Id As Integer
                Public Overridable Property Name As String
                Public Overridable Property Coefficient As Decimal
                Public Overridable Property AvailableAmount As Decimal
                Public Overridable Property AwardedAmount As Decimal
                Public Overridable Property TargetBet As Bet

                Public Partial Class Bet
                    Public Overridable Property IsFound As Boolean
                    Public Overridable Property BetId As String
                    Public Overridable Property SlipId As String
                    Public Overridable Property CombStake As Object
                End Class
            End Class

            Public Partial Class SequenceGeneration
                Public Overridable Property NrOfThreads As Integer
                Public Overridable Property NrOfResultsProbed As Integer
                Public Overridable Property Duration As Long
                Public Overridable Property AvgSinglePassDuration As Long
            End Class

            Public Partial Class BestFitFinder
                Public Overridable Property TargetAmount As Decimal
                Public Overridable Property AwardedAmount As Decimal
                Public Overridable Property Deviation As Decimal
                Public Overridable Property DeviationPct As Decimal
                Public Overridable Property SequenceResultType As String
                Public Overridable Property IsJackPot5Drawn As Boolean
                Public Overridable Property FilteringPeriod As Long
                Public Overridable Property WinCountOrder As SortingOrder
                Public Overridable Property MinAmount As Decimal
                Public Overridable Property MaxAmount As Decimal
            End Class

            Public Partial Class StimulationResponse
                Public Overridable Property StimulationId As String
                Public Overridable Property Status As ResponseStatus
                Public Overridable Property FailureReason As String
                Public Overridable Property SlipId As String
                Public Overridable Property BetId As String
                Public Overridable Property AmountAwarded As Decimal

                Public Enum ResponseStatus
                    Failure = 0
                    Success = 1
                End Enum
            End Class

            Public Partial Class LocalCodePotInfo
                Public Overridable Property IsActive As Boolean
                Public Overridable Property Current As CurrentRoundInfo
                Public Overridable Property Winners As List(Of WinnerByCode)

                Public Partial Class CurrentRoundInfo
                    Public Overridable Property RoundId As String
                    Public Overridable Property Amount As Decimal
                    Public Overridable Property InertCode As String
                End Class
            End Class

            Public Partial Class SuperWinInfo
                Public Overridable Property DurationInMs As Long
            End Class

            Public Partial Class HappyHourInfo
                Public Overridable Property IsHappyHour As Boolean
                Public Overridable Property OddsModifier As Decimal
                Public Overridable Property RoundPoolBonusPct As Decimal
            End Class
        End Class
    End Namespace

    Namespace Six4Win.WebApi.ServiceModel

        Public Partial Class GetDrawDignostics
            Public Overridable Property Id As String
        End Class
    End Namespace

    Namespace Starnet.Common

        Public Partial Class RecordDictionary(Of TKey, TVal)
            Inherits Dictionary(Of TKey, TVal)
        End Class

        Public Partial Class Ref
            Public Overridable Property Id As String
            Public Overridable Property Val As String
        End Class

        Public Partial Class RefEx
            Inherits Ref
            Public Overridable Property Data As RecordDictionary(Of String, String)
        End Class

        Public Enum SortingOrder
            None = 0
            Ascending = 1
            Descending = 2
        End Enum
    End Namespace
End Namespace

VB.NET GetDrawDignostics 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/rounds/draw/diagnostics HTTP/1.1 
Host: s4w2.api.bettor.cc 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	initializationInfo: 
	{
		dataLoadDuration: 0,
		betsCollectionsCreationDuration: 0,
		combinationsOccuranceLookupInitializationDuration: 0
	},
	sequenceGenerationInfo: 
	{
		nrOfThreads: 0,
		nrOfResultsProbed: 0,
		duration: 0,
		avgSinglePassDuration: 0
	},
	bestFitFinderInfo: 
	{
		targetAmount: 0,
		awardedAmount: 0,
		deviation: 0,
		deviationPct: 0,
		sequenceResultType: String,
		isJackPot5Drawn: False,
		filteringPeriod: 0,
		winCountOrder: 0,
		minAmount: 0,
		maxAmount: 0
	},
	purgerInfo: 
	{
		prevalentStake: 0,
		poolPurger: String,
		qualifiedPools: 
		[
			{
				id: 0,
				name: String,
				coefficient: 0,
				availableAmount: 0,
				awardedAmount: 0,
				targetBet: 
				{
					isFound: False,
					betId: String,
					slipId: String,
					combStake: {}
				}
			}
		]
	},
	duration: 0,
	stimulationResponses: 
	[
		{
			stimulationId: String,
			status: 0,
			failureReason: String,
			slipId: String,
			betId: String,
			amountAwarded: 0
		}
	],
	localCodePot: 
	{
		durationInMs: 0
	},
	superWin: 
	{
		durationInMs: 0
	},
	happyHour: 
	{
		isHappyHour: False,
		oddsModifier: 0,
		roundPoolBonusPct: 0
	},
	reasoning: String,
	configuration: 
	{
		pools: 
		[
			{
				id: 0,
				name: String,
				rtp: 0,
				reserveRTP: 0,
				totalRTP: 0
			}
		],
		prevalentStake: 0,
		purgeThresholdModifier: 0,
		locationOptimizationLevel: 0,
		jackPot5ThresholdInterval: 
		{
			start: 0,
			end: 0
		},
		deviationCategorySpanInPct: 0,
		deviationCategoryThresholdAmount: 0,
		roundPoolCircuitBreakerThreshold: 0,
		lowWinCountAffinityInPct: 0,
		winCountOrderAffinity: 
		[
			{
				order: 0,
				probability: 0
			}
		],
		highRollerSettings: 
		{
			pools: 
			[
				{
					id: 0,
					name: String,
					isActive: False,
					contributionToRoundPoolPct: 0,
					caps: 
					{
						plusCoef: 0,
						minusCoef: 0,
						maxAmountInPrevalentStakes: 0
					}
				}
			],
			categoryThresholds: 
			[
				{
					category: 0,
					threshold: 0
				}
			]
		},
		overflowCoefficientPoolsToRound: False,
		antiSyphonProtectionOverride: False,
		fraudDetectionConfig: 
		{
			antiSyphon: 
			{
				combinationCountPerRoundThresholdPct: 0,
				excludedLocations: 
				[
					{
						id: String,
						val: String
					}
				],
				includeRoundPctAsBettorSyphonCriteria: False,
				isActive: False
			}
		},
		debugConfig: 
		{
			logLocationStats: False,
			logBettorSats: False
		}
	},
	syphonInfo: 
	{
		bettors: 
		{
			String: 
			{
				id: String,
				name: String,
				type: 0,
				nrOfCombinations: 0
			}
		},
		locations: 
		{
			String: 
			{
				id: String,
				name: String,
				type: 0,
				nrOfCombinations: 0
			}
		},
		hasSyphons: True,
		totalSyphonsInRound: 2
	}
}