Six4Win.WebApi

<back to all web services

GetSuperWinConfiguration

The following routes are available for this service:
All Verbs/qry/super-win/config
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 GetSuperWinConfiguration
{
}

open class SuperWinStateDoc
{
    open var id:String? = null
    open var state:SuperWinState? = null
}

open class SuperWinState
{
    open var currentDate:String? = null
    open var availableAmount:BigDecimal? = null
    open var pools:RecordDictionary<Int, SuperWinPool>? = null
}

open class RecordDictionary<TKey, TVal> : HashMap<TKey,TVal>()
{
}

open class SuperWinPool
{
    open var id:Int? = null
    open var state:SuperWinPoolState? = null
    open var amount:BigDecimal? = null
    open var schedule:RecordList<SuperWinPrize>? = null
}

enum class SuperWinPoolState(val value:Int)
{
    @SerializedName("0") Idle(0),
    @SerializedName("1") Accumulating(1),
    @SerializedName("2") Awarding(2),
}

open class RecordList<T> : ArrayList<T>()
{
}

open class SuperWinPrize
{
    open var id:Int? = null
    open var amount:BigDecimal? = null
    open var scheduledAt:Date? = null
    open var winner:SuperWinWinner? = 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 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
}

Kotlin GetSuperWinConfiguration DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /qry/super-win/config 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,
	state: 
	{
		currentDate: String,
		availableAmount: 0,
		pools: 
		{
			0: 
			{
				id: 0,
				state: 0,
				amount: 0,
				schedule: 
				[
					{
						id: 0,
						amount: 0,
						scheduledAt: 0001-01-01,
						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
						}
					}
				]
			}
		}
	}
}