using Microsoft.AspNetCore.Http;
using Umbraco.Cms.Core.Trees;
namespace Umbraco.Cms.Core.Notifications
{
///
/// A notification that allows developers to modify the tree node collection that is being rendered
///
///
/// Developers can add/remove/replace/insert/update/etc... any of the tree items in the collection.
///
public class TreeNodesRenderingNotification : INotification
{
///
/// The tree nodes being rendered
///
public TreeNodeCollection Nodes { get; }
///
/// The query string of the current request
///
public FormCollection QueryString { get; }
///
/// The alias of the tree rendered
///
public string TreeAlias { get; }
public TreeNodesRenderingNotification(TreeNodeCollection nodes, FormCollection queryString, string treeAlias)
{
Nodes = nodes;
QueryString = queryString;
TreeAlias = treeAlias;
}
}
}