| GET | /ticketHold/availability |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class TicketHoldAvailabilityRequest
{
public Integer eventId = null;
public Integer getEventId() { return eventId; }
public TicketHoldAvailabilityRequest setEventId(Integer value) { this.eventId = value; return this; }
}
public static class TicketHoldAvailabilityResult
{
public Integer statusCode = null;
public String message = null;
public ArrayList<CategoryAvailability> perCategory = null;
public Boolean scarcity = null;
public Integer getStatusCode() { return statusCode; }
public TicketHoldAvailabilityResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public TicketHoldAvailabilityResult setMessage(String value) { this.message = value; return this; }
public ArrayList<CategoryAvailability> getPerCategory() { return perCategory; }
public TicketHoldAvailabilityResult setPerCategory(ArrayList<CategoryAvailability> value) { this.perCategory = value; return this; }
public Boolean isScarcity() { return scarcity; }
public TicketHoldAvailabilityResult setScarcity(Boolean value) { this.scarcity = value; return this; }
}
public static class CategoryAvailability
{
public Integer eventSeriesTicketType = null;
public Integer eventSeriesOwnerTicketType = null;
public Integer maxTickets = null;
public Integer remaining = null;
public Integer getEventSeriesTicketType() { return eventSeriesTicketType; }
public CategoryAvailability setEventSeriesTicketType(Integer value) { this.eventSeriesTicketType = value; return this; }
public Integer getEventSeriesOwnerTicketType() { return eventSeriesOwnerTicketType; }
public CategoryAvailability setEventSeriesOwnerTicketType(Integer value) { this.eventSeriesOwnerTicketType = value; return this; }
public Integer getMaxTickets() { return maxTickets; }
public CategoryAvailability setMaxTickets(Integer value) { this.maxTickets = value; return this; }
public Integer getRemaining() { return remaining; }
public CategoryAvailability setRemaining(Integer value) { this.remaining = value; return this; }
}
}
Java TicketHoldAvailabilityRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /ticketHold/availability HTTP/1.1 Host: stubbur-app.azurewebsites.net Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<TicketHoldAvailabilityResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Message>String</Message>
<PerCategory>
<CategoryAvailability>
<EventSeriesOwnerTicketType>0</EventSeriesOwnerTicketType>
<EventSeriesTicketType>0</EventSeriesTicketType>
<MaxTickets>0</MaxTickets>
<Remaining>0</Remaining>
</CategoryAvailability>
</PerCategory>
<Scarcity>false</Scarcity>
<StatusCode>0</StatusCode>
</TicketHoldAvailabilityResult>