finalizare 1.0
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
namespace HealthcareManagerUiWebAssem.Entities;
|
||||
|
||||
public class Appointment
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
public string PatientId { get; set; } = string.Empty;
|
||||
public string DoctorId { get; set; } = string.Empty;
|
||||
public List<DateTime> AppointmentsList { get; set; } = [];
|
||||
|
||||
public void SetId(string id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
|
||||
public void SetPatientId(string patientId)
|
||||
{
|
||||
PatientId = patientId;
|
||||
}
|
||||
|
||||
public void SetDoctorIid(string doctorId)
|
||||
{
|
||||
DoctorId = doctorId;
|
||||
}
|
||||
|
||||
public void AddAppointment(DateTime appointmentDate)
|
||||
{
|
||||
var utcAppointmentDate = new DateTime(appointmentDate.Year, appointmentDate.Month, appointmentDate.Day, 0, 0, 0,
|
||||
DateTimeKind.Utc);
|
||||
AppointmentsList.Add(utcAppointmentDate);
|
||||
}
|
||||
|
||||
public void RemoveAppointment(DateTime appointmentDate)
|
||||
{
|
||||
var utcAppointmentDate = new DateTime(appointmentDate.Year, appointmentDate.Month, appointmentDate.Day, 0, 0, 0,
|
||||
DateTimeKind.Utc);
|
||||
AppointmentsList.Remove(utcAppointmentDate);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
namespace HealthcareManagerUiWebAssem.Entities;
|
||||
|
||||
public class Chat
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
public List<Message> Messages { get; set; } = [];
|
||||
|
||||
public void SetId(string id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
|
||||
public void SetMessages(List<Message> messages)
|
||||
{
|
||||
Messages = messages;
|
||||
}
|
||||
}
|
||||
|
||||
public class Message(Guid userId, string content)
|
||||
{
|
||||
public Guid UserId { get; set; } = userId;
|
||||
public string Content { get; set; } = content;
|
||||
|
||||
public void SetUserId(Guid userId)
|
||||
{
|
||||
UserId = userId;
|
||||
}
|
||||
|
||||
public void SetContent(string content)
|
||||
{
|
||||
Content = content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace HealthcareManagerUiWebAssem.Entities;
|
||||
|
||||
public class Doctor
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Email { get; set; } = string.Empty;
|
||||
public string Password { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace HealthcareManagerUiWebAssem.Entities;
|
||||
|
||||
public class MedicalHistory
|
||||
{
|
||||
[Key] public Guid Id { get; set; } = Guid.NewGuid();
|
||||
public Guid UserId { get; set; } = Guid.Empty;
|
||||
public byte[] Content { get; set; } = [];
|
||||
|
||||
public void SetId(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
|
||||
public void SetUserId(Guid userId)
|
||||
{
|
||||
UserId = userId;
|
||||
}
|
||||
|
||||
public void SetContent(byte[] content)
|
||||
{
|
||||
Content = content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace HealthcareManagerUiWebAssem.Entities;
|
||||
|
||||
public class Patient
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Email { get; set; } = string.Empty;
|
||||
public string Password { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user