Betting.WebApi

<back to all web services

SyncPartnerSelfServiceDevice

Requires Authentication
The following routes are available for this service:
All Verbs/cmd/integrations/sync/ssd
import 'package:servicestack/servicestack.dart';

class DeviceType
{
    static const DeviceType ClerkServicedKiosk = const DeviceType._(0);
    static const DeviceType PersonalOnline = const DeviceType._(1);
    static const DeviceType SelfServiceKiosk = const DeviceType._(2);
    static const DeviceType Unknown = const DeviceType._(-1);

    final int _value;
    const DeviceType._(this._value);
    int get value => _value;
    static List<DeviceType> get values => const [ClerkServicedKiosk,PersonalOnline,SelfServiceKiosk,Unknown];
}

class SyncPartnerSelfServiceDevice implements IConvertible
{
    String? id;
    String? deviceWalletId;
    String? deviceId;
    String? sessionId;
    DeviceType? deviceType;

    SyncPartnerSelfServiceDevice({this.id,this.deviceWalletId,this.deviceId,this.sessionId,this.deviceType});
    SyncPartnerSelfServiceDevice.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        deviceWalletId = json['deviceWalletId'];
        deviceId = json['deviceId'];
        sessionId = json['sessionId'];
        deviceType = JsonConverters.fromJson(json['deviceType'],'DeviceType',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'deviceWalletId': deviceWalletId,
        'deviceId': deviceId,
        'sessionId': sessionId,
        'deviceType': JsonConverters.toJson(deviceType,'DeviceType',context!)
    };

    getTypeName() => "SyncPartnerSelfServiceDevice";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', types: <String, TypeInfo> {
    'DeviceType': TypeInfo(TypeOf.Enum, enumValues:DeviceType.values),
    'SyncPartnerSelfServiceDevice': TypeInfo(TypeOf.Class, create:() => SyncPartnerSelfServiceDevice()),
});

Dart SyncPartnerSelfServiceDevice 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 /cmd/integrations/sync/ssd HTTP/1.1 
Host: api.sbbet.ath.cx 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	deviceWalletId: String,
	deviceId: String,
	sessionId: String,
	deviceType: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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