Requires any of the roles: | Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileApp | Required permissions: | Tickets.Add, Tickets.Add |
GET PUT POST | /ownerSeatingSection | Add or change Seating sections | Id only when changing (PUT) |
---|
import 'package:servicestack/servicestack.dart';
class EventSeriesOwnerSeatingSection implements IConvertible
{
int? id;
String? name;
int? seriesId;
int? ownerId;
int? locationId;
bool? isActive;
int? maxTickets;
DateTime? timestampCreated;
bool? hasRows;
bool? hasSeats;
bool? rowsAreAlphabetical;
bool? seatsAreAlphabetical;
String? seatStart;
String? rowStart;
int? seatSkips;
int? rowSkips;
EventSeriesOwnerSeatingSection({this.id,this.name,this.seriesId,this.ownerId,this.locationId,this.isActive,this.maxTickets,this.timestampCreated,this.hasRows,this.hasSeats,this.rowsAreAlphabetical,this.seatsAreAlphabetical,this.seatStart,this.rowStart,this.seatSkips,this.rowSkips});
EventSeriesOwnerSeatingSection.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
seriesId = json['seriesId'];
ownerId = json['ownerId'];
locationId = json['locationId'];
isActive = json['isActive'];
maxTickets = json['maxTickets'];
timestampCreated = JsonConverters.fromJson(json['timestampCreated'],'DateTime',context!);
hasRows = json['hasRows'];
hasSeats = json['hasSeats'];
rowsAreAlphabetical = json['rowsAreAlphabetical'];
seatsAreAlphabetical = json['seatsAreAlphabetical'];
seatStart = json['seatStart'];
rowStart = json['rowStart'];
seatSkips = json['seatSkips'];
rowSkips = json['rowSkips'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'name': name,
'seriesId': seriesId,
'ownerId': ownerId,
'locationId': locationId,
'isActive': isActive,
'maxTickets': maxTickets,
'timestampCreated': JsonConverters.toJson(timestampCreated,'DateTime',context!),
'hasRows': hasRows,
'hasSeats': hasSeats,
'rowsAreAlphabetical': rowsAreAlphabetical,
'seatsAreAlphabetical': seatsAreAlphabetical,
'seatStart': seatStart,
'rowStart': rowStart,
'seatSkips': seatSkips,
'rowSkips': rowSkips
};
getTypeName() => "EventSeriesOwnerSeatingSection";
TypeContext? context = _ctx;
}
class OwnerSeatingSectionResult implements IConvertible
{
EventSeriesOwnerSeatingSection? seatingSection;
int? statusCode;
String? message;
OwnerSeatingSectionResult({this.seatingSection,this.statusCode,this.message});
OwnerSeatingSectionResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
seatingSection = JsonConverters.fromJson(json['seatingSection'],'EventSeriesOwnerSeatingSection',context!);
statusCode = json['statusCode'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'seatingSection': JsonConverters.toJson(seatingSection,'EventSeriesOwnerSeatingSection',context!),
'statusCode': statusCode,
'message': message
};
getTypeName() => "OwnerSeatingSectionResult";
TypeContext? context = _ctx;
}
class OwnerSeatingSectionRequest implements IConvertible
{
EventSeriesOwnerSeatingSection? seatingSection;
OwnerSeatingSectionRequest({this.seatingSection});
OwnerSeatingSectionRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
seatingSection = JsonConverters.fromJson(json['seatingSection'],'EventSeriesOwnerSeatingSection',context!);
return this;
}
Map<String, dynamic> toJson() => {
'seatingSection': JsonConverters.toJson(seatingSection,'EventSeriesOwnerSeatingSection',context!)
};
getTypeName() => "OwnerSeatingSectionRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
'EventSeriesOwnerSeatingSection': TypeInfo(TypeOf.Class, create:() => EventSeriesOwnerSeatingSection()),
'OwnerSeatingSectionResult': TypeInfo(TypeOf.Class, create:() => OwnerSeatingSectionResult()),
'OwnerSeatingSectionRequest': TypeInfo(TypeOf.Class, create:() => OwnerSeatingSectionRequest()),
});
Dart OwnerSeatingSectionRequest 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 /ownerSeatingSection HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"seatingSection":{"id":0,"name":"String","seriesId":0,"ownerId":0,"locationId":0,"isActive":false,"maxTickets":0,"timestampCreated":"0001-01-01T00:00:00.0000000","hasRows":false,"hasSeats":false,"rowsAreAlphabetical":false,"seatsAreAlphabetical":false,"seatStart":"String","rowStart":"String","seatSkips":0,"rowSkips":0}}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"seatingSection":{"id":0,"name":"String","seriesId":0,"ownerId":0,"locationId":0,"isActive":false,"maxTickets":0,"timestampCreated":"0001-01-01T00:00:00.0000000","hasRows":false,"hasSeats":false,"rowsAreAlphabetical":false,"seatsAreAlphabetical":false,"seatStart":"String","rowStart":"String","seatSkips":0,"rowSkips":0},"statusCode":0,"message":"String"}