@asposecloud/aspose-email-cloud
Version:
Aspose.Email Cloud Node.js SDK
260 lines (256 loc) • 7.67 kB
JavaScript
"use strict";
/*
* MIT License
* Copyright (c) 2018-2020 Aspose Pty Ltd
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapiCalendarExceptionInfoDtoBuilder = exports.MapiCalendarExceptionInfoDto = void 0;
/**
* An exception specifies changes to an instance of a recurring series.
*/
class MapiCalendarExceptionInfoDto {
/**
* An exception specifies changes to an instance of a recurring series.
* @param attachments Attachments in the recurrence exception.
* @param body Body.
* @param busyStatus Enumerates the mapi calendar possible busy status. Enum, available values: Free, Tentative, Busy, OutOfOffice
* @param endDateTime End date.
* @param hasAttachment Value of this field specifies whether the Exception Embedded Message object contains attachments.
* @param location Location.
* @param meetingType Enumerates the appointment state. Enum, available values: Meeting, Received, Canceled
* @param originalStartDate Original start date.
* @param overrideFlags Override flags.
* @param reminderDelta Reminder delta.
* @param reminderSet Value for the PidLidReminderSet property.
* @param startDateTime Start date.
* @param subject Subject.
* @param subType SubType.
*/
constructor(attachments, body, busyStatus, endDateTime, hasAttachment, location, meetingType, originalStartDate, overrideFlags, reminderDelta, reminderSet, startDateTime, subject, subType) {
this.attachments = attachments;
this.body = body;
this.busyStatus = busyStatus;
this.endDateTime = endDateTime;
this.hasAttachment = hasAttachment;
this.location = location;
this.meetingType = meetingType;
this.originalStartDate = originalStartDate;
this.overrideFlags = overrideFlags;
this.reminderDelta = reminderDelta;
this.reminderSet = reminderSet;
this.startDateTime = startDateTime;
this.subject = subject;
this.subType = subType;
}
/**
* Returns attribute type map
*/
static getAttributeTypeMap() {
return MapiCalendarExceptionInfoDto.attributeTypeMap;
}
}
exports.MapiCalendarExceptionInfoDto = MapiCalendarExceptionInfoDto;
/**
* Attribute type map
*/
MapiCalendarExceptionInfoDto.attributeTypeMap = [
{
name: "attachments",
baseName: "attachments",
type: "Array<MapiAttachmentDto>",
},
{
name: "body",
baseName: "body",
type: "string",
},
{
name: "busyStatus",
baseName: "busyStatus",
type: "string",
},
{
name: "endDateTime",
baseName: "endDateTime",
type: "Date",
},
{
name: "hasAttachment",
baseName: "hasAttachment",
type: "boolean",
},
{
name: "location",
baseName: "location",
type: "string",
},
{
name: "meetingType",
baseName: "meetingType",
type: "string",
},
{
name: "originalStartDate",
baseName: "originalStartDate",
type: "Date",
},
{
name: "overrideFlags",
baseName: "overrideFlags",
type: "Array<string>",
},
{
name: "reminderDelta",
baseName: "reminderDelta",
type: "number",
},
{
name: "reminderSet",
baseName: "reminderSet",
type: "boolean",
},
{
name: "startDateTime",
baseName: "startDateTime",
type: "Date",
},
{
name: "subject",
baseName: "subject",
type: "string",
},
{
name: "subType",
baseName: "subType",
type: "number",
}
];
/**
* MapiCalendarExceptionInfoDto model builder
*/
class MapiCalendarExceptionInfoDtoBuilder {
constructor(model) {
this.model = model;
}
/**
* Build model.
*/
build() {
return this.model;
}
/**
* Attachments in the recurrence exception.
*/
attachments(attachments) {
this.model.attachments = attachments;
return this;
}
/**
* Body.
*/
body(body) {
this.model.body = body;
return this;
}
/**
* Enumerates the mapi calendar possible busy status. Enum, available values: Free, Tentative, Busy, OutOfOffice
*/
busyStatus(busyStatus) {
this.model.busyStatus = busyStatus;
return this;
}
/**
* End date.
*/
endDateTime(endDateTime) {
this.model.endDateTime = endDateTime;
return this;
}
/**
* Value of this field specifies whether the Exception Embedded Message object contains attachments.
*/
hasAttachment(hasAttachment) {
this.model.hasAttachment = hasAttachment;
return this;
}
/**
* Location.
*/
location(location) {
this.model.location = location;
return this;
}
/**
* Enumerates the appointment state. Enum, available values: Meeting, Received, Canceled
*/
meetingType(meetingType) {
this.model.meetingType = meetingType;
return this;
}
/**
* Original start date.
*/
originalStartDate(originalStartDate) {
this.model.originalStartDate = originalStartDate;
return this;
}
/**
* Override flags. Items: Specifies what data in the MapiCalendarOverride structure has a value different from the recurring series. Enum, available values: Subject, MeetingType, ReminderDelta, Reminder, Location, BusyStatus, Attachment, Subtype, AppointmentColor, ExceptionalBody
*/
overrideFlags(overrideFlags) {
this.model.overrideFlags = overrideFlags;
return this;
}
/**
* Reminder delta.
*/
reminderDelta(reminderDelta) {
this.model.reminderDelta = reminderDelta;
return this;
}
/**
* Value for the PidLidReminderSet property.
*/
reminderSet(reminderSet) {
this.model.reminderSet = reminderSet;
return this;
}
/**
* Start date.
*/
startDateTime(startDateTime) {
this.model.startDateTime = startDateTime;
return this;
}
/**
* Subject.
*/
subject(subject) {
this.model.subject = subject;
return this;
}
/**
* SubType.
*/
subType(subType) {
this.model.subType = subType;
return this;
}
}
exports.MapiCalendarExceptionInfoDtoBuilder = MapiCalendarExceptionInfoDtoBuilder;
//# sourceMappingURL=mapi-calendar-exception-info-dto.js.map