sodoff/src/Schema/AuthenticationInfo.cs
2025-05-25 09:16:38 -06:00

23 lines
443 B
C#

using System.Xml.Serialization;
namespace sodoff.Schema;
[Serializable]
public class AuthenticationInfo {
[XmlElement]
public bool Authenticated { get; set; }
[XmlElement]
public string DisplayName { get; set; } = string.Empty;
[XmlElement]
public Role Role { get; set; } = Role.User;
[XmlElement]
public int Id { get; set; }
}
[Serializable]
public enum Role {
User = 0, Moderator = 1, Admin = 2
}