| All Verbs | /qry/super-win/config |
|---|
namespace Six4Win.WebApi.ServiceModel
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
type SuperWinPoolState =
| Idle = 0
| Accumulating = 1
| Awarding = 2
[<AllowNullLiteral>]
type BettingApp() =
member val Name:String = null with get,set
member val Version:String = null with get,set
[<AllowNullLiteral>]
type Ref() =
member val Id:String = null with get,set
member val Val:String = null with get,set
[<AllowNullLiteral>]
type RefEx() =
inherit Ref()
member val Data:RecordDictionary<String, String> = null with get,set
[<AllowNullLiteral>]
type Origin() =
member val Application:BettingApp = null with get,set
member val IP:String = null with get,set
member val Organization:RefEx = null with get,set
member val Region:Ref = null with get,set
member val LocationGroup:Ref = null with get,set
member val Location:RefEx = null with get,set
member val Device:RefEx = null with get,set
member val Clerk:Ref = null with get,set
[<AllowNullLiteral>]
type SuperWinWinner() =
member val IsDrawn:Boolean = new Boolean() with get,set
member val DrawnAtUtc:DateTime = new DateTime() with get,set
member val RoundId:String = null with get,set
member val BetId:String = null with get,set
member val SlipId:String = null with get,set
member val Origin:Origin = null with get,set
member val Bettor:Ref = null with get,set
member val Code:String = null with get,set
member val Amount:Decimal = new Decimal() with get,set
member val LocationAddressOrBettorInfo:String = null with get,set
[<AllowNullLiteral>]
type SuperWinPrize() =
member val Id:Int32 = new Int32() with get,set
member val Amount:Decimal = new Decimal() with get,set
member val ScheduledAt:DateTime = new DateTime() with get,set
member val Winner:SuperWinWinner = null with get,set
[<AllowNullLiteral>]
type SuperWinPool() =
member val Id:Int32 = new Int32() with get,set
member val State:SuperWinPoolState = new SuperWinPoolState() with get,set
member val Amount:Decimal = new Decimal() with get,set
member val Schedule:RecordList<SuperWinPrize> = null with get,set
[<AllowNullLiteral>]
type SuperWinState() =
member val CurrentDate:String = null with get,set
member val AvailableAmount:Decimal = new Decimal() with get,set
member val Pools:RecordDictionary<Int32, SuperWinPool> = null with get,set
[<AllowNullLiteral>]
type SuperWinStateDoc() =
member val Id:String = null with get,set
member val State:SuperWinState = null with get,set
[<AllowNullLiteral>]
type GetSuperWinConfiguration() =
class end
[<AllowNullLiteral>]
type RecordDictionary<TKey, TVal>() =
inherit Dictionary<TKey, TVal>()
[<AllowNullLiteral>]
type RecordList<T>() =
inherit ResizeArray<T>()
F# GetSuperWinConfiguration DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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.webhop.biz
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetSuperWinConfiguration xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.WebApi.ServiceModel" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SuperWinStateDoc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel">
<Id>String</Id>
<State xmlns:d2p1="http://schemas.datacontract.org/2004/07/Six4Win">
<d2p1:AvailableAmount>0</d2p1:AvailableAmount>
<d2p1:CurrentDate>String</d2p1:CurrentDate>
<d2p1:Pools xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfintSuperWinPoolQC5r2uXE>
<d3p1:Key>0</d3p1:Key>
<d3p1:Value>
<d2p1:Amount>0</d2p1:Amount>
<d2p1:Id>0</d2p1:Id>
<d2p1:Schedule>
<d2p1:SuperWinPrize>
<d2p1:Amount>0</d2p1:Amount>
<d2p1:Id>0</d2p1:Id>
<d2p1:ScheduledAt>0001-01-01T00:00:00</d2p1:ScheduledAt>
<d2p1:Winner>
<d2p1:Amount>0</d2p1:Amount>
<d2p1:BetId>String</d2p1:BetId>
<d2p1:Bettor xmlns:d9p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d9p1:_x003C_Id_x003E_k__BackingField>String</d9p1:_x003C_Id_x003E_k__BackingField>
<d9p1:_x003C_Val_x003E_k__BackingField>String</d9p1:_x003C_Val_x003E_k__BackingField>
</d2p1:Bettor>
<d2p1:Code>String</d2p1:Code>
<d2p1:DrawnAtUtc>0001-01-01T00:00:00</d2p1:DrawnAtUtc>
<d2p1:IsDrawn>false</d2p1:IsDrawn>
<d2p1:LocationAddressOrBettorInfo>String</d2p1:LocationAddressOrBettorInfo>
<d2p1:Origin xmlns:d9p1="http://schemas.datacontract.org/2004/07/Betting.Common">
<d9p1:Application>
<d9p1:Name>String</d9p1:Name>
<d9p1:Version>String</d9p1:Version>
</d9p1:Application>
<d9p1:Clerk xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
<d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
</d9p1:Clerk>
<d9p1:Device xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
<d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
<d10p1:_x003C_Data_x003E_k__BackingField>
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d10p1:_x003C_Data_x003E_k__BackingField>
</d9p1:Device>
<d9p1:IP>String</d9p1:IP>
<d9p1:Location xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
<d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
<d10p1:_x003C_Data_x003E_k__BackingField>
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d10p1:_x003C_Data_x003E_k__BackingField>
</d9p1:Location>
<d9p1:LocationGroup xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
<d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
</d9p1:LocationGroup>
<d9p1:Organization xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
<d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
<d10p1:_x003C_Data_x003E_k__BackingField>
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d10p1:_x003C_Data_x003E_k__BackingField>
</d9p1:Organization>
<d9p1:Region xmlns:d10p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d10p1:_x003C_Id_x003E_k__BackingField>String</d10p1:_x003C_Id_x003E_k__BackingField>
<d10p1:_x003C_Val_x003E_k__BackingField>String</d10p1:_x003C_Val_x003E_k__BackingField>
</d9p1:Region>
</d2p1:Origin>
<d2p1:RoundId>String</d2p1:RoundId>
<d2p1:SlipId>String</d2p1:SlipId>
</d2p1:Winner>
</d2p1:SuperWinPrize>
</d2p1:Schedule>
<d2p1:State>Idle</d2p1:State>
</d3p1:Value>
</d3p1:KeyValueOfintSuperWinPoolQC5r2uXE>
</d2p1:Pools>
</State>
</SuperWinStateDoc>