@ekamjotsingh.ek/energy-management-system
Version:
A smart campus energy management system
21 lines (17 loc) • 534 B
text/typescript
// Class to represent maintenance staff
export default class MaintenanceStaff {
staffID: string;
name: string;
constructor(staffID: string, name: string) {
this.staffID = staffID;
this.name = name;
}
// Simulate scheduling maintenance
scheduleMaintenance(): void {
console.log(`Maintenance scheduled by ${this.name}.`);
}
// Simulate responding to alerts
respondToAlerts(): void {
console.log(`Responding to alerts by ${this.name}.`);
}
}