| All Verbs | /feed |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class GetFeed
{
}
open class Feed
{
open var id:String? = null
open var round:Round? = null
open var lastJackpotInfo:JackpotInfo? = null
}
open class Round
{
open var id:String? = null
open var createdAt:Date? = null
open var updatedAt:Date? = null
open var status:RoundStatus? = null
open var configuration:RoundConfiguration? = null
open var odds:HashMap<Int,Outcome>? = null
open var jackpotInfo:JackpotInfo? = null
open var sequence:String? = 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 countdownDurationInSeconds:Int? = null
open var raceDurationInSeconds:Int? = null
open var resultsDurationInSeconds:Int? = null
open var rtpStrategy:RTPStrategies? = null
}
enum class RTPStrategies(val value:Int)
{
@SerializedName("0") Rng(0),
@SerializedName("1") Default(1),
}
open class Outcome
{
open var id:Int? = null
open var odds:Float? = null
open var status:OutcomeStatus? = null
}
enum class OutcomeStatus(val value:Int)
{
@SerializedName("0") Unknown(0),
@SerializedName("1") Lost(1),
@SerializedName("2") Won(2),
@SerializedName("3") Void(3),
}
open class JackpotInfo
{
open var isGiven:Boolean? = null
open var id:String? = null
open var slipId:String? = null
open var jpId:String? = null
open var amount:BigDecimal? = null
open var locationId:String? = null
open var locationName:String? = null
open var addressLine:String? = null
open var amountAccumulated:BigDecimal? = 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") Race(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 /feed HTTP/1.1
Host: grh1.api.bettor.webhop.biz
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,
status: 0,
configuration:
{
countdownDurationInSeconds: 0,
raceDurationInSeconds: 0,
resultsDurationInSeconds: 0,
rtpStrategy: 0
},
odds:
{
0:
{
id: 0,
odds: 0,
status: 0
}
},
jackpotInfo:
{
isGiven: False,
id: String,
slipId: String,
jpId: String,
amount: 0,
locationId: String,
locationName: String,
addressLine: String,
amountAccumulated: 0
},
sequence: String,
progress:
{
stage: 0,
step: 0,
steps: 0,
utcTimestamp: 0001-01-01
},
isLocked: False,
isCalculated: False
},
lastJackpotInfo:
{
isGiven: False,
id: String,
slipId: String,
jpId: String,
amount: 0,
locationId: String,
locationName: String,
addressLine: String,
amountAccumulated: 0
}
}