TicketUserServices

<back to all web services

EventSendGuardRequest

The following routes are available for this service:
GET/EventSendGuard/{EventId}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class EventSendGuardRequest
    {
        public Integer eventId = null;
        public Date assumedTimeUtc = null;
        public Integer changeLookbackHours = null;
        
        public Integer getEventId() { return eventId; }
        public EventSendGuardRequest setEventId(Integer value) { this.eventId = value; return this; }
        public Date getAssumedTimeUtc() { return assumedTimeUtc; }
        public EventSendGuardRequest setAssumedTimeUtc(Date value) { this.assumedTimeUtc = value; return this; }
        public Integer getChangeLookbackHours() { return changeLookbackHours; }
        public EventSendGuardRequest setChangeLookbackHours(Integer value) { this.changeLookbackHours = value; return this; }
    }

    public static class EventSendGuardResult
    {
        public Integer eventId = null;
        public String eventName = null;
        public Boolean sendable = null;
        public ArrayList<String> reasons = null;
        public Date currentTimeOfEventUtc = null;
        public Date assumedTimeUtc = null;
        public Boolean timeChangedSincePlanned = null;
        public Boolean postponedNoDate = null;
        public Boolean eventActive = null;
        public Boolean hideEvent = null;
        public Boolean alreadyStarted = null;
        public Date lastChangeAt = null;
        public ArrayList<EventSendGuardChange> recentChanges = null;
        public Integer statusCode = null;
        public String message = null;
        
        public Integer getEventId() { return eventId; }
        public EventSendGuardResult setEventId(Integer value) { this.eventId = value; return this; }
        public String getEventName() { return eventName; }
        public EventSendGuardResult setEventName(String value) { this.eventName = value; return this; }
        public Boolean isSendable() { return sendable; }
        public EventSendGuardResult setSendable(Boolean value) { this.sendable = value; return this; }
        public ArrayList<String> getReasons() { return reasons; }
        public EventSendGuardResult setReasons(ArrayList<String> value) { this.reasons = value; return this; }
        public Date getCurrentTimeOfEventUtc() { return currentTimeOfEventUtc; }
        public EventSendGuardResult setCurrentTimeOfEventUtc(Date value) { this.currentTimeOfEventUtc = value; return this; }
        public Date getAssumedTimeUtc() { return assumedTimeUtc; }
        public EventSendGuardResult setAssumedTimeUtc(Date value) { this.assumedTimeUtc = value; return this; }
        public Boolean isTimeChangedSincePlanned() { return timeChangedSincePlanned; }
        public EventSendGuardResult setTimeChangedSincePlanned(Boolean value) { this.timeChangedSincePlanned = value; return this; }
        public Boolean isPostponedNoDate() { return postponedNoDate; }
        public EventSendGuardResult setPostponedNoDate(Boolean value) { this.postponedNoDate = value; return this; }
        public Boolean isEventActive() { return eventActive; }
        public EventSendGuardResult setEventActive(Boolean value) { this.eventActive = value; return this; }
        public Boolean isHideEvent() { return hideEvent; }
        public EventSendGuardResult setHideEvent(Boolean value) { this.hideEvent = value; return this; }
        public Boolean isAlreadyStarted() { return alreadyStarted; }
        public EventSendGuardResult setAlreadyStarted(Boolean value) { this.alreadyStarted = value; return this; }
        public Date getLastChangeAt() { return lastChangeAt; }
        public EventSendGuardResult setLastChangeAt(Date value) { this.lastChangeAt = value; return this; }
        public ArrayList<EventSendGuardChange> getRecentChanges() { return recentChanges; }
        public EventSendGuardResult setRecentChanges(ArrayList<EventSendGuardChange> value) { this.recentChanges = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public EventSendGuardResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public EventSendGuardResult setMessage(String value) { this.message = value; return this; }
    }

    public static class EventSendGuardChange
    {
        public Date changedAt = null;
        public Boolean timeHasChanged = null;
        public Boolean locationHasChanged = null;
        public Date oldTimeOfEvent = null;
        public Date newTimeOfEvent = null;
        public Boolean alertHandled = null;
        
        public Date getChangedAt() { return changedAt; }
        public EventSendGuardChange setChangedAt(Date value) { this.changedAt = value; return this; }
        public Boolean isTimeHasChanged() { return timeHasChanged; }
        public EventSendGuardChange setTimeHasChanged(Boolean value) { this.timeHasChanged = value; return this; }
        public Boolean isLocationHasChanged() { return locationHasChanged; }
        public EventSendGuardChange setLocationHasChanged(Boolean value) { this.locationHasChanged = value; return this; }
        public Date getOldTimeOfEvent() { return oldTimeOfEvent; }
        public EventSendGuardChange setOldTimeOfEvent(Date value) { this.oldTimeOfEvent = value; return this; }
        public Date getNewTimeOfEvent() { return newTimeOfEvent; }
        public EventSendGuardChange setNewTimeOfEvent(Date value) { this.newTimeOfEvent = value; return this; }
        public Boolean isAlertHandled() { return alertHandled; }
        public EventSendGuardChange setAlertHandled(Boolean value) { this.alertHandled = value; return this; }
    }

}

Java EventSendGuardRequest 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 /EventSendGuard/{EventId} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EventSendGuardResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <AlreadyStarted>false</AlreadyStarted>
  <AssumedTimeUtc>0001-01-01T00:00:00</AssumedTimeUtc>
  <CurrentTimeOfEventUtc>0001-01-01T00:00:00</CurrentTimeOfEventUtc>
  <EventActive>false</EventActive>
  <EventId>0</EventId>
  <EventName>String</EventName>
  <HideEvent>false</HideEvent>
  <LastChangeAt>0001-01-01T00:00:00</LastChangeAt>
  <Message>String</Message>
  <PostponedNoDate>false</PostponedNoDate>
  <Reasons xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Reasons>
  <RecentChanges>
    <EventSendGuardChange>
      <AlertHandled>false</AlertHandled>
      <ChangedAt>0001-01-01T00:00:00</ChangedAt>
      <LocationHasChanged>false</LocationHasChanged>
      <NewTimeOfEvent>0001-01-01T00:00:00</NewTimeOfEvent>
      <OldTimeOfEvent>0001-01-01T00:00:00</OldTimeOfEvent>
      <TimeHasChanged>false</TimeHasChanged>
    </EventSendGuardChange>
  </RecentChanges>
  <Sendable>false</Sendable>
  <StatusCode>0</StatusCode>
  <TimeChangedSincePlanned>false</TimeChangedSincePlanned>
</EventSendGuardResult>