Six4Win.WebApi

<back to all web services

GetLastRoundsStats

The following routes are available for this service:
All Verbs/qry/stats/last10
import Foundation
import ServiceStack

public class GetLastRoundsStats : Codable
{
    required public init(){}
}

public class LastRoundsStats : Codable
{
    public var id:String
    public var topSix:[Int]
    public var bottomSix:[Int]
    public var topFirstColors:[Rating]
    public var topColors:[Rating]
    public var firstNrEvenVsOdd:Comparison
    public var firstNrLessVsGreater24_5:Comparison
    public var sumOfFirstFiveLessVsGreaterThan122_5:Comparison
    public var totalEvenVsOdd:Comparison

    required public init(){}
}

public class Rating : Codable
{
    public var val:Int
    public var count:Int

    required public init(){}
}

public class Comparison : Codable
{
    public var v1:Int
    public var v2:Int
    public var p1:Float
    public var p2:Float

    required public init(){}
}


Swift GetLastRoundsStats 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/stats/last10 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","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}}