V9: Place notifications in the same namespace (#10231)
* Gather all notifications in Umbraco.Cms.Core.Notifications * Rename notifications to match convention * Move and rename missed notifications * Move the three remaining public notification into Umbraco.Cms.Core.Notifications
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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.Notifications
|
||||
{
|
||||
public class MediaTreeChangeNotification : TreeChangeNotification<IMedia>
|
||||
{
|
||||
public MediaTreeChangeNotification(TreeChange<IMedia> target, EventMessages messages) : base(target, messages)
|
||||
{
|
||||
}
|
||||
|
||||
public MediaTreeChangeNotification(IEnumerable<TreeChange<IMedia>> target, EventMessages messages) : base(target, messages)
|
||||
{
|
||||
}
|
||||
|
||||
public MediaTreeChangeNotification(IEnumerable<IMedia> target,
|
||||
TreeChangeTypes changeTypes,
|
||||
EventMessages messages) : base(target.Select(x => new TreeChange<IMedia>(x, changeTypes)), messages)
|
||||
{
|
||||
}
|
||||
|
||||
public MediaTreeChangeNotification(IMedia target, TreeChangeTypes changeTypes, EventMessages messages) : base(
|
||||
new TreeChange<IMedia>(target, changeTypes), messages)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user