var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var XmlElementNames_1 = require("../../XmlElementNames");
var ContactSchema_1 = require("./ContactSchema");
var ComplexPropertyDefinition_1 = require("../../../PropertyDefinitions/ComplexPropertyDefinition");
var ExchangeVersion_1 = require("../../../Enumerations/ExchangeVersion");
var PropertyDefinitionFlags_1 = require("../../../Enumerations/PropertyDefinitionFlags");
var GroupMemberCollection_1 = require("../../../ComplexProperties/GroupMemberCollection");
var ItemSchema_1 = require("./ItemSchema");
//module ContactGroupSchema {
var FieldUris;
(function (FieldUris) {
FieldUris.Members = "distributionlist:Members";
})(FieldUris || (FieldUris = {}));
//}
var ContactGroupSchema = (function (_super) {
__extends(ContactGroupSchema, _super);
function ContactGroupSchema() {
_super.apply(this, arguments);
}
ContactGroupSchema.prototype.RegisterProperties = function () {
_super.prototype.RegisterProperties.call(this);
_super.prototype.RegisterProperty.call(this, ContactGroupSchema.DisplayName);
_super.prototype.RegisterProperty.call(this, ContactGroupSchema.FileAs);
_super.prototype.RegisterProperty.call(this, ContactGroupSchema.Members);
};
ContactGroupSchema.DisplayName = ContactSchema_1.ContactSchema.DisplayName;
ContactGroupSchema.FileAs = ContactSchema_1.ContactSchema.FileAs;
ContactGroupSchema.Members = new ComplexPropertyDefinition_1.ComplexPropertyDefinition("Members", XmlElementNames_1.XmlElementNames.Members, ExchangeVersion_1.ExchangeVersion.Exchange2010, FieldUris.Members, PropertyDefinitionFlags_1.PropertyDefinitionFlags.AutoInstantiateOnRead | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate, function () { return new GroupMemberCollection_1.GroupMemberCollection(); });
ContactGroupSchema.Instance = new ContactGroupSchema();
return ContactGroupSchema;
})(ItemSchema_1.ItemSchema);
exports.ContactGroupSchema = ContactGroupSchema;