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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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}