Prog_3/Trabalhos/ProjetoHospital2/src/Entities/HospitalCare/HospitalAppointments/HospitalAppointment.java
package Entities.HospitalCare.HospitalAppointments;

import java.sql.Date;

import Entities.Person.Doctor.Doctor;
import Entities.Person.Patient.Patient;

public class HospitalAppointment {
  private int id;
  private Date Date;
  private Patient Patient;
  private Doctor Doctor;

  public HospitalAppointment(int id, Date Date, Patient Patient, Doctor Doctor) {
    this.id = id;
    this.Date = Date;
    this.Patient = Patient;
    this.Doctor = Doctor;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public Date getDate() {
    return Date;
  }

  public void setDate(Date Date) {
    this.Date = Date;
  }

  public Patient getPatient() {
    return Patient;
  }

  public void setPatient(Patient Patient) {
    this.Patient = Patient;
  }

  public Doctor getDoctor() {
    return Doctor;
  }

  public void setDoctor(Doctor Doctor) {
    this.Doctor = Doctor;
  }

  public String getPatientName() {
    return Patient.getName();
  }

  public String getDoctorName() {
    return Doctor.getName();
  }

  public String getSpecialtyName() {
    return Doctor.getSpecialty().getName();
  }

  @Override
  public String toString() {
    return "HospitalAppointment [Date=" + Date + ", Patient=" + Patient + ", Doctor=" + Doctor + "]";
  }
}