TicketUserServices

<back to all web services

EventGetRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires any of the permissions:ReadData, Tickets.Add
The following routes are available for this service:
GET/Event/{Id}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class EventGetRequest
    {
        public Integer id = null;
        
        public Integer getId() { return id; }
        public EventGetRequest setId(Integer value) { this.id = value; return this; }
    }

    public static class EventResult
    {
        public Event item = null;
        public Integer statusCode = null;
        public String message = null;
        
        public Event getItem() { return item; }
        public EventResult setItem(Event value) { this.item = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public EventResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public EventResult setMessage(String value) { this.message = value; return this; }
    }

    public static class Event
    {
        public Integer id = null;
        public String name = null;
        public String description = null;
        public String externalReference = null;
        public Date timeOfEvent = null;
        public Integer eventLocationId = null;
        public Integer eventSeriesId = null;
        public Integer eventOwnerId = null;
        public Boolean eventActive = null;
        public String defaultValues = null;
        public String externalReferenceType = null;
        public Boolean postponedNoDate = null;
        public String awayTeamExternalId = null;
        public String sportGenderId = null;
        public Boolean saleIsActive = null;
        public String seatingImageUrl = null;
        public Integer venueId = null;
        public Integer awayTeamOwnerId = null;
        public String detailedDescription = null;
        public String imageUrl = null;
        public String directAccessCode = null;
        public String imageUrl2 = null;
        public Boolean hideEvent = null;
        public Boolean ownerCardsNotAllowed = null;
        public Date endOfEvent = null;
        public Date endOfEventUTC = null;
        public String timeZone = null;
        public Date timeOfEventUTC = null;
        
        public Integer getId() { return id; }
        public Event setId(Integer value) { this.id = value; return this; }
        public String getName() { return name; }
        public Event setName(String value) { this.name = value; return this; }
        public String getDescription() { return description; }
        public Event setDescription(String value) { this.description = value; return this; }
        public String getExternalReference() { return externalReference; }
        public Event setExternalReference(String value) { this.externalReference = value; return this; }
        public Date getTimeOfEvent() { return timeOfEvent; }
        public Event setTimeOfEvent(Date value) { this.timeOfEvent = value; return this; }
        public Integer getEventLocationId() { return eventLocationId; }
        public Event setEventLocationId(Integer value) { this.eventLocationId = value; return this; }
        public Integer getEventSeriesId() { return eventSeriesId; }
        public Event setEventSeriesId(Integer value) { this.eventSeriesId = value; return this; }
        public Integer getEventOwnerId() { return eventOwnerId; }
        public Event setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
        public Boolean isEventActive() { return eventActive; }
        public Event setEventActive(Boolean value) { this.eventActive = value; return this; }
        public String getDefaultValues() { return defaultValues; }
        public Event setDefaultValues(String value) { this.defaultValues = value; return this; }
        public String getExternalReferenceType() { return externalReferenceType; }
        public Event setExternalReferenceType(String value) { this.externalReferenceType = value; return this; }
        public Boolean isPostponedNoDate() { return postponedNoDate; }
        public Event setPostponedNoDate(Boolean value) { this.postponedNoDate = value; return this; }
        public String getAwayTeamExternalId() { return awayTeamExternalId; }
        public Event setAwayTeamExternalId(String value) { this.awayTeamExternalId = value; return this; }
        public String getSportGenderId() { return sportGenderId; }
        public Event setSportGenderId(String value) { this.sportGenderId = value; return this; }
        public Boolean isSaleIsActive() { return saleIsActive; }
        public Event setSaleIsActive(Boolean value) { this.saleIsActive = value; return this; }
        public String getSeatingImageUrl() { return seatingImageUrl; }
        public Event setSeatingImageUrl(String value) { this.seatingImageUrl = value; return this; }
        public Integer getVenueId() { return venueId; }
        public Event setVenueId(Integer value) { this.venueId = value; return this; }
        public Integer getAwayTeamOwnerId() { return awayTeamOwnerId; }
        public Event setAwayTeamOwnerId(Integer value) { this.awayTeamOwnerId = value; return this; }
        public String getDetailedDescription() { return detailedDescription; }
        public Event setDetailedDescription(String value) { this.detailedDescription = value; return this; }
        public String getImageUrl() { return imageUrl; }
        public Event setImageUrl(String value) { this.imageUrl = value; return this; }
        public String getDirectAccessCode() { return directAccessCode; }
        public Event setDirectAccessCode(String value) { this.directAccessCode = value; return this; }
        public String getImageUrl2() { return imageUrl2; }
        public Event setImageUrl2(String value) { this.imageUrl2 = value; return this; }
        public Boolean isHideEvent() { return hideEvent; }
        public Event setHideEvent(Boolean value) { this.hideEvent = value; return this; }
        public Boolean isOwnerCardsNotAllowed() { return ownerCardsNotAllowed; }
        public Event setOwnerCardsNotAllowed(Boolean value) { this.ownerCardsNotAllowed = value; return this; }
        public Date getEndOfEvent() { return endOfEvent; }
        public Event setEndOfEvent(Date value) { this.endOfEvent = value; return this; }
        public Date getEndOfEventUTC() { return endOfEventUTC; }
        public Event setEndOfEventUTC(Date value) { this.endOfEventUTC = value; return this; }
        public String getTimeZone() { return timeZone; }
        public Event setTimeZone(String value) { this.timeZone = value; return this; }
        public Date getTimeOfEventUTC() { return timeOfEventUTC; }
        public Event setTimeOfEventUTC(Date value) { this.timeOfEventUTC = value; return this; }
    }

}

Java EventGetRequest 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.

GET /Event/{Id} HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	item: 
	{
		id: 0,
		name: String,
		description: String,
		externalReference: String,
		timeOfEvent: 0001-01-01,
		eventLocationId: 0,
		eventSeriesId: 0,
		eventOwnerId: 0,
		eventActive: False,
		defaultValues: String,
		externalReferenceType: String,
		postponedNoDate: False,
		awayTeamExternalId: String,
		sportGenderId: String,
		saleIsActive: False,
		seatingImageUrl: String,
		venueId: 0,
		awayTeamOwnerId: 0,
		detailedDescription: String,
		imageUrl: String,
		directAccessCode: String,
		imageUrl2: String,
		hideEvent: False,
		ownerCardsNotAllowed: False,
		endOfEvent: 0001-01-01,
		endOfEventUTC: 0001-01-01,
		timeZone: String,
		timeOfEventUTC: 0001-01-01
	},
	statusCode: 0,
	message: String
}