TicketUserServices

<back to all web services

EventSeatingTableActionsRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequired permission:Tickets.Add
The following routes are available for this service:
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 .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 /EventSeating/TableActions HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<EventSeatingTableActionsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Action>String</Action>
  <BlockedNote>String</BlockedNote>
  <EventId>0</EventId>
  <Note>String</Note>
  <SectionIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </SectionIds>
  <TablesOnly>false</TablesOnly>
</EventSeatingTableActionsRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EventSeatingTableActionsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Action>String</Action>
  <ElapsedMs>0</ElapsedMs>
  <EventId>0</EventId>
  <Message>String</Message>
  <Results>
    <EventSeatingTableActionResult>
      <AlreadyBlockedSeatIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>0</d4p1:int>
      </AlreadyBlockedSeatIds>
      <BlockedSeatIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>0</d4p1:int>
      </BlockedSeatIds>
      <Error>String</Error>
      <IsHidden>false</IsHidden>
      <IsTable>false</IsTable>
      <Note>String</Note>
      <Ok>false</Ok>
      <SectionId>0</SectionId>
      <SectionName>String</SectionName>
      <ShowSeats>false</ShowSeats>
      <SkippedSeatIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>0</d4p1:int>
      </SkippedSeatIds>
      <UnblockedSeatIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>0</d4p1:int>
      </UnblockedSeatIds>
      <ViewType>String</ViewType>
    </EventSeatingTableActionResult>
  </Results>
  <StatusCode>0</StatusCode>
  <Totals>
    <Blocked>0</Blocked>
    <Failed>0</Failed>
    <Sections>0</Sections>
    <Skipped>0</Skipped>
    <Unblocked>0</Unblocked>
  </Totals>
</EventSeatingTableActionsResult>