| 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 .csv suffix or ?format=csv
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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"eventId":0,"eventName":"String","sendable":false,"reasons":["String"],"currentTimeOfEventUtc":"0001-01-01T00:00:00.0000000","assumedTimeUtc":"0001-01-01T00:00:00.0000000","timeChangedSincePlanned":false,"postponedNoDate":false,"eventActive":false,"hideEvent":false,"alreadyStarted":false,"lastChangeAt":"0001-01-01T00:00:00.0000000","recentChanges":[{"changedAt":"0001-01-01T00:00:00.0000000","timeHasChanged":false,"locationHasChanged":false,"oldTimeOfEvent":"0001-01-01T00:00:00.0000000","newTimeOfEvent":"0001-01-01T00:00:00.0000000","alertHandled":false}],"statusCode":0,"message":"String"}