Files
mixtape/zero.Core/Entities/User/UserRole.cs
T
2020-04-03 18:03:36 +02:00

28 lines
594 B
C#

using System.Collections.Generic;
namespace zero.Core.Entities
{
public class UserRole : DatabaseEntity, IUserRole
{
/// <inheritdoc/>
public string Icon { get; set; }
/// <inheritdoc/>
public List<UserClaim> Claims { get; set; } = new List<UserClaim>();
}
public interface IUserRole : IDatabaseEntity
{
/// <summary>
/// Displayed icon alongside name
/// </summary>
string Icon { get; set; }
/// <summary>
/// The user's claims, for use in claims-based authentication.
/// </summary>
List<UserClaim> Claims { get; set; }
}
}