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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

{"eventIds":[0],"changeLookbackHours":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"items":[{"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"}],"sendableCount":0,"blockedCount":0,"statusCode":0,"message":"String"}