| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| POST | /EventSeating/TableActions |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using TicketUserServices.ServiceModel;
namespace TicketUserServices.ServiceModel
{
public partial class EventSeatingTableActionResult
{
public EventSeatingTableActionResult()
{
BlockedSeatIds = new List<int>{};
UnblockedSeatIds = new List<int>{};
SkippedSeatIds = new List<int>{};
AlreadyBlockedSeatIds = new List<int>{};
}
public virtual int SectionId { get; set; }
public virtual string SectionName { get; set; }
public virtual bool IsTable { get; set; }
public virtual bool Ok { get; set; }
public virtual string Error { get; set; }
public virtual List<int> BlockedSeatIds { get; set; }
public virtual List<int> UnblockedSeatIds { get; set; }
public virtual List<int> SkippedSeatIds { get; set; }
public virtual List<int> AlreadyBlockedSeatIds { get; set; }
public virtual bool IsHidden { get; set; }
public virtual bool ShowSeats { get; set; }
public virtual string Note { get; set; }
public virtual string ViewType { get; set; }
}
public partial class EventSeatingTableActionsRequest
{
public EventSeatingTableActionsRequest()
{
SectionIds = new List<int>{};
}
public virtual int EventId { get; set; }
public virtual List<int> SectionIds { get; set; }
public virtual string Action { get; set; }
public virtual string Note { get; set; }
public virtual string BlockedNote { get; set; }
public virtual bool TablesOnly { get; set; }
}
public partial class EventSeatingTableActionsResult
{
public EventSeatingTableActionsResult()
{
Results = new List<EventSeatingTableActionResult>{};
}
public virtual int StatusCode { get; set; }
public virtual string Message { get; set; }
public virtual string Action { get; set; }
public virtual int EventId { get; set; }
public virtual List<EventSeatingTableActionResult> Results { get; set; }
public virtual EventSeatingTableActionsTotals Totals { get; set; }
public virtual long ElapsedMs { get; set; }
}
public partial class EventSeatingTableActionsTotals
{
public virtual int Blocked { get; set; }
public virtual int Unblocked { get; set; }
public virtual int Skipped { get; set; }
public virtual int Sections { get; set; }
public virtual int Failed { get; set; }
}
}
C# EventSeatingTableActionsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
Content-Type: text/jsv
Content-Length: length
{
eventId: 0,
sectionIds:
[
0
],
action: String,
note: String,
blockedNote: String,
tablesOnly: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
}