Parking_space_ASPNET/Parking_spaces/Models/AuthenticateResponse.cs

22 lines
520 B
C#
Raw Normal View History

2024-02-01 11:37:15 +08:00
namespace Parking_spaces.Models;
using Parking_spaces.Entities;
public class AuthenticateResponse
{
public int Id { get; set; }
public string? FirstName { get; set; }
public string? LastName { get; set; }
public string? Username { get; set; }
public string Token { get; set; }
public AuthenticateResponse(User user, string token)
{
Id = user.Id;
FirstName = user.FirstName;
LastName = user.LastName;
Username = user.Username;
Token = token;
}
}