| All Verbs | /qry/feed |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
open class GetFeed
{
}
open class Feed
{
open var id:String? = null
open var round:Round? = null
open var lastJackpot5Info:Jackpot5Info? = null
open var superWinInfo:SuperWinInfo? = null
open var globalCodePotInfo:GlobalCodePotInfo? = null
}
open class Round
{
open var id:String? = null
open var createdAt:Date? = null
open var updatedAt:Date? = null
open var shouldStartAtUtc:Date? = null
open var startedAtUtc:Date? = null
open var status:RoundStatus? = null
open var configuration:RoundConfiguration? = null
open var sequence:String? = null
open var jackpot5Info:Jackpot5Info? = null
open var superWinInfo:SuperWinInfo? = null
open var globalCodePotInfo:GlobalCodePotInfo? = null
open var progress:RoundProgress? = null
open var isLocked:Boolean? = null
open var isCalculated:Boolean? = null
}
enum class RoundStatus(val value:Int)
{
@SerializedName("0") Pending(0),
@SerializedName("1") InProgress(1),
@SerializedName("2") Ended(2),
}
open class RoundConfiguration
{
open var coefficients:RecordList<Float>? = null
open var isDoubleTripleActive:Boolean? = null
open var isJackpot5Active:Boolean? = null
open var countdownDurationInSeconds:Int? = null
open var countdownConfiguration:CountdownConfiguration? = null
open var drawConfiguration:DrawConfiguration? = null
open var resultsDurationInSeconds:Int? = null
open var rtpStrategy:RTPStrategies? = null
open var happyHourConfiguration:HappyHourConfiguration? = null
}
open class RecordList<T> : ArrayList<T>()
{
}
open class CountdownConfiguration
{
open var lockdownStepFromEnd:Int? = null
open var assertLockdownStepFromEnd:Int? = null
}
open class DrawConfiguration
{
open var introIntervalInMs:Int? = null
open var animationIntervalInMs:Int? = null
open var outroIntervalInMs:Int? = null
}
enum class RTPStrategies(val value:Int)
{
@SerializedName("0") Rng(0),
@SerializedName("1") Accumulator(1),
}
open class HappyHourConfiguration
{
open var isHappyHour:Boolean? = null
open var oddsModifier:BigDecimal? = null
open var roundPoolBonusPct:BigDecimal? = null
}
open class Jackpot5Info
{
open var isHit:Boolean? = null
open var amountAccumulated:BigDecimal? = null
open var amountAwarded:BigDecimal? = null
open var nrOfWinners:Int? = null
open var jackPot5Winners:ArrayList<JackPot5Winner>? = null
}
open class JackPot5Winner
{
open var betId:String? = null
open var nrOfCombinations:Int? = null
open var winningsAmount:BigDecimal? = null
open var origin:Origin? = null
open var bettor:Ref? = null
open var payload:HashMap<String,String>? = null
}
open class Origin
{
open var application:BettingApp? = null
open var ip:String? = null
open var organization:RefEx? = null
open var region:Ref? = null
open var locationGroup:Ref? = null
open var location:RefEx? = null
open var device:RefEx? = null
open var clerk:Ref? = null
}
open class BettingApp
{
open var name:String? = null
open var version:String? = null
}
open class RefEx : Ref()
{
@SerializedName("data") open var Data:RecordDictionary<String, String>? = null
}
open class Ref
{
open var id:String? = null
@SerializedName("val") open var Val:String? = null
}
open class RecordDictionary<TKey, TVal> : HashMap<TKey,TVal>()
{
}
open class SuperWinInfo
{
open var isActive:Boolean? = null
open var winner:SuperWinWinner? = null
open var availableAmount:BigDecimal? = null
open var allPrizesAwarded:Boolean? = null
}
open class SuperWinWinner
{
open var isDrawn:Boolean? = null
open var drawnAtUtc:Date? = null
open var roundId:String? = null
open var betId:String? = null
open var slipId:String? = null
open var origin:Origin? = null
open var bettor:Ref? = null
open var code:String? = null
open var amount:BigDecimal? = null
open var locationAddressOrBettorInfo:String? = null
}
open class GlobalCodePotInfo
{
open var isActive:Boolean? = null
open var isDrawn:Boolean? = null
open var winner:WinnerByCode? = null
open var inertCode:String? = null
open var accumulation:BigDecimal? = null
}
open class WinnerByCode
{
open var roundId:String? = null
open var drawnAtUtc:Date? = null
open var slipId:String? = null
open var betId:String? = null
open var code:String? = null
open var amount:BigDecimal? = null
open var origin:Origin? = null
open var bettor:Ref? = null
open var locationAddressOrBettorInfo:String? = null
}
open class RoundProgress
{
open var stage:Stages? = null
open var step:Int? = null
open var steps:Int? = null
open var utcTimestamp:Date? = null
}
enum class Stages(val value:Int)
{
@SerializedName("0") None(0),
@SerializedName("1") Countdown(1),
@SerializedName("2") Processing(2),
@SerializedName("3") Draw(3),
@SerializedName("4") Results(4),
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
Content-Type: text/jsv
Content-Length: length
{
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: String,
round:
{
id: String,
createdAt: 0001-01-01,
updatedAt: 0001-01-01,
shouldStartAtUtc: 0001-01-01,
startedAtUtc: 0001-01-01,
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-01,
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-01,
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-01
},
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-01,
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-01,
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
}
}