Six4Win.WebApi

<back to all web services

GetGlobalCodePotAccumulation

The following routes are available for this service:
All Verbs/qry/global-code-pot/accumulations
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

Namespace Global

    Namespace Six4Win

        Public Partial Class GCPAccumulation
            Public Overridable Property Amount As Decimal
            Public Overridable Property ReserveAmount As Decimal
            Public Overridable Property Threshold As Decimal
            Public Overridable Property Cfg As GCPConfiguration
        End Class

        Public Partial Class GCPConfiguration
            Public Overridable Property IsActive As Boolean
            Public Overridable Property Interval As ThresholdInterval
            Public Overridable Property Pct As Decimal
            Public Overridable Property ReservePct As Decimal
            Public Overridable Property TotalPct As Decimal
        End Class

        Public Partial Class ThresholdInterval
            Public Overridable Property Start As Decimal
            Public Overridable Property [End] As Decimal
        End Class
    End Namespace

    Namespace Six4Win.ReadModel

        Public Partial Class GlobalCodePotAccumulations
            Public Overridable Property Id As String
            Public Overridable Property Accumulation As GCPAccumulation
            Public Overridable Property CurrentRoundId As String
        End Class
    End Namespace

    Namespace Six4Win.WebApi.ServiceModel

        Public Partial Class GetGlobalCodePotAccumulation
        End Class
    End Namespace
End Namespace

VB.NET GetGlobalCodePotAccumulation 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/global-code-pot/accumulations 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,
	accumulation: 
	{
		amount: 0,
		reserveAmount: 0,
		threshold: 0,
		cfg: 
		{
			isActive: False,
			interval: 
			{
				start: 0,
				end: 0
			},
			pct: 0,
			reservePct: 0,
			totalPct: 0
		}
	},
	currentRoundId: String
}