galaeth-draft/Galaeth.Core/Dtos/UserDto.cs
2024-11-17 09:31:01 +00:00

45 lines
918 B
C#

using Galaeth.Core.Constants;
namespace Galaeth.Core.Dtos;
/// <summary>
/// Dto representing a user.
/// </summary>
public class UserDto
{
/// <summary>
/// User's Id.
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// User's name.
/// </summary>
public string Username { get; set; }
/// <summary>
/// User's email address.
/// </summary>
public string EmailAddress { get; set; }
/// <summary>
/// When the user was registered.
/// </summary>
public DateTime RegistrationDate { get; set; }
/// <summary>
/// When the user was registered in ticks.
/// </summary>
public long RegistrationDateTicks { get; set; }
/// <summary>
/// User's role.
/// </summary>
public UserRole Role { get; set; }
/// <summary>
/// User's role as title.
/// </summary>
public string RoleTitle { get; set; }
}