| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| GET | /TicketTypeSaleWindow/{Id} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class TicketTypeSaleWindowGetRequest
{
public Integer id = null;
public Integer ownerId = null;
public Integer getId() { return id; }
public TicketTypeSaleWindowGetRequest setId(Integer value) { this.id = value; return this; }
public Integer getOwnerId() { return ownerId; }
public TicketTypeSaleWindowGetRequest setOwnerId(Integer value) { this.ownerId = value; return this; }
}
public static class TicketTypeSaleWindowResult
{
public TicketTypeSaleWindowInfo item = null;
public Integer statusCode = null;
public String message = null;
public TicketTypeSaleWindowInfo getItem() { return item; }
public TicketTypeSaleWindowResult setItem(TicketTypeSaleWindowInfo value) { this.item = value; return this; }
public Integer getStatusCode() { return statusCode; }
public TicketTypeSaleWindowResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public TicketTypeSaleWindowResult setMessage(String value) { this.message = value; return this; }
}
public static class TicketTypeSaleWindowInfo
{
public TicketTypeSaleWindow window = null;
public String ticketTypeName = null;
public Integer ownerId = null;
public String saleStatus = null;
public TicketTypeSaleWindow getWindow() { return window; }
public TicketTypeSaleWindowInfo setWindow(TicketTypeSaleWindow value) { this.window = value; return this; }
public String getTicketTypeName() { return ticketTypeName; }
public TicketTypeSaleWindowInfo setTicketTypeName(String value) { this.ticketTypeName = value; return this; }
public Integer getOwnerId() { return ownerId; }
public TicketTypeSaleWindowInfo setOwnerId(Integer value) { this.ownerId = value; return this; }
public String getSaleStatus() { return saleStatus; }
public TicketTypeSaleWindowInfo setSaleStatus(String value) { this.saleStatus = value; return this; }
}
public static class TicketTypeSaleWindow
{
public Integer id = null;
public Integer ticketTypeId = null;
public Boolean isOwnerTicketType = null;
public Integer eventId = null;
public Date saleStartsUTC = null;
public Date saleEndsUTC = null;
public Boolean hideUntilOpen = null;
public Boolean isActive = null;
public Integer createdByUserId = null;
public Date timestampCreated = null;
public Date timestampLastChanged = null;
public Integer getId() { return id; }
public TicketTypeSaleWindow setId(Integer value) { this.id = value; return this; }
public Integer getTicketTypeId() { return ticketTypeId; }
public TicketTypeSaleWindow setTicketTypeId(Integer value) { this.ticketTypeId = value; return this; }
public Boolean getIsOwnerTicketType() { return isOwnerTicketType; }
public TicketTypeSaleWindow setIsOwnerTicketType(Boolean value) { this.isOwnerTicketType = value; return this; }
public Integer getEventId() { return eventId; }
public TicketTypeSaleWindow setEventId(Integer value) { this.eventId = value; return this; }
public Date getSaleStartsUTC() { return saleStartsUTC; }
public TicketTypeSaleWindow setSaleStartsUTC(Date value) { this.saleStartsUTC = value; return this; }
public Date getSaleEndsUTC() { return saleEndsUTC; }
public TicketTypeSaleWindow setSaleEndsUTC(Date value) { this.saleEndsUTC = value; return this; }
public Boolean isHideUntilOpen() { return hideUntilOpen; }
public TicketTypeSaleWindow setHideUntilOpen(Boolean value) { this.hideUntilOpen = value; return this; }
public Boolean getIsActive() { return isActive; }
public TicketTypeSaleWindow setIsActive(Boolean value) { this.isActive = value; return this; }
public Integer getCreatedByUserId() { return createdByUserId; }
public TicketTypeSaleWindow setCreatedByUserId(Integer value) { this.createdByUserId = value; return this; }
public Date getTimestampCreated() { return timestampCreated; }
public TicketTypeSaleWindow setTimestampCreated(Date value) { this.timestampCreated = value; return this; }
public Date getTimestampLastChanged() { return timestampLastChanged; }
public TicketTypeSaleWindow setTimestampLastChanged(Date value) { this.timestampLastChanged = value; return this; }
}
}
Java TicketTypeSaleWindowGetRequest 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 /TicketTypeSaleWindow/{Id} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<TicketTypeSaleWindowResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Item>
<OwnerId>0</OwnerId>
<SaleStatus>String</SaleStatus>
<TicketTypeName>String</TicketTypeName>
<Window xmlns:d3p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
<d3p1:CreatedByUserId>0</d3p1:CreatedByUserId>
<d3p1:EventId>0</d3p1:EventId>
<d3p1:HideUntilOpen>false</d3p1:HideUntilOpen>
<d3p1:ID>0</d3p1:ID>
<d3p1:IsActive>false</d3p1:IsActive>
<d3p1:IsOwnerTicketType>false</d3p1:IsOwnerTicketType>
<d3p1:SaleEndsUTC>0001-01-01T00:00:00</d3p1:SaleEndsUTC>
<d3p1:SaleStartsUTC>0001-01-01T00:00:00</d3p1:SaleStartsUTC>
<d3p1:TicketTypeId>0</d3p1:TicketTypeId>
<d3p1:TimestampCreated>0001-01-01T00:00:00</d3p1:TimestampCreated>
<d3p1:TimestampLastChanged>0001-01-01T00:00:00</d3p1:TimestampLastChanged>
</Window>
</Item>
<Message>String</Message>
<StatusCode>0</StatusCode>
</TicketTypeSaleWindowResult>