| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| POST | /EventSeating/TableActions |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class EventSeatingTableActionsRequest
{
public Integer eventId = null;
public ArrayList<Integer> sectionIds = null;
public String action = null;
public String note = null;
public String blockedNote = null;
public Boolean tablesOnly = null;
public Integer getEventId() { return eventId; }
public EventSeatingTableActionsRequest setEventId(Integer value) { this.eventId = value; return this; }
public ArrayList<Integer> getSectionIds() { return sectionIds; }
public EventSeatingTableActionsRequest setSectionIds(ArrayList<Integer> value) { this.sectionIds = value; return this; }
public String getAction() { return action; }
public EventSeatingTableActionsRequest setAction(String value) { this.action = value; return this; }
public String getNote() { return note; }
public EventSeatingTableActionsRequest setNote(String value) { this.note = value; return this; }
public String getBlockedNote() { return blockedNote; }
public EventSeatingTableActionsRequest setBlockedNote(String value) { this.blockedNote = value; return this; }
public Boolean isTablesOnly() { return tablesOnly; }
public EventSeatingTableActionsRequest setTablesOnly(Boolean value) { this.tablesOnly = value; return this; }
}
public static class EventSeatingTableActionsResult
{
public Integer statusCode = null;
public String message = null;
public String action = null;
public Integer eventId = null;
public ArrayList<EventSeatingTableActionResult> results = null;
public EventSeatingTableActionsTotals totals = null;
public Long elapsedMs = null;
public Integer getStatusCode() { return statusCode; }
public EventSeatingTableActionsResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public EventSeatingTableActionsResult setMessage(String value) { this.message = value; return this; }
public String getAction() { return action; }
public EventSeatingTableActionsResult setAction(String value) { this.action = value; return this; }
public Integer getEventId() { return eventId; }
public EventSeatingTableActionsResult setEventId(Integer value) { this.eventId = value; return this; }
public ArrayList<EventSeatingTableActionResult> getResults() { return results; }
public EventSeatingTableActionsResult setResults(ArrayList<EventSeatingTableActionResult> value) { this.results = value; return this; }
public EventSeatingTableActionsTotals getTotals() { return totals; }
public EventSeatingTableActionsResult setTotals(EventSeatingTableActionsTotals value) { this.totals = value; return this; }
public Long getElapsedMs() { return elapsedMs; }
public EventSeatingTableActionsResult setElapsedMs(Long value) { this.elapsedMs = value; return this; }
}
public static class EventSeatingTableActionResult
{
public Integer sectionId = null;
public String sectionName = null;
public Boolean isTable = null;
public Boolean ok = null;
public String error = null;
public ArrayList<Integer> blockedSeatIds = null;
public ArrayList<Integer> unblockedSeatIds = null;
public ArrayList<Integer> skippedSeatIds = null;
public ArrayList<Integer> alreadyBlockedSeatIds = null;
public Boolean isHidden = null;
public Boolean showSeats = null;
public String note = null;
public String viewType = null;
public Integer getSectionId() { return sectionId; }
public EventSeatingTableActionResult setSectionId(Integer value) { this.sectionId = value; return this; }
public String getSectionName() { return sectionName; }
public EventSeatingTableActionResult setSectionName(String value) { this.sectionName = value; return this; }
public Boolean getIsTable() { return isTable; }
public EventSeatingTableActionResult setIsTable(Boolean value) { this.isTable = value; return this; }
public Boolean isOk() { return ok; }
public EventSeatingTableActionResult setOk(Boolean value) { this.ok = value; return this; }
public String getError() { return error; }
public EventSeatingTableActionResult setError(String value) { this.error = value; return this; }
public ArrayList<Integer> getBlockedSeatIds() { return blockedSeatIds; }
public EventSeatingTableActionResult setBlockedSeatIds(ArrayList<Integer> value) { this.blockedSeatIds = value; return this; }
public ArrayList<Integer> getUnblockedSeatIds() { return unblockedSeatIds; }
public EventSeatingTableActionResult setUnblockedSeatIds(ArrayList<Integer> value) { this.unblockedSeatIds = value; return this; }
public ArrayList<Integer> getSkippedSeatIds() { return skippedSeatIds; }
public EventSeatingTableActionResult setSkippedSeatIds(ArrayList<Integer> value) { this.skippedSeatIds = value; return this; }
public ArrayList<Integer> getAlreadyBlockedSeatIds() { return alreadyBlockedSeatIds; }
public EventSeatingTableActionResult setAlreadyBlockedSeatIds(ArrayList<Integer> value) { this.alreadyBlockedSeatIds = value; return this; }
public Boolean getIsHidden() { return isHidden; }
public EventSeatingTableActionResult setIsHidden(Boolean value) { this.isHidden = value; return this; }
public Boolean isShowSeats() { return showSeats; }
public EventSeatingTableActionResult setShowSeats(Boolean value) { this.showSeats = value; return this; }
public String getNote() { return note; }
public EventSeatingTableActionResult setNote(String value) { this.note = value; return this; }
public String getViewType() { return viewType; }
public EventSeatingTableActionResult setViewType(String value) { this.viewType = value; return this; }
}
public static class EventSeatingTableActionsTotals
{
public Integer blocked = null;
public Integer unblocked = null;
public Integer skipped = null;
public Integer sections = null;
public Integer failed = null;
public Integer getBlocked() { return blocked; }
public EventSeatingTableActionsTotals setBlocked(Integer value) { this.blocked = value; return this; }
public Integer getUnblocked() { return unblocked; }
public EventSeatingTableActionsTotals setUnblocked(Integer value) { this.unblocked = value; return this; }
public Integer getSkipped() { return skipped; }
public EventSeatingTableActionsTotals setSkipped(Integer value) { this.skipped = value; return this; }
public Integer getSections() { return sections; }
public EventSeatingTableActionsTotals setSections(Integer value) { this.sections = value; return this; }
public Integer getFailed() { return failed; }
public EventSeatingTableActionsTotals setFailed(Integer value) { this.failed = value; return this; }
}
}
Java EventSeatingTableActionsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/json
Content-Type: application/json
Content-Length: length
{"eventId":0,"sectionIds":[0],"action":"String","note":"String","blockedNote":"String","tablesOnly":false}
HTTP/1.1 200 OK
Content-Type: application/json
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}