21 lines
806 B
JavaScript
21 lines
806 B
JavaScript
class Appointment {
|
|
constructor(pStartDate, pStartTime, pEndTime, pSubject, pNotice, pEndDate, pLocation) {
|
|
this.startDate = pStartDate;
|
|
this.startTime = pStartTime;
|
|
this.endDate = pEndDate;
|
|
this.endTime = pEndTime;
|
|
this.subject = pSubject;
|
|
this.notice = pNotice;
|
|
this.location = pLocation;
|
|
}
|
|
|
|
isValid() {
|
|
return this.startDate != null && this.startDate !== "" &&
|
|
this.startTime != null && this.startTime !== "" &&
|
|
this.endDate != null && this.endDate !== "" &&
|
|
this.endTime != null && this.endTime !== "" &&
|
|
this.subject != null && this.subject !== "" &&
|
|
this.notice != null && this.notice !== "" &&
|
|
this.location != null && this.location !== "";
|
|
}
|
|
} |