Six4Win.WebApi

<back to all web services

GetLastRoundsStats

The following routes are available for this service:
All Verbs/qry/stats/last10
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


open class GetLastRoundsStats
{
}

open class LastRoundsStats
{
    open var id:String? = null
    open var topSix:ArrayList<Int>? = null
    open var bottomSix:ArrayList<Int>? = null
    open var topFirstColors:ArrayList<Rating>? = null
    open var topColors:ArrayList<Rating>? = null
    open var firstNrEvenVsOdd:Comparison? = null
    open var firstNrLessVsGreater24_5:Comparison? = null
    open var sumOfFirstFiveLessVsGreaterThan122_5:Comparison? = null
    open var totalEvenVsOdd:Comparison? = null
}

open class Rating
{
    @SerializedName("val") open var Val:Int? = null
    open var count:Int? = null
}

open class Comparison
{
    open var v1:Int? = null
    open var v2:Int? = null
    open var p1:Float? = null
    open var p2:Float? = null
}

Kotlin 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}}