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 EmailMessageSchema_1 = require("./EmailMessageSchema");
var DateTimePropertyDefinition_1 = require("../../../PropertyDefinitions/DateTimePropertyDefinition");
var PropertyDefinitionFlags_1 = require("../../../Enumerations/PropertyDefinitionFlags");
var ExchangeVersion_1 = require("../../../Enumerations/ExchangeVersion");
var ItemSchema_1 = require("./ItemSchema");
//module PostItemSchema {
var FieldUris;
(function (FieldUris) {
FieldUris.PostedTime = "postitem:PostedTime";
})(FieldUris || (FieldUris = {}));
//}
var PostItemSchema = (function (_super) {
__extends(PostItemSchema, _super);
function PostItemSchema() {
_super.apply(this, arguments);
}
PostItemSchema.prototype.RegisterProperties = function () {
_super.prototype.RegisterProperties.call(this);
_super.prototype.RegisterProperty.call(this, PostItemSchema.ConversationIndex);
_super.prototype.RegisterProperty.call(this, PostItemSchema.ConversationTopic);
_super.prototype.RegisterProperty.call(this, PostItemSchema.From);
_super.prototype.RegisterProperty.call(this, PostItemSchema.InternetMessageId);
_super.prototype.RegisterProperty.call(this, PostItemSchema.IsRead);
_super.prototype.RegisterProperty.call(this, PostItemSchema.PostedTime);
_super.prototype.RegisterProperty.call(this, PostItemSchema.References);
_super.prototype.RegisterProperty.call(this, PostItemSchema.Sender);
};
PostItemSchema.ConversationIndex = EmailMessageSchema_1.EmailMessageSchema.ConversationIndex;
PostItemSchema.ConversationTopic = EmailMessageSchema_1.EmailMessageSchema.ConversationTopic;
PostItemSchema.From = EmailMessageSchema_1.EmailMessageSchema.From;
PostItemSchema.InternetMessageId = EmailMessageSchema_1.EmailMessageSchema.InternetMessageId;
PostItemSchema.IsRead = EmailMessageSchema_1.EmailMessageSchema.IsRead;
PostItemSchema.PostedTime = new DateTimePropertyDefinition_1.DateTimePropertyDefinition("PostedTime", XmlElementNames_1.XmlElementNames.PostedTime, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.PostedTime, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
PostItemSchema.References = EmailMessageSchema_1.EmailMessageSchema.References;
PostItemSchema.Sender = EmailMessageSchema_1.EmailMessageSchema.Sender;
PostItemSchema.Instance = new PostItemSchema();
return PostItemSchema;
})(ItemSchema_1.ItemSchema);
exports.PostItemSchema = PostItemSchema;