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

44 lines
1.4 KiB
C#
Raw Normal View History

2017-09-12 16:22:16 +02:00
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
namespace Umbraco.Web.Models.ContentEditing
{
[DataContract(Name = "userGroup", Namespace = "")]
public class UserGroupBasic : EntityBasic, INotificationModel
{
public UserGroupBasic()
{
Notifications = new List<Notification>();
Sections = Enumerable.Empty<Section>();
}
/// <summary>
/// This is used to add custom localized messages/strings to the response for the app to use for localized UI purposes.
/// </summary>
[DataMember(Name = "notifications")]
public List<Notification> Notifications { get; private set; }
[DataMember(Name = "sections")]
public IEnumerable<Section> Sections { get; set; }
[DataMember(Name = "contentStartNode")]
public EntityBasic ContentStartNode { get; set; }
[DataMember(Name = "mediaStartNode")]
public EntityBasic MediaStartNode { get; set; }
/// <summary>
/// The number of users assigned to this group
/// </summary>
[DataMember(Name = "userCount")]
public int UserCount { get; set; }
/// <summary>
/// Is the user group a system group e.g. "Administrators", "Sensitive data" or "Translators"
/// </summary>
[DataMember(Name = "isSystemUserGroup")]
public bool IsSystemUserGroup { get; set; }
2017-09-12 16:22:16 +02:00
}
2017-09-23 10:08:18 +02:00
}