| All Verbs | /qry/wins/recent |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Six4Win.WebApi.ServiceModel
Imports Six4Win.ReadModel
Imports Six4Win.ReadModel.Bets
Imports Starnet.Common
Imports Betting.Common
Imports Six4Win
Namespace Global
Namespace Betting.Common
Public Enum BetOutcome
Unknown = 0
Lost = 1
Won = 2
Void = 3
End Enum
Public Partial Class BettingApp
Public Overridable Property Name As String
Public Overridable Property Version As String
End Class
Public Enum BetValidity
Valid = 0
Canceled = 1
Void = 2
Reverted = 3
End Enum
Public Partial Class Origin
Public Overridable Property Application As BettingApp
Public Overridable Property IP As String
Public Overridable Property Organization As RefEx
Public Overridable Property Region As Ref
Public Overridable Property LocationGroup As Ref
Public Overridable Property Location As RefEx
Public Overridable Property Device As RefEx
Public Overridable Property Clerk As Ref
End Class
End Namespace
Namespace Six4Win
Public Enum BetProcessingStatus
Open = 0
Closed = 1
End Enum
End Namespace
Namespace Six4Win.ReadModel
Public Partial Class RecentWins
Public Overridable Property Id As String
Public Overridable Property Wins As List(Of Win)
Public Overridable Property MaxSize As Integer
Public Overridable Property Threshold As Decimal
End Class
End Namespace
Namespace Six4Win.ReadModel.Bets
Public Partial Class Win
Public Overridable Property Id As Long
Public Overridable Property SId As Long
Public Overridable Property Bettor As Ref
Public Overridable Property Origin As Origin
Public Overridable Property PlacedAt As Date
Public Overridable Property RoundId As Long
Public Overridable Property Content As String
Public Overridable Property Stake As Decimal
Public Overridable Property Outcome As BetOutcome
Public Overridable Property Amount As Decimal
Public Overridable Property ProcessingStatus As BetProcessingStatus
Public Overridable Property Validity As BetValidity
Public Overridable Property Results As Dictionary(Of String, String)
Public Overridable Property Payload As Dictionary(Of String, String)
End Class
End Namespace
Namespace Six4Win.WebApi.ServiceModel
Public Partial Class GetRecentWins
End Class
End Namespace
Namespace Starnet.Common
Public Partial Class RecordDictionary(Of TKey, TVal)
Inherits Dictionary(Of TKey, TVal)
End Class
Public Partial Class Ref
Public Overridable Property Id As String
Public Overridable Property Val As String
End Class
Public Partial Class RefEx
Inherits Ref
Public Overridable Property Data As RecordDictionary(Of String, String)
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /qry/wins/recent HTTP/1.1
Host: s4w2.api.bettor.cc
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id":"String","wins":[{"id":0,"sId":0,"bettor":{"id":"String","val":"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"}},"placedAt":"0001-01-01T00:00:00.0000000Z","roundId":0,"content":"String","stake":0,"outcome":0,"amount":0,"processingStatus":0,"validity":0,"results":{"String":"String"},"payload":{"String":"String"}}],"maxSize":0,"threshold":0}