Lieb-Website/Lieb/Data/Constants.cs
2023-01-03 13:53:26 +01:00

38 lines
1.2 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 const int REMOVE_MAYBE_MINUTES = 15;
public static class Polls
{
public const string YES = "yes";
public const string NO = "no";
}
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;
}
}
}
}