Files
BeWoPlaner/BeWoPlanerMobil/Scripts/appointment.js

19 lines
699 B
JavaScript

class Appointment {
constructor(pStartDate, pStartTime, pEndTime, pSubject, pNotice, pEndDate) {
this.startDate = pStartDate;
this.startTime = pStartTime;
this.endDate = pEndDate;
this.endTime = pEndTime;
this.subject = pSubject;
this.notice = pNotice;
}
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 !== "";
}
}