Files
Umbraco-CMS/src/Umbraco.Web/Models/ContentEditing/PropertyGroupDisplay.cs

40 lines
1.3 KiB
C#
Raw Normal View History

using System.Collections.Generic;
using System.ComponentModel;
2015-05-13 17:12:28 +02:00
using System.Runtime.Serialization;
namespace Umbraco.Web.Models.ContentEditing
{
[DataContract(Name = "propertyGroup", Namespace = "")]
2017-07-20 11:21:28 +02:00
public class PropertyGroupDisplay<TPropertyTypeDisplay> : PropertyGroupBasic<TPropertyTypeDisplay>
where TPropertyTypeDisplay : PropertyTypeDisplay
2015-05-13 17:12:28 +02:00
{
public PropertyGroupDisplay()
{
Properties = new List<TPropertyTypeDisplay>();
2015-06-23 09:56:59 +02:00
ParentTabContentTypeNames = new List<string>();
ParentTabContentTypes = new List<int>();
}
/// <summary>
/// Gets the context content type.
/// </summary>
[DataMember(Name = "contentTypeId")]
[ReadOnly(true)]
public int ContentTypeId { get; set; }
2015-05-22 12:00:04 +02:00
/// <summary>
/// Gets the identifiers of the content types that define this group.
/// </summary>
2015-05-27 15:48:40 +02:00
[DataMember(Name = "parentTabContentTypes")]
[ReadOnly(true)]
2015-05-27 15:48:40 +02:00
public IEnumerable<int> ParentTabContentTypes { get; set; }
/// <summary>
/// Gets the name of the content types that define this group.
/// </summary>
[DataMember(Name = "parentTabContentTypeNames")]
[ReadOnly(true)]
public IEnumerable<string> ParentTabContentTypeNames { get; set; }
2015-05-13 17:12:28 +02:00
}
}