BokaMera.API.Host

<back to all web services

BookingUserQueueCheckStatus

The following routes are available for this service:
PUT/bookinguserqueue/checkstatusCheck booking user queue
import 'package:servicestack/servicestack.dart';

class BookingUserQueueCheckStatusResponse implements IConvertible
{
    String? UsersCount;
    ResponseStatus? ResponseStatus;

    BookingUserQueueCheckStatusResponse({this.UsersCount,this.ResponseStatus});
    BookingUserQueueCheckStatusResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        UsersCount = json['UsersCount'];
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'UsersCount': UsersCount,
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

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

class BookingUserQueueCheckStatus extends BookingUserQueueCheckStatusResponse implements IConvertible
{
    BookingUserQueueCheckStatus();
    BookingUserQueueCheckStatus.fromJson(Map<String, dynamic> json) : super.fromJson(json);
    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson();
    getTypeName() => "BookingUserQueueCheckStatus";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: <String, TypeInfo> {
    'BookingUserQueueCheckStatusResponse': TypeInfo(TypeOf.Class, create:() => BookingUserQueueCheckStatusResponse()),
    'BookingUserQueueCheckStatus': TypeInfo(TypeOf.Class, create:() => BookingUserQueueCheckStatus()),
});

Dart BookingUserQueueCheckStatus 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.

PUT /bookinguserqueue/checkstatus HTTP/1.1 
Host: api.bokamera.se 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	UsersCount: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	
}