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; }
|
2019-09-26 16:32:58 +02:00
|
|
|
|
|
|
|
|
|
|
/// <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
|
|
|
|
}
|