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

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

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