// Copyright (c) Umbraco. // See LICENSE for more details. using Umbraco.Cms.Core.Events; using Umbraco.Cms.Core.Models; namespace Umbraco.Cms.Core.Notifications; /// /// A notification that is used to trigger the IContentService when the Copy method is called in the API. /// The notification is published after the content object has been copied. /// public sealed class ContentCopiedNotification : CopiedNotification { public ContentCopiedNotification(IContent original, IContent copy, int parentId, Guid? parentKey, bool relateToOriginal, EventMessages messages) : base(original, copy, parentId, parentKey, relateToOriginal, messages) { } /// /// Initializes a new instance of the . /// /// /// Gets the original object. /// /// /// Gets the object being copied. /// /// /// Gets the ID of the parent of the being copied. /// /// /// Boolean indicating whether the copy was related to the orginal. /// /// /// Initializes a new instance of the . /// [Obsolete("Please use constructor that takes a parent key as well, scheduled for removal in v15")] public ContentCopiedNotification(IContent original, IContent copy, int parentId, bool relateToOriginal, EventMessages messages) : this(original, copy, parentId, null, relateToOriginal, messages) { } }