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

44 lines
1.5 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.Cms.Core.Models.ContentEditing
2017-09-12 16:22:16 +02:00
{
[DataContract(Name = "userGroup", Namespace = "")]
public class UserGroupBasic : EntityBasic, INotificationModel
{
public UserGroupBasic()
{
2020-01-20 11:37:19 +01:00
Notifications = new List<BackOfficeNotification>();
2017-09-12 16:22:16 +02:00
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")]
2020-01-20 11:37:19 +01:00
public List<BackOfficeNotification> Notifications { get; private set; }
2017-09-12 16:22:16 +02:00
[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
}