UNPKG

@asposecloud/aspose-email-cloud

Version:
190 lines (186 loc) 5.23 kB
"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.MapiCalendarTimeZoneRuleDtoBuilder = exports.MapiCalendarTimeZoneRuleDto = void 0; /** * Represents time zone rule that indicate when to begin using the Standard/Daylight time. */ class MapiCalendarTimeZoneRuleDto { /** * Represents time zone rule that indicate when to begin using the Standard/Daylight time. * @param date Date and time that indicate when to begin using the Standard/Daylight time. * @param dayOfWeek Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday * @param hour Hour. * @param milliseconds Milliseconds. * @param minute Minute. * @param month Month. * @param position Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last * @param seconds Seconds. * @param year Year. */ constructor(date, dayOfWeek, hour, milliseconds, minute, month, position, seconds, year) { this.date = date; this.dayOfWeek = dayOfWeek; this.hour = hour; this.milliseconds = milliseconds; this.minute = minute; this.month = month; this.position = position; this.seconds = seconds; this.year = year; } /** * Returns attribute type map */ static getAttributeTypeMap() { return MapiCalendarTimeZoneRuleDto.attributeTypeMap; } } exports.MapiCalendarTimeZoneRuleDto = MapiCalendarTimeZoneRuleDto; /** * Attribute type map */ MapiCalendarTimeZoneRuleDto.attributeTypeMap = [ { name: "date", baseName: "date", type: "Date", }, { name: "dayOfWeek", baseName: "dayOfWeek", type: "string", }, { name: "hour", baseName: "hour", type: "number", }, { name: "milliseconds", baseName: "milliseconds", type: "number", }, { name: "minute", baseName: "minute", type: "number", }, { name: "month", baseName: "month", type: "number", }, { name: "position", baseName: "position", type: "string", }, { name: "seconds", baseName: "seconds", type: "number", }, { name: "year", baseName: "year", type: "number", } ]; /** * MapiCalendarTimeZoneRuleDto model builder */ class MapiCalendarTimeZoneRuleDtoBuilder { constructor(model) { this.model = model; } /** * Build model. */ build() { return this.model; } /** * Date and time that indicate when to begin using the Standard/Daylight time. */ date(date) { this.model.date = date; return this; } /** * Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday */ dayOfWeek(dayOfWeek) { this.model.dayOfWeek = dayOfWeek; return this; } /** * Hour. */ hour(hour) { this.model.hour = hour; return this; } /** * Milliseconds. */ milliseconds(milliseconds) { this.model.milliseconds = milliseconds; return this; } /** * Minute. */ minute(minute) { this.model.minute = minute; return this; } /** * Month. */ month(month) { this.model.month = month; return this; } /** * Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last */ position(position) { this.model.position = position; return this; } /** * Seconds. */ seconds(seconds) { this.model.seconds = seconds; return this; } /** * Year. */ year(year) { this.model.year = year; return this; } } exports.MapiCalendarTimeZoneRuleDtoBuilder = MapiCalendarTimeZoneRuleDtoBuilder; //# sourceMappingURL=mapi-calendar-time-zone-rule-dto.js.map