Files
Umbraco-CMS/src/Umbraco.Core/Notifications/MovedNotification.cs
2022-11-28 23:26:59 +01:00

25 lines
711 B
C#

// Copyright (c) Umbraco.
// See LICENSE for more details.
using Umbraco.Cms.Core.Events;
namespace Umbraco.Cms.Core.Notifications;
public abstract class MovedNotification<T> : ObjectNotification<IEnumerable<MoveEventInfo<T>>>
{
protected MovedNotification(MoveEventInfo<T> target, EventMessages messages)
: base(new[] { target }, messages)
{
}
protected MovedNotification(IEnumerable<MoveEventInfo<T>> target, EventMessages messages)
: base(target, messages)
{
}
/// <summary>
/// Gets a enumeration of <see cref="MoveEventInfo{TEntity}"/> with the moved entities.
/// </summary>
public IEnumerable<MoveEventInfo<T>> MoveInfoCollection => Target;
}