| All Verbs | /qry/totals/cashbooks |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Betting.WebApi.ServiceModel
Imports Starnet.Common
Imports Betting.ReadModel
Imports Betting.ReadModel.E2E.SlipRequestMetrics
Imports Betting.ReadModel.Reporting.ReadModels
Namespace Global
Namespace Betting.ReadModel
Public Partial Class PaginatedResultWithTotal(Of T)
Inherits PaginatedResult(Of DailyLocationCashbookTotalEx)
Public Overridable Property Total As Decimal
End Class
End Namespace
Namespace Betting.ReadModel.E2E.SlipRequestMetrics
Public Partial Class ResponseMetrics
Public Overridable Property Id As Long
Public Overridable Property Rqc As Integer
Public Overridable Property Oc As Integer
Public Overridable Property Sc As Integer
Public Overridable Property Tc As Integer
Public Overridable Property Adr As Integer
End Class
End Namespace
Namespace Betting.ReadModel.Reporting.ReadModels
Public Partial Class DailyLocationCashbookTotalEx
Public Overridable Property Id As String
Public Overridable Property Organization As String
Public Overridable Property Group As String
Public Overridable Property Location As String
Public Overridable Property Start As Decimal
Public Overridable Property Deposit As Decimal
Public Overridable Property Payin As Decimal
Public Overridable Property TotalIn As Decimal
Public Overridable Property Payout As Decimal
Public Overridable Property Withdrawal As Decimal
Public Overridable Property TotalOut As Decimal
Public Overridable Property Balance As Decimal
End Class
End Namespace
Namespace Betting.WebApi.ServiceModel
Public Partial Class FindDailyCashbookTotals
Inherits PaginatedQueryRequest
End Class
End Namespace
Namespace Starnet.Common
Public Partial Class PaginatedQueryRequest
Inherits QueryRequest
Public Overridable Property CurrentPage As Integer
Public Overridable Property PageSize As Integer
End Class
Public Partial Class PaginatedResult(Of T)
Implements IPaginatedResult
Public Overridable Property Data As List(Of ResponseMetrics) = New List(Of ResponseMetrics)
Public Overridable Property CurrentPage As Long Implements IPaginatedResult.CurrentPage
Public Overridable Property PageSize As Long Implements IPaginatedResult.PageSize
Public Overridable Property TotalItems As Long Implements IPaginatedResult.TotalItems
Public Overridable Property TotalPages As Long Implements IPaginatedResult.TotalPages
End Class
Public Partial Class QueryRequest
Public Overridable Property Qry As Dictionary(Of String, String) = New Dictionary(Of String, String)
End Class
End Namespace
End Namespace
VB.NET FindDailyCashbookTotals DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /qry/totals/cashbooks HTTP/1.1
Host: api.sbbet.ath.cx
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
currentPage: 0,
pageSize: 0,
qry:
{
String: String
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
total: 0,
data:
[
{
id: String,
organization: String,
group: String,
location: String,
start: 0,
deposit: 0,
payin: 0,
totalIn: 0,
payout: 0,
withdrawal: 0,
totalOut: 0,
balance: 0
}
],
currentPage: 0,
pageSize: 0,
totalItems: 0,
totalPages: 0
}