Six4Win.WebApi

<back to all web services

GetLastRoundsStats

The following routes are available for this service:
All Verbs/qry/stats/last10
namespace Six4Win.WebApi.ServiceModel

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type Rating() = 
        member val Val:Int32 = new Int32() with get,set
        member val Count:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type Comparison() = 
        member val V1:Int32 = new Int32() with get,set
        member val V2:Int32 = new Int32() with get,set
        member val P1:Single = new Single() with get,set
        member val P2:Single = new Single() with get,set

    [<AllowNullLiteral>]
    type LastRoundsStats() = 
        member val Id:String = null with get,set
        member val TopSix:Int32[] = null with get,set
        member val BottomSix:Int32[] = null with get,set
        member val TopFirstColors:ResizeArray<Rating> = null with get,set
        member val TopColors:ResizeArray<Rating> = null with get,set
        member val FirstNrEvenVsOdd:Comparison = null with get,set
        member val FirstNrLessVsGreater24_5:Comparison = null with get,set
        member val SumOfFirstFiveLessVsGreaterThan122_5:Comparison = null with get,set
        member val TotalEvenVsOdd:Comparison = null with get,set

    [<AllowNullLiteral>]
    type GetLastRoundsStats() = 
        class end

F# GetLastRoundsStats DTOs

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

HTTP + 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: s4w2.api.bettor.cc 
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>