Six4Win.WebApi

<back to all web services

GetLocationFeed

The following routes are available for this service:
All Verbs/qry/feed/locations
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 GetLocationFeed
{
    open var id:String? = null
}

open class LocationFeed
{
    open var exists:Boolean? = null
    open var id:String? = null
    open var lcpInfo:LocalCodePotInfo? = null
}

open class LocalCodePotInfo
{
    open var isActive:Boolean? = null
    open var current:CurrentRoundInfo? = null
    open var winners:ArrayList<WinnerByCode>? = null
}

open class CurrentRoundInfo
{
    open var roundId:String? = null
    open var amount:BigDecimal? = null
    open var inertCode:String? = 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 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>()
{
}

Kotlin GetLocationFeed 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/feed/locations HTTP/1.1 
Host: s4w2.api.bettor.cc 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	exists: False,
	id: String,
	lcpInfo: 
	{
		isActive: False,
		current: 
		{
			roundId: String,
			amount: 0,
			inertCode: String
		},
		winners: 
		[
			{
				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
			}
		]
	}
}