@jaricardodev/ews-javascript-api
Version:
EWS Managed api in JavaScript
52 lines (50 loc) • 2.01 kB
text/typescript
import {XmlElementNames} from "../../XmlElementNames";
import {MeetingCancellation} from "../Items/MeetingCancellation";
import {MessageBody} from "../../../ComplexProperties/MessageBody";
import {ExchangeVersion} from "../../../Enumerations/ExchangeVersion";
import {ServiceObjectSchema} from "../Schemas/ServiceObjectSchema";
import {Schemas} from "../Schemas/Schemas";
import {Item} from "../Items/Item";
import {CalendarResponseMessageBase} from "./CalendarResponseMessageBase";
/**
* Represents a meeting cancellation message.
*
*/
export class CancelMeetingMessage extends CalendarResponseMessageBase<MeetingCancellation> {
/**
* Gets or sets the body of the response.
*
*/
get Body(): MessageBody {
return <MessageBody>this.PropertyBag._getItem(Schemas.CancelMeetingMessageSchema.Body);
}
set Body(value: MessageBody) {
this.PropertyBag._setItem(Schemas.CancelMeetingMessageSchema.Body, value);
}
/**
* Initializes a new instance of the **CancelMeetingMessage** class.
*
* @param {Item} referenceItem The reference item.
*/
constructor(referenceItem: Item) {
super(referenceItem);
}
/**
* Gets the minimum required server version.
*
* @return {ExchangeVersion} Earliest Exchange version in which this service object type is supported.
*/
GetMinimumRequiredServerVersion(): ExchangeVersion { return ExchangeVersion.Exchange2007_SP1; }
/**
* Internal method to return the schema associated with this type of object.
*
* @return {ServiceObjectSchema} The schema associated with this type of object.
*/
GetSchema(): ServiceObjectSchema { return Schemas.CancelMeetingMessageSchema.Instance; }
/**
* Gets the element name of item in XML
*
* @return {string} name of elelment
*/
GetXmlElementName(): string { return XmlElementNames.CancelCalendarItem; }
}