Files
mixtape/zero.Core/Entities/User/UserRole.cs
T

35 lines
769 B
C#
Raw Normal View History

2020-04-03 18:03:36 +02:00
using System.Collections.Generic;
namespace zero.Core.Entities
{
public class UserRole : DatabaseEntity, IUserRole
{
/// <inheritdoc/>
public string Description { get; set; }
2020-04-03 18:03:36 +02:00
/// <inheritdoc/>
public string Icon { get; set; }
/// <inheritdoc/>
2020-04-14 20:16:04 +02:00
public List<IUserClaim> Claims { get; set; } = new List<IUserClaim>();
2020-04-03 18:03:36 +02:00
}
public interface IUserRole : IDatabaseEntity
{
/// <summary>
/// Additional description
/// </summary>
string Description { get; set; }
2020-04-03 18:03:36 +02:00
/// <summary>
/// Displayed icon alongside name
/// </summary>
string Icon { get; set; }
/// <summary>
/// The user's claims, for use in claims-based authentication.
/// </summary>
2020-04-14 20:16:04 +02:00
List<IUserClaim> Claims { get; set; }
2020-04-03 18:03:36 +02:00
}
2020-04-08 13:07:15 +02:00
}