UNPKG

@jaricardodev/ews-javascript-api

Version:
65 lines (59 loc) 2.54 kB
import { ComplexPropertyDefinition } from "../../../PropertyDefinitions/ComplexPropertyDefinition"; import { EmailMessageSchema } from "./EmailMessageSchema"; import { ExchangeVersion } from "../../../Enumerations/ExchangeVersion"; import { MessageBody } from "../../../ComplexProperties/MessageBody"; import { PropertyDefinition } from "../../../PropertyDefinitions/PropertyDefinition"; import { PropertyDefinitionFlags } from "../../../Enumerations/PropertyDefinitionFlags"; import { ResponseObjectSchema } from "./ResponseObjectSchema"; import { Schemas } from "./Schemas"; import { XmlElementNames } from "../../XmlElementNames"; import { ServiceObjectSchema } from "./ServiceObjectSchema"; /** * Represents CancelMeetingMessage schema definition. */ export class CancelMeetingMessageSchema extends ServiceObjectSchema { /** * Defines the **Body** property. */ public static Body: PropertyDefinition = new ComplexPropertyDefinition<MessageBody>( "Body", XmlElementNames.NewBodyContent, PropertyDefinitionFlags.CanSet, ExchangeVersion.Exchange2007_SP1, () => { return new MessageBody(); } ); /** * @internal Instance of **CancelMeetingMessageSchema** */ static Instance: CancelMeetingMessageSchema = new CancelMeetingMessageSchema(); /** * Registers properties. * * /remarks/ IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the same order as they are defined in types.xsd) */ RegisterProperties(): void { super.RegisterProperties(); this.RegisterProperty(CancelMeetingMessageSchema, Schemas.EmailMessageSchema.IsReadReceiptRequested); this.RegisterProperty(CancelMeetingMessageSchema, Schemas.EmailMessageSchema.IsDeliveryReceiptRequested); this.RegisterProperty(CancelMeetingMessageSchema, Schemas.ResponseObjectSchema.ReferenceItemId); this.RegisterProperty(CancelMeetingMessageSchema, CancelMeetingMessageSchema.Body); } } /** * Represents CancelMeetingMessage schema definition. */ export interface CancelMeetingMessageSchema { /** * Defines the **Body** property. */ Body: PropertyDefinition; /** * @internal Instance of **CancelMeetingMessageSchema** */ Instance: CancelMeetingMessageSchema; } /** * Represents CancelMeetingMessage schema definition. */ export interface CancelMeetingMessageSchemaStatic extends CancelMeetingMessageSchema { }