Six4Win.WebApi

<back to all web services

GetFeed

The following routes are available for this service:
All Verbs/qry/feed
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

    type RoundStatus =
        | Pending = 0
        | InProgress = 1
        | Ended = 2

    [<AllowNullLiteral>]
    type CountdownConfiguration() = 
        member val LockdownStepFromEnd:Int32 = new Int32() with get,set
        member val AssertLockdownStepFromEnd:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type DrawConfiguration() = 
        member val IntroIntervalInMs:Int32 = new Int32() with get,set
        member val AnimationIntervalInMs:Int32 = new Int32() with get,set
        member val OutroIntervalInMs:Int32 = new Int32() with get,set

    type RTPStrategies =
        | RNG = 0
        | Accumulator = 1

    [<AllowNullLiteral>]
    type HappyHourConfiguration() = 
        member val IsHappyHour:Boolean = new Boolean() with get,set
        member val OddsModifier:Decimal = new Decimal() with get,set
        member val RoundPoolBonusPct:Decimal = new Decimal() with get,set

    [<AllowNullLiteral>]
    type RoundConfiguration() = 
        member val Coefficients:RecordList<Single> = null with get,set
        member val IsDoubleTripleActive:Boolean = new Boolean() with get,set
        member val IsJackpot5Active:Boolean = new Boolean() with get,set
        member val CountdownDurationInSeconds:Int32 = new Int32() with get,set
        member val CountdownConfiguration:CountdownConfiguration = null with get,set
        member val DrawConfiguration:DrawConfiguration = null with get,set
        member val ResultsDurationInSeconds:Int32 = new Int32() with get,set
        member val RTPStrategy:RTPStrategies = new RTPStrategies() with get,set
        member val HappyHourConfiguration:HappyHourConfiguration = null with get,set

    [<AllowNullLiteral>]
    type BettingApp() = 
        member val Name:String = null with get,set
        member val Version:String = null with get,set

    [<AllowNullLiteral>]
    type Ref() = 
        member val Id:String = null with get,set
        member val Val:String = null with get,set

    [<AllowNullLiteral>]
    type RefEx() = 
        inherit Ref()
        member val Data:RecordDictionary<String, String> = null with get,set

    [<AllowNullLiteral>]
    type Origin() = 
        member val Application:BettingApp = null with get,set
        member val IP:String = null with get,set
        member val Organization:RefEx = null with get,set
        member val Region:Ref = null with get,set
        member val LocationGroup:Ref = null with get,set
        member val Location:RefEx = null with get,set
        member val Device:RefEx = null with get,set
        member val Clerk:Ref = null with get,set

    [<AllowNullLiteral>]
    type JackPot5Winner() = 
        member val BetId:String = null with get,set
        member val NrOfCombinations:Int32 = new Int32() with get,set
        member val WinningsAmount:Decimal = new Decimal() with get,set
        member val Origin:Origin = null with get,set
        member val Bettor:Ref = null with get,set
        member val Payload:Dictionary<String, String> = null with get,set

    [<AllowNullLiteral>]
    type Jackpot5Info() = 
        member val IsHit:Boolean = new Boolean() with get,set
        member val AmountAccumulated:Decimal = new Decimal() with get,set
        member val AmountAwarded:Decimal = new Decimal() with get,set
        member val NrOfWinners:Int32 = new Int32() with get,set
        member val JackPot5Winners:ResizeArray<JackPot5Winner> = null with get,set

    [<AllowNullLiteral>]
    type SuperWinWinner() = 
        member val IsDrawn:Boolean = new Boolean() with get,set
        member val DrawnAtUtc:DateTime = new DateTime() with get,set
        member val RoundId:String = null with get,set
        member val BetId:String = null with get,set
        member val SlipId:String = null with get,set
        member val Origin:Origin = null with get,set
        member val Bettor:Ref = null with get,set
        member val Code:String = null with get,set
        member val Amount:Decimal = new Decimal() with get,set
        member val LocationAddressOrBettorInfo:String = null with get,set

    [<AllowNullLiteral>]
    type SuperWinInfo() = 
        member val IsActive:Boolean = new Boolean() with get,set
        member val Winner:SuperWinWinner = null with get,set
        member val AvailableAmount:Decimal = new Decimal() with get,set
        member val AllPrizesAwarded:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type WinnerByCode() = 
        member val RoundId:String = null with get,set
        member val DrawnAtUtc:DateTime = new DateTime() with get,set
        member val SlipId:String = null with get,set
        member val BetId:String = null with get,set
        member val Code:String = null with get,set
        member val Amount:Decimal = new Decimal() with get,set
        member val Origin:Origin = null with get,set
        member val Bettor:Ref = null with get,set
        member val LocationAddressOrBettorInfo:String = null with get,set

    [<AllowNullLiteral>]
    type GlobalCodePotInfo() = 
        member val IsActive:Boolean = new Boolean() with get,set
        member val IsDrawn:Boolean = new Boolean() with get,set
        member val Winner:WinnerByCode = null with get,set
        member val InertCode:String = null with get,set
        member val Accumulation:Decimal = new Decimal() with get,set

    type Stages =
        | None = 0
        | Countdown = 1
        | Processing = 2
        | Draw = 3
        | Results = 4

    [<AllowNullLiteral>]
    type RoundProgress() = 
        member val Stage:Stages = new Stages() with get,set
        member val Step:Int32 = new Int32() with get,set
        member val Steps:Int32 = new Int32() with get,set
        member val UTCTimestamp:DateTime = new DateTime() with get,set

    [<AllowNullLiteral>]
    type Round() = 
        member val Id:String = null with get,set
        member val CreatedAt:DateTime = new DateTime() with get,set
        member val UpdatedAt:DateTime = new DateTime() with get,set
        member val ShouldStartAtUtc:DateTime = new DateTime() with get,set
        member val StartedAtUtc:DateTime = new DateTime() with get,set
        member val Status:RoundStatus = new RoundStatus() with get,set
        member val Configuration:RoundConfiguration = null with get,set
        member val Sequence:String = null with get,set
        member val Jackpot5Info:Jackpot5Info = null with get,set
        member val SuperWinInfo:SuperWinInfo = null with get,set
        member val GlobalCodePotInfo:GlobalCodePotInfo = null with get,set
        member val Progress:RoundProgress = null with get,set
        member val IsLocked:Boolean = new Boolean() with get,set
        member val IsCalculated:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type Feed() = 
        member val Id:String = null with get,set
        member val Round:Round = null with get,set
        member val LastJackpot5Info:Jackpot5Info = null with get,set
        member val SuperWinInfo:SuperWinInfo = null with get,set
        member val GlobalCodePotInfo:GlobalCodePotInfo = null with get,set

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

    [<AllowNullLiteral>]
    type RecordList<T>() = 
        inherit ResizeArray<T>()

    [<AllowNullLiteral>]
    type RecordDictionary<TKey, TVal>() = 
        inherit Dictionary<TKey, TVal>()

