62 lines
1.4 KiB
C#
62 lines
1.4 KiB
C#
|
// <copyright file="UserDto.cs" company="alveus.dev">
|
||
|
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
|
||
|
// </copyright>
|
||
|
|
||
|
namespace Astral.Services.Dtos;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Data transfer object for user.
|
||
|
/// </summary>
|
||
|
public class UserDto
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// User id.
|
||
|
/// </summary>
|
||
|
public Guid Id { 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>
|
||
|
/// The user's name.
|
||
|
/// </summary>
|
||
|
public string Username { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// The user's email address.
|
||
|
/// </summary>
|
||
|
public string EmailAddress { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// The ip address of the creator.
|
||
|
/// </summary>
|
||
|
public string CreatorIp { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// When the user last logged in.
|
||
|
/// </summary>
|
||
|
public DateTime LastLoggedIn { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// The user's role.
|
||
|
/// </summary>
|
||
|
public string UserRole { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Group for this user's connections.
|
||
|
/// </summary>
|
||
|
public Guid ConnectionGroup { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Group for this user's friends.
|
||
|
/// </summary>
|
||
|
public Guid FriendsGroup { get; set; }
|
||
|
}
|