Six4Win.WebApi

<back to all web services

GetRecentGlobalCodePotWinners

The following routes are available for this service:
GET/qry/recentGlobalCodePotWinners
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 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 RecentGlobalCodePotWinners
            Public Overridable Property Id As String
            Public Overridable Property RecentWinners As Queue(Of WinnerByCode)
        End Class
    End Namespace

    Namespace Six4Win.WebApi.ServiceModel

        Public Partial Class GetRecentGlobalCodePotWinners
        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 GetRecentGlobalCodePotWinners DTOs

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

HTTP + CSV

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

GET /qry/recentGlobalCodePotWinners HTTP/1.1 
Host: s4w2.api.bettor.cc 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"id":"RecentGlobalCodePotWinners-1","recentWinners":[]}