| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| POST | /EventSeatingFindAndReserve | Find 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 .csv suffix or ?format=csv
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: text/csv
Content-Type: text/csv
Content-Length: length
{"eventId":0,"quantity":0,"sectionId":0,"reservationTokenId":"String","phoneVerificationNumber":"String","skipIndex":0,"deviceId":"String","requestUnixUTCTimeStamp":0,"signature":{"systemId":"String","systemSecret":"String","signature":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"statusCode":0,"message":"String","reservationTokenId":"String","totalCandidates":0,"seats":[{"id":0,"name":"String","rowName":"String","sectionName":"String","sectionId":0}]}