TicketUserServices

<back to all web services

EventSendGuardRequest

The following routes are available for this service:
GET/EventSendGuard/{EventId}

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 EventSendGuardRequest
{
    public eventId?: number;
    public assumedTimeUtc?: string;
    public changeLookbackHours?: number;

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

TypeScript EventSendGuardRequest 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.

GET /EventSendGuard/{EventId} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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