TicketUserServices

<back to all web services

EventSeatingFindAndReserveRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
POST/EventSeatingFindAndReserveFind best available seats and reserve them atomically
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class EventSeatingFindAndReserveRequest
    {
        public Integer eventId = null;
        public Integer quantity = null;
        public Integer sectionId = null;
        public String reservationTokenId = null;
        public String phoneVerificationNumber = null;
        public Integer skipIndex = null;
        public String deviceId = null;
        public Long requestUnixUTCTimeStamp = null;
        public RequestSignature signature = null;
        
        public Integer getEventId() { return eventId; }
        public EventSeatingFindAndReserveRequest setEventId(Integer value) { this.eventId = value; return this; }
        public Integer getQuantity() { return quantity; }
        public EventSeatingFindAndReserveRequest setQuantity(Integer value) { this.quantity = value; return this; }
        public Integer getSectionId() { return sectionId; }
        public EventSeatingFindAndReserveRequest setSectionId(Integer value) { this.sectionId = value; return this; }
        public String getReservationTokenId() { return reservationTokenId; }
        public EventSeatingFindAndReserveRequest setReservationTokenId(String value) { this.reservationTokenId = value; return this; }
        public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
        public EventSeatingFindAndReserveRequest setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
        public Integer getSkipIndex() { return skipIndex; }
        public EventSeatingFindAndReserveRequest setSkipIndex(Integer value) { this.skipIndex = value; return this; }
        public String getDeviceId() { return deviceId; }
        public EventSeatingFindAndReserveRequest setDeviceId(String value) { this.deviceId = value; return this; }
        public Long getRequestUnixUTCTimeStamp() { return requestUnixUTCTimeStamp; }
        public EventSeatingFindAndReserveRequest setRequestUnixUTCTimeStamp(Long value) { this.requestUnixUTCTimeStamp = value; return this; }
        public RequestSignature getSignature() { return signature; }
        public EventSeatingFindAndReserveRequest setSignature(RequestSignature value) { this.signature = value; return this; }
    }

    public static class RequestSignature
    {
        public String systemId = null;
        public String systemSecret = null;
        public String signature = null;
        
        public String getSystemId() { return systemId; }
        public RequestSignature setSystemId(String value) { this.systemId = value; return this; }
        public String getSystemSecret() { return systemSecret; }
        public RequestSignature setSystemSecret(String value) { this.systemSecret = value; return this; }
        public String getSignature() { return signature; }
        public RequestSignature setSignature(String value) { this.signature = value; return this; }
    }

    public static class EventSeatingFindAndReserveResult
    {
        public Integer statusCode = null;
        public String message = null;
        public String reservationTokenId = null;
        public Integer totalCandidates = null;
        public ArrayList<FoundSeat> seats = null;
        
        public Integer getStatusCode() { return statusCode; }
        public EventSeatingFindAndReserveResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public EventSeatingFindAndReserveResult setMessage(String value) { this.message = value; return this; }
        public String getReservationTokenId() { return reservationTokenId; }
        public EventSeatingFindAndReserveResult setReservationTokenId(String value) { this.reservationTokenId = value; return this; }
        public Integer getTotalCandidates() { return totalCandidates; }
        public EventSeatingFindAndReserveResult setTotalCandidates(Integer value) { this.totalCandidates = value; return this; }
        public ArrayList<FoundSeat> getSeats() { return seats; }
        public EventSeatingFindAndReserveResult setSeats(ArrayList<FoundSeat> value) { this.seats = value; return this; }
    }

    public static class FoundSeat
    {
        public Integer id = null;
        public String name = null;
        public String rowName = null;
        public String sectionName = null;
        public Integer sectionId = null;
        
        public Integer getId() { return id; }
        public FoundSeat setId(Integer value) { this.id = value; return this; }
        public String getName() { return name; }
        public FoundSeat setName(String value) { this.name = value; return this; }
        public String getRowName() { return rowName; }
        public FoundSeat setRowName(String value) { this.rowName = value; return this; }
        public String getSectionName() { return sectionName; }
        public FoundSeat setSectionName(String value) { this.sectionName = value; return this; }
        public Integer getSectionId() { return sectionId; }
        public FoundSeat setSectionId(Integer value) { this.sectionId = value; return this; }
    }

}

Java EventSeatingFindAndReserveRequest 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 /EventSeatingFindAndReserve HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<EventSeatingFindAndReserveRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <DeviceId>String</DeviceId>
  <EventId>0</EventId>
  <PhoneVerificationNumber>String</PhoneVerificationNumber>
  <Quantity>0</Quantity>
  <RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
  <ReservationTokenId>String</ReservationTokenId>
  <SectionId>0</SectionId>
  <Signature>
    <Signature>String</Signature>
    <SystemId>String</SystemId>
    <SystemSecret>String</SystemSecret>
  </Signature>
  <SkipIndex>0</SkipIndex>
</EventSeatingFindAndReserveRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EventSeatingFindAndReserveResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Message>String</Message>
  <ReservationTokenId>String</ReservationTokenId>
  <Seats>
    <FoundSeat>
      <Id>0</Id>
      <Name>String</Name>
      <RowName>String</RowName>
      <SectionId>0</SectionId>
      <SectionName>String</SectionName>
    </FoundSeat>
  </Seats>
  <StatusCode>0</StatusCode>
  <TotalCandidates>0</TotalCandidates>
</EventSeatingFindAndReserveResult>