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