Six4Win.WebApi

<back to all web services

GetRoundIntegrity

The following routes are available for this service:
All Verbs/qry/rounds/integrity
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 Jackpot5Info
            Public Overridable Property IsHit As Boolean
            Public Overridable Property AmountAccumulated As Decimal
            Public Overridable Property AmountAwarded As Decimal
            Public Overridable Property NrOfWinners As Integer
            Public Overridable Property JackPot5Winners As List(Of JackPot5Winner)
        End Class

        Public Partial Class JackPot5Winner
            Public Overridable Property BetId As String
            Public Overridable Property NrOfCombinations As Integer
            Public Overridable Property WinningsAmount As Decimal
            Public Overridable Property Origin As Origin
            Public Overridable Property Bettor As Ref
            Public Overridable Property Payload As Dictionary(Of String, String)
        End Class
    End Namespace

    Namespace Six4Win.ReadModel

        Public Partial Class RoundIntegrityCheckResult
            Public Overridable Property Status As CheckStatus
            Public Overridable Property ExtraWinnings As Decimal
            Public Overridable Property BetCount As Integer
            Public Overridable Property JpInfo As Jackpot5Info

            Public Enum CheckStatus
                Ok = 1
                [Error] = 2
            End Enum
        End Class
    End Namespace

    Namespace Six4Win.WebApi.ServiceModel

        Public Partial Class GetRoundIntegrity
            Public Overridable Property RoundId 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
    End Namespace
End Namespace

VB.NET GetRoundIntegrity 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 /qry/rounds/integrity HTTP/1.1 
Host: s4w2.api.bettor.cc 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"roundId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"status":1,"extraWinnings":0,"betCount":0,"jpInfo":{"isHit":false,"amountAccumulated":0,"amountAwarded":0,"nrOfWinners":0,"jackPot5Winners":[{"betId":"String","nrOfCombinations":0,"winningsAmount":0,"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"},"payload":{"String":"String"}}]}}