F# GetFeed 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/feed 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","round":{"id":"String","createdAt":"0001-01-01T00:00:00.0000000Z","updatedAt":"0001-01-01T00:00:00.0000000Z","shouldStartAtUtc":"0001-01-01T00:00:00.0000000Z","startedAtUtc":"0001-01-01T00:00:00.0000000Z","status":0,"configuration":{"coefficients":[0],"isDoubleTripleActive":false,"isJackpot5Active":false,"countdownDurationInSeconds":0,"countdownConfiguration":{"lockdownStepFromEnd":0,"assertLockdownStepFromEnd":0},"drawConfiguration":{"introIntervalInMs":0,"animationIntervalInMs":0,"outroIntervalInMs":0},"resultsDurationInSeconds":0,"rtpStrategy":0,"happyHourConfiguration":{"isHappyHour":false,"oddsModifier":0,"roundPoolBonusPct":0}},"sequence":"String","jackpot5Info":{"isHit":false,"amountAccumulated":0,"amountAwarded":0,"nrOfWinners":0,"jackPot5Winners":[{"betId":"String","nrOfCombinations":0,"winningsAmount":0,"origin":{"application":{"name":"String","version":"String"},"ip":"String","organization":{"data":{"String":"String"},"id":"String","val":"String"},"region":{"id":"String","val":"String"},"locationGroup":{"id":"String","val":"String"},"location":{"data":{"String":"String"},"id":"String","val":"String"},"device":{"data":{"String":"String"},"id":"String","val":"String"},"clerk":{"id":"String","val":"String"}},"bettor":{"id":"String","val":"String"},"payload":{"String":"String"}}]},"superWinInfo":{"isActive":false,"winner":{"isDrawn":false,"drawnAtUtc":"0001-01-01T00:00:00.0000000Z","roundId":"String","betId":"String","slipId":"String","origin":{"application":{"name":"String","version":"String"},"ip":"String","organization":{"data":{"String":"String"},"id":"String","val":"String"},"region":{"id":"String","val":"String"},"locationGroup":{"id":"String","val":"String"},"location":{"data":{"String":"String"},"id":"String","val":"String"},"device":{"data":{"String":"String"},"id":"String","val":"String"},"clerk":{"id":"String","val":"String"}},"bettor":{"id":"String","val":"String"},"code":"String","amount":0,"locationAddressOrBettorInfo":"String"},"availableAmount":0,"allPrizesAwarded":false},"globalCodePotInfo":{"isActive":false,"isDrawn":true,"winner":{"roundId":"String","drawnAtUtc":"0001-01-01T00:00:00.0000000Z","slipId":"String","betId":"String","code":"String","amount":0,"origin":{"application":{"name":"String","version":"String"},"ip":"String","organization":{"data":{"String":"String"},"id":"String","val":"String"},"region":{"id":"String","val":"String"},"locationGroup":{"id":"String","val":"String"},"location":{"data":{"String":"String"},"id":"String","val":"String"},"device":{"data":{"String":"String"},"id":"String","val":"String"},"clerk":{"id":"String","val":"String"}},"bettor":{"id":"String","val":"String"},"locationAddressOrBettorInfo":"String"},"inertCode":"String","accumulation":0},"progress":{"stage":0,"step":0,"steps":0,"utcTimestamp":"0001-01-01T00:00:00.0000000Z"},"isLocked":false,"isCalculated":false},"lastJackpot5Info":{"isHit":false,"amountAccumulated":0,"amountAwarded":0,"nrOfWinners":0,"jackPot5Winners":[{"betId":"String","nrOfCombinations":0,"winningsAmount":0,"origin":{"application":{"name":"String","version":"String"},"ip":"String","organization":{"data":{"String":"String"},"id":"String","val":"String"},"region":{"id":"String","val":"String"},"locationGroup":{"id":"String","val":"String"},"location":{"data":{"String":"String"},"id":"String","val":"String"},"device":{"data":{"String":"String"},"id":"String","val":"String"},"clerk":{"id":"String","val":"String"}},"bettor":{"id":"String","val":"String"},"payload":{"String":"String"}}]},"superWinInfo":{"isActive":false,"winner":{"isDrawn":false,"drawnAtUtc":"0001-01-01T00:00:00.0000000Z","roundId":"String","betId":"String","slipId":"String","origin":{"application":{"name":"String","version":"String"},"ip":"String","organization":{"data":{"String":"String"},"id":"String","val":"String"},"region":{"id":"String","val":"String"},"locationGroup":{"id":"String","val":"String"},"location":{"data":{"String":"String"},"id":"String","val":"String"},"device":{"data":{"String":"String"},"id":"String","val":"String"},"clerk":{"id":"String","val":"String"}},"bettor":{"id":"String","val":"String"},"code":"String","amount":0,"locationAddressOrBettorInfo":"String"},"availableAmount":0,"allPrizesAwarded":false},"globalCodePotInfo":{"isActive":false,"isDrawn":true,"winner":{"roundId":"String","drawnAtUtc":"0001-01-01T00:00:00.0000000Z","slipId":"String","betId":"String","code":"String","amount":0,"origin":{"application":{"name":"String","version":"String"},"ip":"String","organization":{"data":{"String":"String"},"id":"String","val":"String"},"region":{"id":"String","val":"String"},"locationGroup":{"id":"String","val":"String"},"location":{"data":{"String":"String"},"id":"String","val":"String"},"device":{"data":{"String":"String"},"id":"String","val":"String"},"clerk":{"id":"String","val":"String"}},"bettor":{"id":"String","val":"String"},"locationAddressOrBettorInfo":"String"},"inertCode":"String","accumulation":0}}