Parking_space_WEBAPI/WebApi_data_value/Models/AuthenticateResponse.cs

22 lines
532 B
C#
Raw Permalink Normal View History

2024-03-05 19:49:58 +08:00
namespace Parking_space_WebAPI.Models;
2024-02-01 13:48:38 +08:00
2024-03-05 19:49:58 +08:00
using Parking_space_WebAPI.Entities;
2024-02-01 13:48:38 +08:00
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;
}
}