TicketUserServices

<back to all web services

VenueSeatingArrangementRowsInSectionSearchRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
POST/VenueSeatingArrangement/Search/Seats/RowsInSection
import 'package:servicestack/servicestack.dart';

class VenueSeatingArrangementRow implements IConvertible
{
    int? id;
    String? name;
    int? arrangementSectionId;
    String? imageUrl;
    double? positionX;
    double? positionY;
    double? rotation;
    String? viewType;
    double? sortOrder;

    VenueSeatingArrangementRow({this.id,this.name,this.arrangementSectionId,this.imageUrl,this.positionX,this.positionY,this.rotation,this.viewType,this.sortOrder});
    VenueSeatingArrangementRow.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        name = json['name'];
        arrangementSectionId = json['arrangementSectionId'];
        imageUrl = json['imageUrl'];
        positionX = JsonConverters.toDouble(json['positionX']);
        positionY = JsonConverters.toDouble(json['positionY']);
        rotation = JsonConverters.toDouble(json['rotation']);
        viewType = json['viewType'];
        sortOrder = JsonConverters.toDouble(json['sortOrder']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'name': name,
        'arrangementSectionId': arrangementSectionId,
        'imageUrl': imageUrl,
        'positionX': positionX,
        'positionY': positionY,
        'rotation': rotation,
        'viewType': viewType,
        'sortOrder': sortOrder
    };

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

class VenueSeatingArrangementSeat implements IConvertible
{
    int? id;
    String? name;
    int? arrangementRowId;
    String? status;
    int? arrangementSectionId;
    double? positionX;
    double? positionY;
    double? rotation;
    String? viewType;
    double? sortOrder;

    VenueSeatingArrangementSeat({this.id,this.name,this.arrangementRowId,this.status,this.arrangementSectionId,this.positionX,this.positionY,this.rotation,this.viewType,this.sortOrder});
    VenueSeatingArrangementSeat.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        name = json['name'];
        arrangementRowId = json['arrangementRowId'];
        status = json['status'];
        arrangementSectionId = json['arrangementSectionId'];
        positionX = JsonConverters.toDouble(json['positionX']);
        positionY = JsonConverters.toDouble(json['positionY']);
        rotation = JsonConverters.toDouble(json['rotation']);
        viewType = json['viewType'];
        sortOrder = JsonConverters.toDouble(json['sortOrder']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'name': name,
        'arrangementRowId': arrangementRowId,
        'status': status,
        'arrangementSectionId': arrangementSectionId,
        'positionX': positionX,
        'positionY': positionY,
        'rotation': rotation,
        'viewType': viewType,
        'sortOrder': sortOrder
    };

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

class VenueSeatingArrangementRowAndSeatsInSection implements IConvertible
{
    VenueSeatingArrangementRow? row;
    List<VenueSeatingArrangementSeat>? seats;

    VenueSeatingArrangementRowAndSeatsInSection({this.row,this.seats});
    VenueSeatingArrangementRowAndSeatsInSection.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        row = JsonConverters.fromJson(json['row'],'VenueSeatingArrangementRow',context!);
        seats = JsonConverters.fromJson(json['seats'],'List<VenueSeatingArrangementSeat>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'row': JsonConverters.toJson(row,'VenueSeatingArrangementRow',context!),
        'seats': JsonConverters.toJson(seats,'List<VenueSeatingArrangementSeat>',context!)
    };

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

class VenueSeatingArrangementSeatsInSectionPerRowSearchResult implements IConvertible
{
    String? sectionName;
    List<VenueSeatingArrangementRowAndSeatsInSection>? rows;
    int? statusCode;
    String? message;

    VenueSeatingArrangementSeatsInSectionPerRowSearchResult({this.sectionName,this.rows,this.statusCode,this.message});
    VenueSeatingArrangementSeatsInSectionPerRowSearchResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        sectionName = json['sectionName'];
        rows = JsonConverters.fromJson(json['rows'],'List<VenueSeatingArrangementRowAndSeatsInSection>',context!);
        statusCode = json['statusCode'];
        message = json['message'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'sectionName': sectionName,
        'rows': JsonConverters.toJson(rows,'List<VenueSeatingArrangementRowAndSeatsInSection>',context!),
        'statusCode': statusCode,
        'message': message
    };

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

class VenueSeatingArrangementRowsInSectionSearchRequest implements IConvertible
{
    int? sectionId;

    VenueSeatingArrangementRowsInSectionSearchRequest({this.sectionId});
    VenueSeatingArrangementRowsInSectionSearchRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        sectionId = json['sectionId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'sectionId': sectionId
    };

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

TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
    'VenueSeatingArrangementRow': TypeInfo(TypeOf.Class, create:() => VenueSeatingArrangementRow()),
    'VenueSeatingArrangementSeat': TypeInfo(TypeOf.Class, create:() => VenueSeatingArrangementSeat()),
    'VenueSeatingArrangementRowAndSeatsInSection': TypeInfo(TypeOf.Class, create:() => VenueSeatingArrangementRowAndSeatsInSection()),
    'List<VenueSeatingArrangementSeat>': TypeInfo(TypeOf.Class, create:() => <VenueSeatingArrangementSeat>[]),
    'VenueSeatingArrangementSeatsInSectionPerRowSearchResult': TypeInfo(TypeOf.Class, create:() => VenueSeatingArrangementSeatsInSectionPerRowSearchResult()),
    'List<VenueSeatingArrangementRowAndSeatsInSection>': TypeInfo(TypeOf.Class, create:() => <VenueSeatingArrangementRowAndSeatsInSection>[]),
    'VenueSeatingArrangementRowsInSectionSearchRequest': TypeInfo(TypeOf.Class, create:() => VenueSeatingArrangementRowsInSectionSearchRequest()),
});

Dart VenueSeatingArrangementRowsInSectionSearchRequest 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 /VenueSeatingArrangement/Search/Seats/RowsInSection HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	sectionId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	sectionName: String,
	rows: 
	[
		{
			row: 
			{
				id: 0,
				name: String,
				arrangementSectionId: 0,
				imageUrl: String,
				positionX: 0,
				positionY: 0,
				rotation: 0,
				viewType: String,
				sortOrder: 0
			},
			seats: 
			[
				{
					id: 0,
					name: String,
					arrangementRowId: 0,
					status: String,
					arrangementSectionId: 0,
					positionX: 0,
					positionY: 0,
					rotation: 0,
					viewType: String,
					sortOrder: 0
				}
			]
		}
	],
	statusCode: 0,
	message: String
}