| 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 .xml suffix or ?format=xml
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/xml
Content-Type: application/xml
Content-Length: length
<EventSendGuardBatchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<ChangeLookbackHours>0</ChangeLookbackHours>
<EventIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>0</d2p1:int>
</EventIds>
</EventSendGuardBatchRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<EventSendGuardBatchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<BlockedCount>0</BlockedCount>
<Items>
<EventSendGuardResult>
<AlreadyStarted>false</AlreadyStarted>
<AssumedTimeUtc>0001-01-01T00:00:00</AssumedTimeUtc>
<CurrentTimeOfEventUtc>0001-01-01T00:00:00</CurrentTimeOfEventUtc>
<EventActive>false</EventActive>
<EventId>0</EventId>
<EventName>String</EventName>
<HideEvent>false</HideEvent>
<LastChangeAt>0001-01-01T00:00:00</LastChangeAt>
<Message>String</Message>
<PostponedNoDate>false</PostponedNoDate>
<Reasons xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</Reasons>
<RecentChanges>
<EventSendGuardChange>
<AlertHandled>false</AlertHandled>
<ChangedAt>0001-01-01T00:00:00</ChangedAt>
<LocationHasChanged>false</LocationHasChanged>
<NewTimeOfEvent>0001-01-01T00:00:00</NewTimeOfEvent>
<OldTimeOfEvent>0001-01-01T00:00:00</OldTimeOfEvent>
<TimeHasChanged>false</TimeHasChanged>
</EventSendGuardChange>
</RecentChanges>
<Sendable>false</Sendable>
<StatusCode>0</StatusCode>
<TimeChangedSincePlanned>false</TimeChangedSincePlanned>
</EventSendGuardResult>
</Items>
<Message>String</Message>
<SendableCount>0</SendableCount>
<StatusCode>0</StatusCode>
</EventSendGuardBatchResult>