| All Verbs | /qry/stats/last10 |
|---|
package dtos
type Rating struct {
Val int `json:"val,omitempty"`
Count int `json:"count,omitempty"`
}
type Comparison struct {
V1 int `json:"v1,omitempty"`
V2 int `json:"v2,omitempty"`
P1 float32 `json:"p1,omitempty"`
P2 float32 `json:"p2,omitempty"`
}
type LastRoundsStats struct {
Id *string `json:"id,omitempty"`
TopSix []int `json:"topSix,omitempty"`
BottomSix []int `json:"bottomSix,omitempty"`
TopFirstColors []Rating `json:"topFirstColors,omitempty"`
TopColors []Rating `json:"topColors,omitempty"`
FirstNrEvenVsOdd *Comparison `json:"firstNrEvenVsOdd,omitempty"`
FirstNrLessVsGreater245 *Comparison `json:"firstNrLessVsGreater24_5,omitempty"`
SumOfFirstFiveLessVsGreaterThan1225 *Comparison `json:"sumOfFirstFiveLessVsGreaterThan122_5,omitempty"`
TotalEvenVsOdd *Comparison `json:"totalEvenVsOdd,omitempty"`
}
type GetLastRoundsStats struct {
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: s4w1.api.bettor.webhop.biz
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetLastRoundsStats xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.WebApi.ServiceModel" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<LastRoundsStats xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel.Stats">
<BottomSix xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>0</d2p1:int>
</BottomSix>
<FirstNrEvenVsOdd>
<V1>0</V1>
<V2>0</V2>
</FirstNrEvenVsOdd>
<FirstNrLessVsGreater24_5>
<V1>0</V1>
<V2>0</V2>
</FirstNrLessVsGreater24_5>
<Id>String</Id>
<SumOfFirstFiveLessVsGreaterThan122_5>
<V1>0</V1>
<V2>0</V2>
</SumOfFirstFiveLessVsGreaterThan122_5>
<TopColors>
<LastRoundsStats.Rating>
<Count>0</Count>
<Val>0</Val>
</LastRoundsStats.Rating>
</TopColors>
<TopFirstColors>
<LastRoundsStats.Rating>
<Count>0</Count>
<Val>0</Val>
</LastRoundsStats.Rating>
</TopFirstColors>
<TopSix xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>0</d2p1:int>
</TopSix>
<TotalEvenVsOdd>
<V1>0</V1>
<V2>0</V2>
</TotalEvenVsOdd>
</LastRoundsStats>