Represents the base class for all calendar-related response messages.
var CalendarResponseMessageBase = (function (_super) {
__extends(CalendarResponseMessageBase, _super);
Option name | Type | Description |
---|---|---|
referenceItem | Item | The reference item. |
Initializes a new instance of the class.
function CalendarResponseMessageBase(referenceItem) {
_super.call(this, referenceItem);
}
CalendarResponseMessageBase.prototype.Save = function (destinationFolderIdOrName) {
var destinationFolderId = null;
if (arguments.length === 1) {
if (typeof destinationFolderIdOrName === "number") {
destinationFolderId = new FolderId_1.FolderId(destinationFolderIdOrName);
}
else {
//EwsUtilities.ValidateParam(destinationFolderIdOrName, "destinationFolderId");
destinationFolderId = destinationFolderIdOrName;
}
}
return this.InternalCreate(destinationFolderId, MessageDisposition_1.MessageDisposition.SaveOnly).then(function (results) {
return new CalendarActionResults_1.CalendarActionResults(results);
});
};
Sends this response without saving a copy. Calling this method results in a call to EWS.
CalendarResponseMessageBase.prototype.Send = function () {
return this.InternalCreate(null, MessageDisposition_1.MessageDisposition.SendOnly).then(function (results) {
return new CalendarActionResults_1.CalendarActionResults(results);
});
};
CalendarResponseMessageBase.prototype.SendAndSaveCopy = function (destinationFolderIdOrName) {
var destinationFolderId = null;
if (arguments.length === 1) {
if (typeof destinationFolderIdOrName === "number") {
destinationFolderId = new FolderId_1.FolderId(destinationFolderIdOrName);
}
else {
//EwsUtilities.ValidateParam(destinationFolderIdOrName, "destinationFolderId");
destinationFolderId = destinationFolderIdOrName;
}
}
return this.InternalCreate(destinationFolderId, MessageDisposition_1.MessageDisposition.SendAndSaveCopy).then(function (results) {
return new CalendarActionResults_1.CalendarActionResults(results);
});
};
return CalendarResponseMessageBase;
})(ResponseObject_1.ResponseObject);
exports.CalendarResponseMessageBase = CalendarResponseMessageBase;