@bipsync/ews-javascript-api
Version:
EWS Managed api in JavaScript
52 lines (51 loc) • 2.47 kB
JavaScript
;
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 EmailAddressEntity_1 = require("./EmailAddressEntity");
var ComplexPropertyCollection_1 = require("./ComplexPropertyCollection");
/**
* Represents a collection of EmailAddressEntity objects.
*/
var EmailAddressEntityCollection = (function (_super) {
__extends(EmailAddressEntityCollection, _super);
function EmailAddressEntityCollection(collection) {
if (collection === void 0) { collection = null; }
var _this = _super.call(this) || this;
if (collection != null) {
collection.forEach(function (entity) { _this.InternalAdd(entity); });
}
return _this;
}
/**
* @internal Creates the complex property.
*
* @param {string} xmlElementName Name of the XML element.
* @return {EmailAddressEntity} EmailAddressEntity.
*/
EmailAddressEntityCollection.prototype.CreateComplexProperty = function (xmlElementName) { return new EmailAddressEntity_1.EmailAddressEntity(); };
/**
* @internal Creates the default complex property.
*
* @return {EmailAddressEntity} EmailAddressEntity.
*/
EmailAddressEntityCollection.prototype.CreateDefaultComplexProperty = function () { return new EmailAddressEntity_1.EmailAddressEntity(); };
/**
* @internal Gets the name of the collection item XML element.
*
* @param {EmailAddressEntity} complexProperty The complex property.
* @return {string} XML element name.
*/
EmailAddressEntityCollection.prototype.GetCollectionItemXmlElementName = function (complexProperty) { return XmlElementNames_1.XmlElementNames.NlgEmailAddress; };
return EmailAddressEntityCollection;
}(ComplexPropertyCollection_1.ComplexPropertyCollection));
exports.EmailAddressEntityCollection = EmailAddressEntityCollection;