| All Verbs | /qry/lcp/accumulations |
|---|
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 Betting.Common
Imports Starnet.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 LCPAccumulation
Public Overridable Property LocId As String
Public Overridable Property LocName As String
Public Overridable Property Amount As Decimal
Public Overridable Property Threshold As Decimal
Public Overridable Property Cfg As LCPConfiguration
Public Overridable Property Winners As Queue(Of WinnerByCode)
End Class
Public Partial Class LCPConfiguration
Public Overridable Property IsActive As Boolean
Public Overridable Property Interval As ThresholdInterval
Public Overridable Property Pct As Decimal
End Class
Public Partial Class ThresholdInterval
Public Overridable Property Start As Decimal
Public Overridable Property [End] As Decimal
End Class
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.ReadModel
Public Partial Class LocalCodePotAccumulations
Public Overridable Property Id As String
Public Overridable Property Accumulations As Dictionary(Of String, LCPAccumulation)
Public Overridable Property CurrentRoundId As String
Public Overridable Property InertCode As String
End Class
End Namespace
Namespace Six4Win.WebApi.ServiceModel
Public Partial Class GetLocalCodePotAccumulations
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
End Namespace
End Namespace
VB.NET GetLocalCodePotAccumulations DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /qry/lcp/accumulations HTTP/1.1
Host: s4w2.api.bettor.cc
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: String,
accumulations:
{
String:
{
locId: String,
locName: String,
amount: 0,
threshold: 0,
cfg:
{
isActive: False,
interval:
{
start: 0,
end: 0
},
pct: 0
},
winners: []
}
},
currentRoundId: String,
inertCode: String
}