Betting.WebApi

<back to all web services

AddLocationDevice

Requires Authentication
The following routes are available for this service:
POST/cmd/locations/devices/add
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 Betting.Common
Imports Starnet.Common

Namespace Global

    Namespace Betting.Common

        Public Partial Class Device
            Public Overridable Property Id As String
            Public Overridable Property Name As String
            Public Overridable Property IsActive As Boolean
            Public Overridable Property Type As DeviceType
            Public Overridable Property IntegrationsData As RecordDictionary(Of String, String)
        End Class

        Public Enum DeviceType
            ClerkServicedKiosk = 0
            PersonalOnline = 1
            SelfServiceKiosk = 2
            Unknown = -1
        End Enum
    End Namespace

    Namespace Betting.WebApi.ServiceModel

        Public Partial Class AddLocationDevice
            Public Overridable Property Id As String
            Public Overridable Property Device As Device
        End Class
    End Namespace

    Namespace Starnet.Common

        Public Partial Class RecordDictionary(Of TKey, TVal)
            Inherits Dictionary(Of TKey, TVal)
        End Class
    End Namespace
End Namespace

VB.NET AddLocationDevice DTOs

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

HTTP + OTHER

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

POST /cmd/locations/devices/add HTTP/1.1 
Host: api.sbbet.ath.cx 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id":"String","device":{"id":"String","name":"String","isActive":false,"type":0,"integrationsData":{"String":"String"}}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}