TicketUserServices

<back to all web services

EventsWithLocationRequest

Requires Authentication
Requires the role:3rdPartySearchRequired permission:EventsSearch
The following routes are available for this service:
GET/EventsWithLocation
POST/GET/EventsWithLocation/MaxDays/{MaxDays}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class EventsWithLocationRequest
    {
        public Integer maxDays = null;
        
        public Integer getMaxDays() { return maxDays; }
        public EventsWithLocationRequest setMaxDays(Integer value) { this.maxDays = value; return this; }
    }

    public static class EventsWithLocationResult
    {
        public Status status = null;
        public ArrayList<EventWithLocation> data = null;
        
        public Status getStatus() { return status; }
        public EventsWithLocationResult setStatus(Status value) { this.status = value; return this; }
        public ArrayList<EventWithLocation> getData() { return data; }
        public EventsWithLocationResult setData(ArrayList<EventWithLocation> value) { this.data = value; return this; }
    }

    public static class Status
    {
        public Integer statusCode = null;
        public String statusMessage = null;
        public String statusDetails = null;
        
        public Integer getStatusCode() { return statusCode; }
        public Status setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getStatusMessage() { return statusMessage; }
        public Status setStatusMessage(String value) { this.statusMessage = value; return this; }
        public String getStatusDetails() { return statusDetails; }
        public Status setStatusDetails(String value) { this.statusDetails = value; return this; }
    }

    public static class EventWithLocation
    {
        public Integer id = null;
        public String name = null;
        public String description = null;
        public Date timeOfEvent = null;
        public Boolean eventActive = null;
        public Boolean eventSeriesActive = null;
        public String eventLocationName = null;
        public BigDecimal latitude = null;
        public BigDecimal longitude = null;
        public String addressName = null;
        public String addressLine = null;
        public String zip = null;
        public String city = null;
        public String countryCode = null;
        public Boolean postPonedNoDate = null;
        public Date endOfEvent = null;
        
        public Integer getId() { return id; }
        public EventWithLocation setId(Integer value) { this.id = value; return this; }
        public String getName() { return name; }
        public EventWithLocation setName(String value) { this.name = value; return this; }
        public String getDescription() { return description; }
        public EventWithLocation setDescription(String value) { this.description = value; return this; }
        public Date getTimeOfEvent() { return timeOfEvent; }
        public EventWithLocation setTimeOfEvent(Date value) { this.timeOfEvent = value; return this; }
        public Boolean isEventActive() { return eventActive; }
        public EventWithLocation setEventActive(Boolean value) { this.eventActive = value; return this; }
        public Boolean isEventSeriesActive() { return eventSeriesActive; }
        public EventWithLocation setEventSeriesActive(Boolean value) { this.eventSeriesActive = value; return this; }
        public String getEventLocationName() { return eventLocationName; }
        public EventWithLocation setEventLocationName(String value) { this.eventLocationName = value; return this; }
        public BigDecimal getLatitude() { return latitude; }
        public EventWithLocation setLatitude(BigDecimal value) { this.latitude = value; return this; }
        public BigDecimal getLongitude() { return longitude; }
        public EventWithLocation setLongitude(BigDecimal value) { this.longitude = value; return this; }
        public String getAddressName() { return addressName; }
        public EventWithLocation setAddressName(String value) { this.addressName = value; return this; }
        public String getAddressLine() { return addressLine; }
        public EventWithLocation setAddressLine(String value) { this.addressLine = value; return this; }
        public String getZip() { return zip; }
        public EventWithLocation setZip(String value) { this.zip = value; return this; }
        public String getCity() { return city; }
        public EventWithLocation setCity(String value) { this.city = value; return this; }
        public String getCountryCode() { return countryCode; }
        public EventWithLocation setCountryCode(String value) { this.countryCode = value; return this; }
        public Boolean isPostPonedNoDate() { return postPonedNoDate; }
        public EventWithLocation setPostPonedNoDate(Boolean value) { this.postPonedNoDate = value; return this; }
        public Date getEndOfEvent() { return endOfEvent; }
        public EventWithLocation setEndOfEvent(Date value) { this.endOfEvent = value; return this; }
    }

}

Java EventsWithLocationRequest 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 /EventsWithLocation HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	status: 
	{
		statusCode: 0,
		statusMessage: String,
		statusDetails: String
	},
	data: 
	[
		{
			id: 0,
			name: String,
			description: String,
			timeOfEvent: 0001-01-01,
			eventActive: False,
			eventSeriesActive: False,
			eventLocationName: String,
			latitude: 0,
			longitude: 0,
			addressName: String,
			addressLine: String,
			zip: String,
			city: String,
			countryCode: String,
			postPonedNoDate: False,
			endOfEvent: 0001-01-01
		}
	]
}