Betting.WebApi

<back to all web services

StoreE2EConfiguration

The following routes are available for this service:
POST/cmd/e2e/configuration
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Betting.WebApi.ServiceModel
Imports Betting.Common

Namespace Global

    Namespace Betting.Common

        Public Partial Class Interval
            Public Overridable Property Start As Integer
            Public Overridable Property [End] As Integer
        End Class
    End Namespace

    Namespace Betting.WebApi.ServiceModel

        Public Partial Class LocationE2EConfiguration
            Public Overridable Property LocationId As String
            Public Overridable Property IsActive As Boolean
            Public Overridable Property SubmitMode As ProductSubmitMode
            Public Overridable Property ProductInstanceE2EConfigurations As List(Of ProductInstanceE2EConfiguration)
        End Class

        Public Partial Class ProductInstanceE2EConfiguration
            Public Overridable Property ProductInstanceId As String
            Public Overridable Property BetsPerSlip As Interval
        End Class

        Public Enum ProductSubmitMode
            [Single] = 0
            Multi = 1
        End Enum

        Public Partial Class Six4WinBetKindProbabilities
            Public Overridable Property Standard As Decimal
            Public Overridable Property System7 As Decimal
            Public Overridable Property System8 As Decimal
            Public Overridable Property System9 As Decimal
            Public Overridable Property System10 As Decimal
            Public Overridable Property FirstColor1 As Decimal
            Public Overridable Property FirstColor2 As Decimal
            Public Overridable Property FirstColor3 As Decimal
            Public Overridable Property FirstColor4 As Decimal
            Public Overridable Property FirstColor5 As Decimal
            Public Overridable Property FirstColor6 As Decimal
            Public Overridable Property FirstColor7 As Decimal
            Public Overridable Property FirstColor8 As Decimal
            Public Overridable Property FirstNumberOdd As Decimal
            Public Overridable Property FirstNumberEven As Decimal
            Public Overridable Property FirstNumberLessThan24_5 As Decimal
            Public Overridable Property FirstNumberGreaterThan24_5 As Decimal
            Public Overridable Property SumOfFirstFiveLessThan122_5 As Decimal
            Public Overridable Property SumOfFirstFiveGreaterThan122_5 As Decimal
            Public Overridable Property MoreOddNumbers As Decimal
            Public Overridable Property MoreEvenNumbers As Decimal
        End Class

        Public Partial Class StoreE2EConfiguration
            Public Overridable Property DelayTime As Integer
            Public Overridable Property NumberOfSlipsPerLocation As Integer
            Public Overridable Property DefaultSubmitMode As ProductSubmitMode
            Public Overridable Property Six4WinBetKindProbabilities As Six4WinBetKindProbabilities
            Public Overridable Property DefaultProductInstanceE2EConfigurations As List(Of ProductInstanceE2EConfiguration)
            Public Overridable Property LocationE2EConfigurations As List(Of LocationE2EConfiguration)
        End Class
    End Namespace
End Namespace

VB.NET StoreE2EConfiguration DTOs

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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /cmd/e2e/configuration HTTP/1.1 
Host: api.sbbet.ath.cx 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"delayTime":0,"numberOfSlipsPerLocation":0,"defaultSubmitMode":0,"six4WinBetKindProbabilities":{"standard":0,"system7":0,"system8":0,"system9":0,"system10":0,"firstColor1":0,"firstColor2":0,"firstColor3":0,"firstColor4":0,"firstColor5":0,"firstColor6":0,"firstColor7":0,"firstColor8":0,"firstNumberOdd":0,"firstNumberEven":0,"firstNumberLessThan24_5":0,"firstNumberGreaterThan24_5":0,"sumOfFirstFiveLessThan122_5":0,"sumOfFirstFiveGreaterThan122_5":0,"moreOddNumbers":0,"moreEvenNumbers":0},"defaultProductInstanceE2EConfigurations":[{"productInstanceId":"String","betsPerSlip":{"start":0,"end":0}}],"locationE2EConfigurations":[{"locationId":"String","isActive":false,"submitMode":0,"productInstanceE2EConfigurations":[{"productInstanceId":"String","betsPerSlip":{"start":0,"end":0}}]}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}