Class CalendarAppointmentResourceDTO

java.lang.Object
fr.paris.lutece.plugins.appointment.modules.resource.business.calendar.CalendarAppointmentResourceDTO
All Implemented Interfaces:
Serializable, Comparable<CalendarAppointmentResourceDTO>

public class CalendarAppointmentResourceDTO extends Object implements Serializable, Comparable<CalendarAppointmentResourceDTO>
DTO to display appointments of resources in a calendar
See Also:
  • Constructor Details

    • CalendarAppointmentResourceDTO

      public CalendarAppointmentResourceDTO(int nIdApppointment, int nStartingHour, int nStartingMinute, int nEndingHour, int nEndingMinute, String appointmentDescription, int nIdForm)
      Creates a new calendar appointment resource DTO
      Parameters:
      nIdApppointment - The id of the appointment
      nStartingHour - The starting hour
      nStartingMinute - The starting minute
      nEndingHour - The ending hour
      nEndingMinute - The ending minute
      appointmentDescription - The description of the appointment
      nIdForm - The id of the form
  • Method Details

    • getIdApppointment

      public int getIdApppointment()
      Get the id of the associated appointment
      Returns:
      The id of the associated appointment
    • setIdApppointment

      public void setIdApppointment(int nIdApppointment)
      Set the id of the associated appointment
      Parameters:
      nIdApppointment - The id of the associated appointment
    • getStartingHour

      public int getStartingHour()
      Get the starting hour of the appointment
      Returns:
      The starting hour of the appointment
    • setStartingHour

      public void setStartingHour(int nStartingHour)
      Set the starting hour of the appointment
      Parameters:
      nStartingHour - The starting hour of the appointment
    • getStartingMinute

      public int getStartingMinute()
      Get the starting minute of the appointment
      Returns:
      The starting minute of the appointment
    • setStartingMinute

      public void setStartingMinute(int nStartingMinute)
      Get the starting minute of the appointment
      Parameters:
      nStartingMinute - The starting minute of the appointment
    • getEndingHour

      public int getEndingHour()
      Get the ending hour of the appointment
      Returns:
      The ending hour of the appointment
    • setEndingHour

      public void setEndingHour(int nEndingHour)
      Set the ending hour of the appointment
      Parameters:
      nEndingHour - The ending hour of the appointment
    • getEndingMinute

      public int getEndingMinute()
      Get the ending minute of the appointment
      Returns:
      The ending minute of the appointment
    • setEndingMinute

      public void setEndingMinute(int nEndingMinute)
      Set the ending minute of the appointment
      Parameters:
      nEndingMinute - The ending minute of the appointment
    • getDuration

      public int getDuration()
      Get the duration of the appointment in minutes
      Returns:
      The duration of the appointment in minutes
    • getAppointmentDescription

      public String getAppointmentDescription()
      Get the description of the appointment
      Returns:
      The description of the appointment
    • setAppointmentDescription

      public void setAppointmentDescription(String appointmentDescription)
      Set the description of the appointment
      Parameters:
      appointmentDescription - The description of the appointment
    • getIdForm

      public int getIdForm()
      Get the id of the associated formulaire
      Returns:
      The id of the associated formulaire
    • setIdForm

      public void setIdForm(int nIdForm)
      Set the id of the associated form
      Parameters:
      nIdApppointment - The id of the associated form
    • compareTo

      public int compareTo(CalendarAppointmentResourceDTO o)
      Specified by:
      compareTo in interface Comparable<CalendarAppointmentResourceDTO>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object