TicketUserServices

<back to all web services

TicketTypeSaleWindowSearchRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
POST/TicketTypeSaleWindow/Search
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class TicketTypeSaleWindowSearchRequest
    {
        public Integer ownerId = null;
        public Integer ticketTypeId = null;
        public Integer eventId = null;
        public Boolean isActive = null;
        public Boolean includeCurrentStatus = null;
        
        public Integer getOwnerId() { return ownerId; }
        public TicketTypeSaleWindowSearchRequest setOwnerId(Integer value) { this.ownerId = value; return this; }
        public Integer getTicketTypeId() { return ticketTypeId; }
        public TicketTypeSaleWindowSearchRequest setTicketTypeId(Integer value) { this.ticketTypeId = value; return this; }
        public Integer getEventId() { return eventId; }
        public TicketTypeSaleWindowSearchRequest setEventId(Integer value) { this.eventId = value; return this; }
        public Boolean getIsActive() { return isActive; }
        public TicketTypeSaleWindowSearchRequest setIsActive(Boolean value) { this.isActive = value; return this; }
        public Boolean isIncludeCurrentStatus() { return includeCurrentStatus; }
        public TicketTypeSaleWindowSearchRequest setIncludeCurrentStatus(Boolean value) { this.includeCurrentStatus = value; return this; }
    }

    public static class TicketTypeSaleWindowsResult
    {
        public ArrayList<TicketTypeSaleWindowInfo> items = null;
        public Integer statusCode = null;
        public String message = null;
        
        public ArrayList<TicketTypeSaleWindowInfo> getItems() { return items; }
        public TicketTypeSaleWindowsResult setItems(ArrayList<TicketTypeSaleWindowInfo> value) { this.items = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public TicketTypeSaleWindowsResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public TicketTypeSaleWindowsResult 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 TicketTypeSaleWindowSearchRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /TicketTypeSaleWindow/Search HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ownerId: 0,
	ticketTypeId: 0,
	eventId: 0,
	isActive: False,
	includeCurrentStatus: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	items: 
	[
		{
			window: 
			{
				id: 0,
				ticketTypeId: 0,
				isOwnerTicketType: False,
				eventId: 0,
				saleStartsUTC: 0001-01-01,
				saleEndsUTC: 0001-01-01,
				hideUntilOpen: False,
				isActive: False,
				createdByUserId: 0,
				timestampCreated: 0001-01-01,
				timestampLastChanged: 0001-01-01
			},
			ticketTypeName: String,
			ownerId: 0,
			saleStatus: String
		}
	],
	statusCode: 0,
	message: String
}