TicketUserServices

<back to all web services

EventSendGuardBatchRequest

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

public class dtos
{

    public static class EventSendGuardBatchRequest
    {
        public ArrayList<Integer> eventIds = null;
        public Integer changeLookbackHours = null;
        
        public ArrayList<Integer> getEventIds() { return eventIds; }
        public EventSendGuardBatchRequest setEventIds(ArrayList<Integer> value) { this.eventIds = value; return this; }
        public Integer getChangeLookbackHours() { return changeLookbackHours; }
        public EventSendGuardBatchRequest setChangeLookbackHours(Integer value) { this.changeLookbackHours = value; return this; }
    }

    public static class EventSendGuardBatchResult
    {
        public ArrayList<EventSendGuardResult> items = null;
        public Integer sendableCount = null;
        public Integer blockedCount = null;
        public Integer statusCode = null;
        public String message = null;
        
        public ArrayList<EventSendGuardResult> getItems() { return items; }
        public EventSendGuardBatchResult setItems(ArrayList<EventSendGuardResult> value) { this.items = value; return this; }
        public Integer getSendableCount() { return sendableCount; }
        public EventSendGuardBatchResult setSendableCount(Integer value) { this.sendableCount = value; return this; }
        public Integer getBlockedCount() { return blockedCount; }
        public EventSendGuardBatchResult setBlockedCount(Integer value) { this.blockedCount = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public EventSendGuardBatchResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public EventSendGuardBatchResult setMessage(String value) { this.message = 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 EventSendGuardBatchRequest 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.

POST /EventSendGuard HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<EventSendGuardBatchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <ChangeLookbackHours>0</ChangeLookbackHours>
  <EventIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </EventIds>
</EventSendGuardBatchRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EventSendGuardBatchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <BlockedCount>0</BlockedCount>
  <Items>
    <EventSendGuardResult>
      <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:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1: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>
  </Items>
  <Message>String</Message>
  <SendableCount>0</SendableCount>
  <StatusCode>0</StatusCode>
</EventSendGuardBatchResult>