Six4Win.WebApi

<back to all web services

FindRoundStats

The following routes are available for this service:
All Verbs/qry/rounds/stats
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 FindRoundStats : PaginatedQueryRequest()
{
}

open class PaginatedQueryRequest : QueryRequest()
{
    open var currentPage:Int? = null
    open var pageSize:Int? = null
}

open class QueryRequest
{
    open var qry:HashMap<String,String> = HashMap<String,String>()
}

open class PaginatedResult<T> : IPaginatedResult
{
    @SerializedName("data") open var Data:ArrayList<Bet> = ArrayList<Bet>()
    override var currentPage:Long? = null
    override var pageSize:Long? = null
    override var totalItems:Long? = null
    override var totalPages:Long? = null
}

open class Bet
{
    open var id:String? = null
    open var ordinalOfAvailableRoundToAssignTo:Int? = null
    open var content:String? = null
    open var stake:BigDecimal? = null
    open var payload:HashMap<String,String>? = null
}

Kotlin FindRoundStats 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/rounds/stats HTTP/1.1 
Host: s4w2.api.bettor.cc 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"currentPage":0,"pageSize":0,"qry":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"data":[{"id":"String","createdAt":"0001-01-01T00:00:00.0000000Z","endedAt":"0001-01-01T00:00:00.0000000Z","status":0,"canceledCount":0,"canceledAmount":0,"revertedCount":0,"revertedAmount":0,"betCount":0,"combinationCount":0,"bingoBetCount":0,"customBetCount":0,"stakeAmount":0,"winningsAmount":0,"balanceAmount":0,"balancePct":0,"configuredRoundRTP":0}],"currentPage":0,"pageSize":0,"totalItems":0,"totalPages":0}