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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<VenueSeatingArrangementRowsInSectionSearchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <SectionId>0</SectionId>
</VenueSeatingArrangementRowsInSectionSearchRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<VenueSeatingArrangementSeatsInSectionPerRowSearchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Message>String</Message>
  <Rows>
    <VenueSeatingArrangementRowAndSeatsInSection>
      <Row xmlns:d4p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
        <d4p1:ArrangementSectionId>0</d4p1:ArrangementSectionId>
        <d4p1:ID>0</d4p1:ID>
        <d4p1:ImageUrl>String</d4p1:ImageUrl>
        <d4p1:Name>String</d4p1:Name>
        <d4p1:PositionX>0</d4p1:PositionX>
        <d4p1:PositionY>0</d4p1:PositionY>
        <d4p1:Rotation>0</d4p1:Rotation>
        <d4p1:SortOrder>0</d4p1:SortOrder>
        <d4p1:ViewType>String</d4p1:ViewType>
      </Row>
      <Seats xmlns:d4p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
        <d4p1:VenueSeatingArrangementSeat>
          <d4p1:ArrangementRowId>0</d4p1:ArrangementRowId>
          <d4p1:ArrangementSectionId>0</d4p1:ArrangementSectionId>
          <d4p1:ID>0</d4p1:ID>
          <d4p1:Name>String</d4p1:Name>
          <d4p1:PositionX>0</d4p1:PositionX>
          <d4p1:PositionY>0</d4p1:PositionY>
          <d4p1:Rotation>0</d4p1:Rotation>
          <d4p1:SortOrder>0</d4p1:SortOrder>
          <d4p1:Status>String</d4p1:Status>
          <d4p1:ViewType>String</d4p1:ViewType>
        </d4p1:VenueSeatingArrangementSeat>
      </Seats>
    </VenueSeatingArrangementRowAndSeatsInSection>
  </Rows>
  <SectionName>String</SectionName>
  <StatusCode>0</StatusCode>
</VenueSeatingArrangementSeatsInSectionPerRowSearchResult>