Six4Win.WebApi

<back to all web services

GetLastRoundsStats

The following routes are available for this service:
All Verbs/qry/stats/last10
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.Stats

Namespace Global

    Namespace Six4Win.ReadModel.Stats

        Public Partial Class LastRoundsStats
            Public Overridable Property Id As String
            Public Overridable Property TopSix As Integer()
            Public Overridable Property BottomSix As Integer()
            Public Overridable Property TopFirstColors As List(Of Rating)
            Public Overridable Property TopColors As List(Of Rating)
            Public Overridable Property FirstNrEvenVsOdd As Comparison
            Public Overridable Property FirstNrLessVsGreater24_5 As Comparison
            Public Overridable Property SumOfFirstFiveLessVsGreaterThan122_5 As Comparison
            Public Overridable Property TotalEvenVsOdd As Comparison

            Public Partial Class Comparison
                Public Overridable Property V1 As Integer
                Public Overridable Property V2 As Integer
                Public Overridable Property P1 As Single
                Public Overridable Property P2 As Single
            End Class

            Public Partial Class Rating
                Public Overridable Property Val As Integer
                Public Overridable Property Count As Integer
            End Class
        End Class
    End Namespace

    Namespace Six4Win.WebApi.ServiceModel

        Public Partial Class GetLastRoundsStats
        End Class
    End Namespace
End Namespace

VB.NET GetLastRoundsStats 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.

POST /qry/stats/last10 HTTP/1.1 
Host: s4w2.api.bettor.cc 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

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

{"id":"String","topSix":[0],"bottomSix":[0],"topFirstColors":[{"val":0,"count":0}],"topColors":[{"val":0,"count":0}],"firstNrEvenVsOdd":{"v1":0,"v2":0,"p1":0,"p2":0},"firstNrLessVsGreater24_5":{"v1":0,"v2":0,"p1":0,"p2":0},"sumOfFirstFiveLessVsGreaterThan122_5":{"v1":0,"v2":0,"p1":0,"p2":0},"totalEvenVsOdd":{"v1":0,"v2":0,"p1":0,"p2":0}}