using System.Runtime.Serialization;
using Umbraco.Core.Models;
namespace Umbraco.Web.Models.ContentEditing
{
///
/// An abstract model representing a content item that can be contained in a list view
///
///
public abstract class ListViewAwareContentItemDisplayBase : ContentItemDisplayBase
where T : ContentPropertyBasic
{
///
/// Property indicating if this item is part of a list view parent
///
[DataMember(Name = "isChildOfListView")]
public bool IsChildOfListView { get; set; }
///
/// Property for the entity's individual tree node URL
///
///
/// This is required if the item is a child of a list view since the tree won't actually be loaded,
/// so the app will need to go fetch the individual tree node in order to be able to load it's action list (menu)
///
[DataMember(Name = "treeNodeUrl")]
public string TreeNodeUrl { get; set; }
}
}