TicketUserServices

<back to all web services

EventSendGuardBatchRequest

The following routes are available for this service:
POST/EventSendGuard
import Foundation
import ServiceStack

public class EventSendGuardBatchRequest : Codable
{
    public var eventIds:[Int] = []
    public var changeLookbackHours:Int?

    required public init(){}
}

public class EventSendGuardBatchResult : Codable
{
    public var items:[EventSendGuardResult] = []
    public var sendableCount:Int?
    public var blockedCount:Int?
    public var statusCode:Int?
    public var message:String?

    required public init(){}
}

public class EventSendGuardResult : Codable
{
    public var eventId:Int?
    public var eventName:String?
    public var sendable:Bool?
    public var reasons:[String] = []
    public var currentTimeOfEventUtc:Date?
    public var assumedTimeUtc:Date?
    public var timeChangedSincePlanned:Bool?
    public var postponedNoDate:Bool?
    public var eventActive:Bool?
    public var hideEvent:Bool?
    public var alreadyStarted:Bool?
    public var lastChangeAt:Date?
    public var recentChanges:[EventSendGuardChange] = []
    public var statusCode:Int?
    public var message:String?

    required public init(){}
}

public class EventSendGuardChange : Codable
{
    public var changedAt:Date?
    public var timeHasChanged:Bool?
    public var locationHasChanged:Bool?
    public var oldTimeOfEvent:Date?
    public var newTimeOfEvent:Date?
    public var alertHandled:Bool?

    required public init(){}
}


Swift EventSendGuardBatchRequest 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.

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

{
	eventIds: 
	[
		0
	],
	changeLookbackHours: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	items: 
	[
		{
			eventId: 0,
			eventName: String,
			sendable: False,
			reasons: 
			[
				String
			],
			currentTimeOfEventUtc: 0001-01-01,
			assumedTimeUtc: 0001-01-01,
			timeChangedSincePlanned: False,
			postponedNoDate: False,
			eventActive: False,
			hideEvent: False,
			alreadyStarted: False,
			lastChangeAt: 0001-01-01,
			recentChanges: 
			[
				{
					changedAt: 0001-01-01,
					timeHasChanged: False,
					locationHasChanged: False,
					oldTimeOfEvent: 0001-01-01,
					newTimeOfEvent: 0001-01-01,
					alertHandled: False
				}
			],
			statusCode: 0,
			message: String
		}
	],
	sendableCount: 0,
	blockedCount: 0,
	statusCode: 0,
	message: String
}