Six4Win.WebApi

<back to all web services

GetSuperWinConfiguration

The following routes are available for this service:
All Verbs/qry/super-win/config
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
Imports Betting.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 SuperWinPool
            Public Overridable Property Id As Integer
            Public Overridable Property State As SuperWinPoolState
            Public Overridable Property Amount As Decimal
            Public Overridable Property Schedule As RecordList(Of SuperWinPrize)
        End Class

        Public Enum SuperWinPoolState
            Idle = 0
            Accumulating = 1
            Awarding = 2
        End Enum

        Public Partial Class SuperWinPrize
            Public Overridable Property Id As Integer
            Public Overridable Property Amount As Decimal
            Public Overridable Property ScheduledAt As Date
            Public Overridable Property Winner As SuperWinWinner
        End Class

        Public Partial Class SuperWinState
            Public Overridable Property CurrentDate As String
            Public Overridable Property AvailableAmount As Decimal
            Public Overridable Property Pools As RecordDictionary(Of Integer, SuperWinPool)
        End Class

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

    Namespace Six4Win.ReadModel

        Public Partial Class SuperWinStateDoc
            Public Overridable Property Id As String
            Public Overridable Property State As SuperWinState
        End Class
    End Namespace

    Namespace Six4Win.WebApi.ServiceModel

        Public Partial Class GetSuperWinConfiguration
        End Class
    End Namespace

    Namespace Starnet.Common

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

        Public Partial Class RecordList(Of T)
            Inherits List(Of T)
        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 GetSuperWinConfiguration DTOs

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

HTTP + OTHER

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

POST /qry/super-win/config HTTP/1.1 
Host: s4w2.api.bettor.cc 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"id":"String","state":{"currentDate":"String","availableAmount":0,"pools":{"0":{"id":0,"state":0,"amount":0,"schedule":[{"id":0,"amount":0,"scheduledAt":"0001-01-01T00:00:00.0000000Z","winner":{"isDrawn":false,"drawnAtUtc":"0001-01-01T00:00:00.0000000Z","roundId":"String","betId":"String","slipId":"String","origin":{"application":{"name":"String","version":"String"},"ip":"String","organization":{"data":{"String":"String"},"id":"String","val":"String"},"region":{"id":"String","val":"String"},"locationGroup":{"id":"String","val":"String"},"location":{"data":{"String":"String"},"id":"String","val":"String"},"device":{"data":{"String":"String"},"id":"String","val":"String"},"clerk":{"id":"String","val":"String"}},"bettor":{"id":"String","val":"String"},"code":"String","amount":0,"locationAddressOrBettorInfo":"String"}}]}}}}