31 lines
1 KiB
C#
31 lines
1 KiB
C#
namespace Lieb.Data
|
|
{
|
|
public static class Constants
|
|
{
|
|
public const string HttpClientName = "Discord";
|
|
public const string ClaimType = "Role";
|
|
public const string GW2_ACCOUNT_REGEX = "^[a-zA-z ]{3,27}\\.[0-9]{4}$";
|
|
public static readonly int RaidEditPowerLevel = Roles.Moderator.PowerLevel;
|
|
|
|
public static class Roles
|
|
{
|
|
public static readonly RoleConstant User = new RoleConstant("user", 20);
|
|
public static readonly RoleConstant RaidLead = new RoleConstant("RaidLead", 40);
|
|
public static readonly RoleConstant Moderator = new RoleConstant("Moderator", 70);
|
|
public static readonly RoleConstant Admin = new RoleConstant("Admin", 100);
|
|
}
|
|
|
|
public class RoleConstant
|
|
{
|
|
public readonly string Name;
|
|
public readonly int PowerLevel;
|
|
|
|
public RoleConstant(string name, int powerLevel)
|
|
{
|
|
Name = name;
|
|
PowerLevel = powerLevel;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|