mirror of https://github.com/ogoun/Zero.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
626 B
25 lines
626 B
using System;
|
|
|
|
namespace ZeroLevel.SqLite
|
|
{
|
|
public class UserInfo
|
|
{
|
|
private readonly static UserInfo _anon = new UserInfo
|
|
{
|
|
Created = DateTime.MinValue,
|
|
DisplayName = "Anonimus",
|
|
Role = UserRole.Anonimus,
|
|
UserId = -2,
|
|
UserName = "anonimus"
|
|
};
|
|
|
|
public static UserInfo GetAnonimus() => _anon;
|
|
|
|
public long UserId { get; set; }
|
|
public string UserName { get; set; }
|
|
public string DisplayName { get; set; }
|
|
public DateTime Created { get; set; }
|
|
public UserRole Role { get; set; }
|
|
}
|
|
}
|