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