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.*


open class EventSendGuardBatchRequest
{
    var eventIds:ArrayList<Int> = ArrayList<Int>()
    var changeLookbackHours:Int? = null
}

open class EventSendGuardBatchResult
{
    var items:ArrayList<EventSendGuardResult> = ArrayList<EventSendGuardResult>()
    var sendableCount:Int? = null
    var blockedCount:Int? = null
    var statusCode:Int? = null
    var message:String? = null
}

open class EventSendGuardResult
{
    var eventId:Int? = null
    var eventName:String? = null
    var sendable:Boolean? = null
    var reasons:ArrayList<String> = ArrayList<String>()
    var currentTimeOfEventUtc:Date? = null
    var assumedTimeUtc:Date? = null
    var timeChangedSincePlanned:Boolean? = null
    var postponedNoDate:Boolean? = null
    var eventActive:Boolean? = null
    var hideEvent:Boolean? = null
    var alreadyStarted:Boolean? = null
    var lastChangeAt:Date? = null
    var recentChanges:ArrayList<EventSendGuardChange> = ArrayList<EventSendGuardChange>()
    var statusCode:Int? = null
    var message:String? = null
}

open class EventSendGuardChange
{
    var changedAt:Date? = null
    var timeHasChanged:Boolean? = null
    var locationHasChanged:Boolean? = null
    var oldTimeOfEvent:Date? = null
    var newTimeOfEvent:Date? = null
    var alertHandled:Boolean? = null
}

Kotlin 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
}