Six4Win.WebApi

<back to all web services

GetLastRoundsStats

The following routes are available for this service:
All Verbs/qry/stats/last10
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Six4Win.WebApi.ServiceModel;
using Six4Win.ReadModel.Stats;

namespace Six4Win.ReadModel.Stats
{
    public partial class LastRoundsStats
    {
        public virtual string Id { get; set; }
        public virtual int[] TopSix { get; set; }
        public virtual int[] BottomSix { get; set; }
        public virtual List<Rating> TopFirstColors { get; set; }
        public virtual List<Rating> TopColors { get; set; }
        public virtual Comparison FirstNrEvenVsOdd { get; set; }
        public virtual Comparison FirstNrLessVsGreater24_5 { get; set; }
        public virtual Comparison SumOfFirstFiveLessVsGreaterThan122_5 { get; set; }
        public virtual Comparison TotalEvenVsOdd { get; set; }
        public partial class Comparison
        {
            public virtual int V1 { get; set; }
            public virtual int V2 { get; set; }
            public virtual float P1 { get; set; }
            public virtual float P2 { get; set; }
        }

        public partial class Rating
        {
            public virtual int Val { get; set; }
            public virtual int Count { get; set; }
        }

    }

}

namespace Six4Win.WebApi.ServiceModel
{
    public partial class GetLastRoundsStats
    {
    }

}

C# 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}}