
namespace FamilyTreeAPI.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 string Email { get; set; }
    public string? Department { get; set; }
    public string? Phone { get; set; }
    public string? Position { get; set; }
    public string? ManagerEmail { get; set; }
    public int Role { get; set; }
    
    public AuthenticateResponse(UserDto user, string token, int role)
    {
        Id = user.Id;
        FirstName = user.FirstName;
        LastName = user.LastName;
        Username = user.Username;
        Email = user.Email;
        Department = user.Department;
        Position = user.Position;
        ManagerEmail = user.ManagerEmail;
        Role = role;
        Token = token;
        Phone = user.Phone;
       


    }
}
