41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace TIAMWebApp.Shared.Application.Models
|
|
{
|
|
public class User
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string? Email { get; set; }
|
|
public string? Password { get; set; }
|
|
public string? PhoneNumber { get; set; }
|
|
public bool IsLoggedIn { get; set; }
|
|
public UserType UserType { get; set; }
|
|
public int UserRoles { get; set; }
|
|
public Dictionary<int, string> UserRolesDictionary { get; set; }
|
|
|
|
public User(string email, string phonenumber, string password)
|
|
{
|
|
Id = new Guid();
|
|
Email = email;
|
|
Password = password;
|
|
PhoneNumber = phonenumber;
|
|
UserRolesDictionary = new Dictionary<int, string>();
|
|
}
|
|
|
|
}
|
|
|
|
public enum UserType
|
|
{
|
|
Hotel = 1,
|
|
Transfer = 2,
|
|
Guide = 3,
|
|
Admin = 4,
|
|
User = 5,
|
|
Driver= 6
|
|
}
|
|
}
|