UNPKG

@asposecloud/aspose-email-cloud

Version:
162 lines (158 loc) 5.25 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.MapiCalendarTimeZoneInfoDtoBuilder = exports.MapiCalendarTimeZoneInfoDto = void 0; /** * Represents the mapi calendar time zone rule. */ class MapiCalendarTimeZoneInfoDto { /** * Represents the mapi calendar time zone rule. * @param bias Time zone's offset in minutes from UTC. * @param daylightBias Offset in minutes from lBias during daylight saving time. * @param daylightDate Date and local time that indicate when to begin using the DaylightBias. * @param standardBias Offset in minutes from lBias during standard time. * @param standardDate Date and local time that indicate when to begin using the StandardBias. * @param timeZoneFlags Individual bit flags that specify information about this TimeZoneRule. * @param year Year in which this rule is scheduled to take effect. */ constructor(bias, daylightBias, daylightDate, standardBias, standardDate, timeZoneFlags, year) { this.bias = bias; this.daylightBias = daylightBias; this.daylightDate = daylightDate; this.standardBias = standardBias; this.standardDate = standardDate; this.timeZoneFlags = timeZoneFlags; this.year = year; } /** * Returns attribute type map */ static getAttributeTypeMap() { return MapiCalendarTimeZoneInfoDto.attributeTypeMap; } } exports.MapiCalendarTimeZoneInfoDto = MapiCalendarTimeZoneInfoDto; /** * Attribute type map */ MapiCalendarTimeZoneInfoDto.attributeTypeMap = [ { name: "bias", baseName: "bias", type: "number", }, { name: "daylightBias", baseName: "daylightBias", type: "number", }, { name: "daylightDate", baseName: "daylightDate", type: "MapiCalendarTimeZoneRuleDto", }, { name: "standardBias", baseName: "standardBias", type: "number", }, { name: "standardDate", baseName: "standardDate", type: "MapiCalendarTimeZoneRuleDto", }, { name: "timeZoneFlags", baseName: "timeZoneFlags", type: "Array<string>", }, { name: "year", baseName: "year", type: "number", } ]; /** * MapiCalendarTimeZoneInfoDto model builder */ class MapiCalendarTimeZoneInfoDtoBuilder { constructor(model) { this.model = model; } /** * Build model. */ build() { return this.model; } /** * Time zone's offset in minutes from UTC. */ bias(bias) { this.model.bias = bias; return this; } /** * Offset in minutes from lBias during daylight saving time. */ daylightBias(daylightBias) { this.model.daylightBias = daylightBias; return this; } /** * Date and local time that indicate when to begin using the DaylightBias. */ daylightDate(daylightDate) { this.model.daylightDate = daylightDate; return this; } /** * Offset in minutes from lBias during standard time. */ standardBias(standardBias) { this.model.standardBias = standardBias; return this; } /** * Date and local time that indicate when to begin using the StandardBias. */ standardDate(standardDate) { this.model.standardDate = standardDate; return this; } /** * Individual bit flags that specify information about this TimeZoneRule. Items: Enumerates the individual bit flags that specify information about TimeZoneRule. Enum, available values: TzRuleFlagRecurCurrentTzReg, TzRuleFlagEffectiveTzReg */ timeZoneFlags(timeZoneFlags) { this.model.timeZoneFlags = timeZoneFlags; return this; } /** * Year in which this rule is scheduled to take effect. */ year(year) { this.model.year = year; return this; } } exports.MapiCalendarTimeZoneInfoDtoBuilder = MapiCalendarTimeZoneInfoDtoBuilder; //# sourceMappingURL=mapi-calendar-time-zone-info-dto.js.map