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

27 lines
593 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 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; }
}
2020-04-08 13:07:15 +02:00
}