TicketUserServices

<back to all web services

EventSendGuardBatchRequest

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

export class EventSendGuardChange
{
    public changedAt?: string;
    public timeHasChanged?: boolean;
    public locationHasChanged?: boolean;
    public oldTimeOfEvent?: string;
    public newTimeOfEvent?: string;
    public alertHandled?: boolean;

    public constructor(init?: Partial<EventSendGuardChange>) { (Object as any).assign(this, init); }
}

export class EventSendGuardResult
{
    public eventId?: number;
    public eventName?: string;
    public sendable?: boolean;
    public reasons?: string[];
    public currentTimeOfEventUtc?: string;
    public assumedTimeUtc?: string;
    public timeChangedSincePlanned?: boolean;
    public postponedNoDate?: boolean;
    public eventActive?: boolean;
    public hideEvent?: boolean;
    public alreadyStarted?: boolean;
    public lastChangeAt?: string;
    public recentChanges?: EventSendGuardChange[];
    public statusCode?: number;
    public message?: string;

    public constructor(init?: Partial<EventSendGuardResult>) { (Object as any).assign(this, init); }
}

export class EventSendGuardBatchResult
{
    public items?: EventSendGuardResult[];
    public sendableCount?: number;
    public blockedCount?: number;
    public statusCode?: number;
    public message?: string;

    public constructor(init?: Partial<EventSendGuardBatchResult>) { (Object as any).assign(this, init); }
}

export class EventSendGuardBatchRequest
{
    public eventIds?: number[];
    public changeLookbackHours?: number;

    public constructor(init?: Partial<EventSendGuardBatchRequest>) { (Object as any).assign(this, init); }
}

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