| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| POST | /EventSeating/TableActions |
|---|
import 'package:servicestack/servicestack.dart';
class EventSeatingTableActionResult implements IConvertible
{
int? sectionId;
String? sectionName;
bool? isTable;
bool? ok;
String? error;
List<int>? blockedSeatIds;
List<int>? unblockedSeatIds;
List<int>? skippedSeatIds;
List<int>? alreadyBlockedSeatIds;
bool? isHidden;
bool? showSeats;
String? note;
String? viewType;
EventSeatingTableActionResult({this.sectionId,this.sectionName,this.isTable,this.ok,this.error,this.blockedSeatIds,this.unblockedSeatIds,this.skippedSeatIds,this.alreadyBlockedSeatIds,this.isHidden,this.showSeats,this.note,this.viewType});
EventSeatingTableActionResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
sectionId = json['sectionId'];
sectionName = json['sectionName'];
isTable = json['isTable'];
ok = json['ok'];
error = json['error'];
blockedSeatIds = JsonConverters.fromJson(json['blockedSeatIds'],'List<int>',context!);
unblockedSeatIds = JsonConverters.fromJson(json['unblockedSeatIds'],'List<int>',context!);
skippedSeatIds = JsonConverters.fromJson(json['skippedSeatIds'],'List<int>',context!);
alreadyBlockedSeatIds = JsonConverters.fromJson(json['alreadyBlockedSeatIds'],'List<int>',context!);
isHidden = json['isHidden'];
showSeats = json['showSeats'];
note = json['note'];
viewType = json['viewType'];
return this;
}
Map<String, dynamic> toJson() => {
'sectionId': sectionId,
'sectionName': sectionName,
'isTable': isTable,
'ok': ok,
'error': error,
'blockedSeatIds': JsonConverters.toJson(blockedSeatIds,'List<int>',context!),
'unblockedSeatIds': JsonConverters.toJson(unblockedSeatIds,'List<int>',context!),
'skippedSeatIds': JsonConverters.toJson(skippedSeatIds,'List<int>',context!),
'alreadyBlockedSeatIds': JsonConverters.toJson(alreadyBlockedSeatIds,'List<int>',context!),
'isHidden': isHidden,
'showSeats': showSeats,
'note': note,
'viewType': viewType
};
getTypeName() => "EventSeatingTableActionResult";
TypeContext? context = _ctx;
}
class EventSeatingTableActionsTotals implements IConvertible
{
int? blocked;
int? unblocked;
int? skipped;
int? sections;
int? failed;
EventSeatingTableActionsTotals({this.blocked,this.unblocked,this.skipped,this.sections,this.failed});
EventSeatingTableActionsTotals.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
blocked = json['blocked'];
unblocked = json['unblocked'];
skipped = json['skipped'];
sections = json['sections'];
failed = json['failed'];
return this;
}
Map<String, dynamic> toJson() => {
'blocked': blocked,
'unblocked': unblocked,
'skipped': skipped,
'sections': sections,
'failed': failed
};
getTypeName() => "EventSeatingTableActionsTotals";
TypeContext? context = _ctx;
}
class EventSeatingTableActionsResult implements IConvertible
{
int? statusCode;
String? message;
String? action;
int? eventId;
List<EventSeatingTableActionResult>? results;
EventSeatingTableActionsTotals? totals;
int? elapsedMs;
EventSeatingTableActionsResult({this.statusCode,this.message,this.action,this.eventId,this.results,this.totals,this.elapsedMs});
EventSeatingTableActionsResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
statusCode = json['statusCode'];
message = json['message'];
action = json['action'];
eventId = json['eventId'];
results = JsonConverters.fromJson(json['results'],'List<EventSeatingTableActionResult>',context!);
totals = JsonConverters.fromJson(json['totals'],'EventSeatingTableActionsTotals',context!);
elapsedMs = json['elapsedMs'];
return this;
}
Map<String, dynamic> toJson() => {
'statusCode': statusCode,
'message': message,
'action': action,
'eventId': eventId,
'results': JsonConverters.toJson(results,'List<EventSeatingTableActionResult>',context!),
'totals': JsonConverters.toJson(totals,'EventSeatingTableActionsTotals',context!),
'elapsedMs': elapsedMs
};
getTypeName() => "EventSeatingTableActionsResult";
TypeContext? context = _ctx;
}
class EventSeatingTableActionsRequest implements IConvertible
{
int? eventId;
List<int>? sectionIds;
String? action;
String? note;
String? blockedNote;
bool? tablesOnly;
EventSeatingTableActionsRequest({this.eventId,this.sectionIds,this.action,this.note,this.blockedNote,this.tablesOnly});
EventSeatingTableActionsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
eventId = json['eventId'];
sectionIds = JsonConverters.fromJson(json['sectionIds'],'List<int>',context!);
action = json['action'];
note = json['note'];
blockedNote = json['blockedNote'];
tablesOnly = json['tablesOnly'];
return this;
}
Map<String, dynamic> toJson() => {
'eventId': eventId,
'sectionIds': JsonConverters.toJson(sectionIds,'List<int>',context!),
'action': action,
'note': note,
'blockedNote': blockedNote,
'tablesOnly': tablesOnly
};
getTypeName() => "EventSeatingTableActionsRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
'EventSeatingTableActionResult': TypeInfo(TypeOf.Class, create:() => EventSeatingTableActionResult()),
'EventSeatingTableActionsTotals': TypeInfo(TypeOf.Class, create:() => EventSeatingTableActionsTotals()),
'EventSeatingTableActionsResult': TypeInfo(TypeOf.Class, create:() => EventSeatingTableActionsResult()),
'List<EventSeatingTableActionResult>': TypeInfo(TypeOf.Class, create:() => <EventSeatingTableActionResult>[]),
'EventSeatingTableActionsRequest': TypeInfo(TypeOf.Class, create:() => EventSeatingTableActionsRequest()),
});
Dart EventSeatingTableActionsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /EventSeating/TableActions HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"eventId":0,"sectionIds":[0],"action":"String","note":"String","blockedNote":"String","tablesOnly":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"statusCode":0,"message":"String","action":"String","eventId":0,"results":[{"sectionId":0,"sectionName":"String","isTable":false,"ok":false,"error":"String","blockedSeatIds":[0],"unblockedSeatIds":[0],"skippedSeatIds":[0],"alreadyBlockedSeatIds":[0],"isHidden":false,"showSeats":false,"note":"String","viewType":"String"}],"totals":{"blocked":0,"unblocked":0,"skipped":0,"sections":0,"failed":0},"elapsedMs":0}