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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EventsWithLocationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Status>
    <StatusCode>0</StatusCode>
    <StatusDetails>String</StatusDetails>
    <StatusMessage>String</StatusMessage>
  </Status>
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
    <d2p1:EventWithLocation>
      <d2p1:AddressLine>String</d2p1:AddressLine>
      <d2p1:AddressName>String</d2p1:AddressName>
      <d2p1:City>String</d2p1:City>
      <d2p1:CountryCode>String</d2p1:CountryCode>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:EndOfEvent>0001-01-01T00:00:00</d2p1:EndOfEvent>
      <d2p1:EventActive>false</d2p1:EventActive>
      <d2p1:EventLocationName>String</d2p1:EventLocationName>
      <d2p1:EventSeriesActive>false</d2p1:EventSeriesActive>
      <d2p1:ID>0</d2p1:ID>
      <d2p1:Latitude>0</d2p1:Latitude>
      <d2p1:Longitude>0</d2p1:Longitude>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:PostPonedNoDate>false</d2p1:PostPonedNoDate>
      <d2p1:TimeOfEvent>0001-01-01T00:00:00</d2p1:TimeOfEvent>
      <d2p1:Zip>String</d2p1:Zip>
    </d2p1:EventWithLocation>
  </data>
</EventsWithLocationResult>