diff --git a/src/Umbraco.Core/Services/Notifications/ContentTreeChangeNotification.cs b/src/Umbraco.Core/Services/Notifications/ContentTreeChangeNotification.cs new file mode 100644 index 0000000000..2161b4782a --- /dev/null +++ b/src/Umbraco.Core/Services/Notifications/ContentTreeChangeNotification.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; +using System.Linq; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services.Changes; + +namespace Umbraco.Cms.Core.Services.Notifications +{ + public class ContentTreeChangeNotification : TreeChangeNotification + { + public ContentTreeChangeNotification(TreeChange target, EventMessages messages) : base(target, messages) + { + } + + public ContentTreeChangeNotification(IEnumerable> target, EventMessages messages) : base(target, messages) + { + } + + public ContentTreeChangeNotification(IEnumerable target, + TreeChangeTypes changeTypes, + EventMessages messages) : base(target.Select(x => new TreeChange(x, changeTypes)), messages) + { + } + + public ContentTreeChangeNotification(IContent target, + TreeChangeTypes changeTypes, + EventMessages messages) : base(new TreeChange(target, changeTypes), messages) + { + } + } +}