UNPKG

@bipsync/ews-javascript-api

Version:
56 lines (55 loc) 2.25 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var XmlElementNames_1 = require("../../../Core/XmlElementNames"); var Recurrence_IntervalPattern_1 = require("./Recurrence.IntervalPattern"); /** * Represents a regeneration pattern, as used with recurring tasks, where each occurrence happens a specified number of days after the previous one is completed. */ var DailyRegenerationPattern = (function (_super) { __extends(DailyRegenerationPattern, _super); function DailyRegenerationPattern(startDate, interval) { var _this = this; if (arguments.length === 0) { _this = _super.call(this) || this; return; } _this = _super.call(this, startDate, interval) || this; return _this; } Object.defineProperty(DailyRegenerationPattern.prototype, "XmlElementName", { /** * @internal Gets the name of the XML element. * * @value The name of the XML element. */ get: function () { return XmlElementNames_1.XmlElementNames.DailyRegeneration; }, enumerable: true, configurable: true }); Object.defineProperty(DailyRegenerationPattern.prototype, "IsRegenerationPattern", { /** * Gets a value indicating whether this instance is a regeneration pattern. * * @value *true* if this instance is a regeneration pattern; otherwise, *false*.</value> */ get: function () { return true; }, enumerable: true, configurable: true }); return DailyRegenerationPattern; }(Recurrence_IntervalPattern_1.IntervalPattern)); exports.DailyRegenerationPattern = DailyRegenerationPattern;