@asposecloud/aspose-email-cloud
Version:
Aspose.Email Cloud Node.js SDK
148 lines (144 loc) • 4.92 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.MapiCalendarEventRecurrenceDtoBuilder = exports.MapiCalendarEventRecurrenceDto = void 0;
/**
* Recurrence properties of calendar object.
*/
class MapiCalendarEventRecurrenceDto {
/**
* Recurrence properties of calendar object.
* @param appointmentTimeZoneDefinitionRecur Time zone information that describes how to convert the meeting date and time on a recurring series to and from UTC.
* @param clipEnd Date of the last instance.
* @param clipStart Date of the first instance.
* @param isException Value indicating whether the object represents an exception.
* @param recurrencePattern Recurrence pattern.
* @param timeZoneStruct Time zone information for a recurring meeting.
*/
constructor(appointmentTimeZoneDefinitionRecur, clipEnd, clipStart, isException, recurrencePattern, timeZoneStruct) {
this.appointmentTimeZoneDefinitionRecur = appointmentTimeZoneDefinitionRecur;
this.clipEnd = clipEnd;
this.clipStart = clipStart;
this.isException = isException;
this.recurrencePattern = recurrencePattern;
this.timeZoneStruct = timeZoneStruct;
}
/**
* Returns attribute type map
*/
static getAttributeTypeMap() {
return MapiCalendarEventRecurrenceDto.attributeTypeMap;
}
}
exports.MapiCalendarEventRecurrenceDto = MapiCalendarEventRecurrenceDto;
/**
* Attribute type map
*/
MapiCalendarEventRecurrenceDto.attributeTypeMap = [
{
name: "appointmentTimeZoneDefinitionRecur",
baseName: "appointmentTimeZoneDefinitionRecur",
type: "MapiCalendarTimeZoneDto",
},
{
name: "clipEnd",
baseName: "clipEnd",
type: "Date",
},
{
name: "clipStart",
baseName: "clipStart",
type: "Date",
},
{
name: "isException",
baseName: "isException",
type: "boolean",
},
{
name: "recurrencePattern",
baseName: "recurrencePattern",
type: "MapiCalendarRecurrencePatternDto",
},
{
name: "timeZoneStruct",
baseName: "timeZoneStruct",
type: "MapiCalendarTimeZoneDto",
}
];
/**
* MapiCalendarEventRecurrenceDto model builder
*/
class MapiCalendarEventRecurrenceDtoBuilder {
constructor(model) {
this.model = model;
}
/**
* Build model.
*/
build() {
return this.model;
}
/**
* Time zone information that describes how to convert the meeting date and time on a recurring series to and from UTC.
*/
appointmentTimeZoneDefinitionRecur(appointmentTimeZoneDefinitionRecur) {
this.model.appointmentTimeZoneDefinitionRecur = appointmentTimeZoneDefinitionRecur;
return this;
}
/**
* Date of the last instance.
*/
clipEnd(clipEnd) {
this.model.clipEnd = clipEnd;
return this;
}
/**
* Date of the first instance.
*/
clipStart(clipStart) {
this.model.clipStart = clipStart;
return this;
}
/**
* Value indicating whether the object represents an exception.
*/
isException(isException) {
this.model.isException = isException;
return this;
}
/**
* Recurrence pattern.
*/
recurrencePattern(recurrencePattern) {
this.model.recurrencePattern = recurrencePattern;
return this;
}
/**
* Time zone information for a recurring meeting.
*/
timeZoneStruct(timeZoneStruct) {
this.model.timeZoneStruct = timeZoneStruct;
return this;
}
}
exports.MapiCalendarEventRecurrenceDtoBuilder = MapiCalendarEventRecurrenceDtoBuilder;
//# sourceMappingURL=mapi-calendar-event-recurrence-dto.js.map