Betting.WebApi

<back to all web services

FindLocations

Requires Authentication
The following routes are available for this service:
All Verbs/qry/locations
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.E2E.SlipRequestMetrics

Namespace Global

    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.WebApi.ServiceModel

        Public Partial Class FindLocations
            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 FindLocations DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /qry/locations HTTP/1.1 
Host: api.sbbet.ath.cx 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<FindLocations xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Betting.WebApi.ServiceModel">
  <Qry xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Starnet.Common">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Qry>
  <CurrentPage xmlns="http://schemas.datacontract.org/2004/07/Starnet.Common">0</CurrentPage>
  <PageSize xmlns="http://schemas.datacontract.org/2004/07/Starnet.Common">0</PageSize>
</FindLocations>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PaginatedResultOfLocationHM1565vq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Starnet.Common">
  <CurrentPage>0</CurrentPage>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Betting.ReadModel">
    <d2p1:Location>
      <d2p1:Address>
        <City>String</City>
        <Country>
          <_x003C_Id_x003E_k__BackingField>String</_x003C_Id_x003E_k__BackingField>
          <_x003C_Val_x003E_k__BackingField>String</_x003C_Val_x003E_k__BackingField>
        </Country>
        <Data xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </Data>
        <GPS>
          <Lat>0</Lat>
          <Lng>0</Lng>
        </GPS>
        <PostalCode>String</PostalCode>
        <State>String</State>
        <Street>String</Street>
      </d2p1:Address>
      <d2p1:Devices xmlns:d4p1="http://schemas.datacontract.org/2004/07/Betting.Common">
        <d4p1:Device>
          <d4p1:Id>String</d4p1:Id>
          <d4p1:IntegrationsData xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>String</d6p1:Key>
              <d6p1:Value>String</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
          </d4p1:IntegrationsData>
          <d4p1:IsActive>false</d4p1:IsActive>
          <d4p1:Name>String</d4p1:Name>
          <d4p1:Type>ClerkServicedKiosk</d4p1:Type>
        </d4p1:Device>
      </d2p1:Devices>
      <d2p1:Group>
        <_x003C_Id_x003E_k__BackingField>String</_x003C_Id_x003E_k__BackingField>
        <_x003C_Val_x003E_k__BackingField>String</_x003C_Val_x003E_k__BackingField>
      </d2p1:Group>
      <d2p1:Id>String</d2p1:Id>
      <d2p1:IntegrationsData xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </d2p1:IntegrationsData>
      <d2p1:Locale xmlns:d4p1="http://schemas.datacontract.org/2004/07/Betting.Common">
        <d4p1:Currency>
          <_x003C_Id_x003E_k__BackingField>String</_x003C_Id_x003E_k__BackingField>
          <_x003C_Val_x003E_k__BackingField>String</_x003C_Val_x003E_k__BackingField>
        </d4p1:Currency>
        <d4p1:Language>
          <_x003C_Id_x003E_k__BackingField>String</_x003C_Id_x003E_k__BackingField>
          <_x003C_Val_x003E_k__BackingField>String</_x003C_Val_x003E_k__BackingField>
        </d4p1:Language>
        <d4p1:TimeZone>
          <_x003C_Id_x003E_k__BackingField>String</_x003C_Id_x003E_k__BackingField>
          <_x003C_Val_x003E_k__BackingField>String</_x003C_Val_x003E_k__BackingField>
        </d4p1:TimeZone>
      </d2p1:Locale>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:Organization>
        <_x003C_Id_x003E_k__BackingField>String</_x003C_Id_x003E_k__BackingField>
        <_x003C_Val_x003E_k__BackingField>String</_x003C_Val_x003E_k__BackingField>
        <_x003C_Data_x003E_k__BackingField xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </_x003C_Data_x003E_k__BackingField>
      </d2p1:Organization>
      <d2p1:ProductInstances xmlns:d4p1="http://schemas.datacontract.org/2004/07/Betting.Common">
        <d4p1:ProductInstanceRef>
          <d4p1:Id>String</d4p1:Id>
          <d4p1:Name>String</d4p1:Name>
          <d4p1:Product>
            <d4p1:Category>String</d4p1:Category>
            <d4p1:Id>String</d4p1:Id>
            <d4p1:ProductProvider>
              <_x003C_Id_x003E_k__BackingField>String</_x003C_Id_x003E_k__BackingField>
              <_x003C_Val_x003E_k__BackingField>String</_x003C_Val_x003E_k__BackingField>
            </d4p1:ProductProvider>
            <d4p1:Value>String</d4p1:Value>
          </d4p1:Product>
          <d4p1:Title>String</d4p1:Title>
        </d4p1:ProductInstanceRef>
      </d2p1:ProductInstances>
      <d2p1:Region>
        <_x003C_Id_x003E_k__BackingField>String</_x003C_Id_x003E_k__BackingField>
        <_x003C_Val_x003E_k__BackingField>String</_x003C_Val_x003E_k__BackingField>
      </d2p1:Region>
    </d2p1:Location>
  </Data>
  <PageSize>0</PageSize>
  <TotalItems>0</TotalItems>
  <TotalPages>0</TotalPages>
</PaginatedResultOfLocationHM1565vq>