public class CalendarAppointmentResourceDTO extends Object implements Serializable, Comparable<CalendarAppointmentResourceDTO>
| Constructor and Description |
|---|
CalendarAppointmentResourceDTO(int nIdApppointment,
int nStartingHour,
int nStartingMinute,
int nEndingHour,
int nEndingMinute,
String appointmentDescription)
Creates a new calendar appointment resource DTO
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(CalendarAppointmentResourceDTO o) |
boolean |
equals(Object o) |
String |
getAppointmentDescription()
Get the description of the appointment
|
int |
getDuration()
Get the duration of the appointment in minutes
|
int |
getEndingHour()
Get the ending hour of the appointment
|
int |
getEndingMinute()
Get the ending minute of the appointment
|
int |
getIdApppointment()
Get the id of the associated appointment
|
int |
getStartingHour()
Get the starting hour of the appointment
|
int |
getStartingMinute()
Get the starting minute of the appointment
|
int |
hashCode() |
void |
setAppointmentDescription(String appointmentDescription)
Set the description of the appointment
|
void |
setEndingHour(int nEndingHour)
Set the ending hour of the appointment
|
void |
setEndingMinute(int nEndingMinute)
Set the ending minute of the appointment
|
void |
setIdApppointment(int nIdApppointment)
Set the id of the associated appointment
|
void |
setStartingHour(int nStartingHour)
Set the starting hour of the appointment
|
void |
setStartingMinute(int nStartingMinute)
Get the starting minute of the appointment
|
public CalendarAppointmentResourceDTO(int nIdApppointment,
int nStartingHour,
int nStartingMinute,
int nEndingHour,
int nEndingMinute,
String appointmentDescription)
nIdApppointment - The id of the appointmentnStartingHour - The starting hournStartingMinute - The starting minutenEndingHour - The ending hournEndingMinute - The ending minuteappointmentDescription - The description of the appointmentpublic int getIdApppointment()
public void setIdApppointment(int nIdApppointment)
nIdApppointment - The id of the associated appointmentpublic int getStartingHour()
public void setStartingHour(int nStartingHour)
nStartingHour - The starting hour of the appointmentpublic int getStartingMinute()
public void setStartingMinute(int nStartingMinute)
nStartingMinute - The starting minute of the appointmentpublic int getEndingHour()
public void setEndingHour(int nEndingHour)
nEndingHour - The ending hour of the appointmentpublic int getEndingMinute()
public void setEndingMinute(int nEndingMinute)
nEndingMinute - The ending minute of the appointmentpublic int getDuration()
public String getAppointmentDescription()
public void setAppointmentDescription(String appointmentDescription)
appointmentDescription - The description of the appointmentpublic int compareTo(CalendarAppointmentResourceDTO o)
compareTo in interface Comparable<CalendarAppointmentResourceDTO>Copyright © 2017 City of Paris. All rights reserved.