Skip to content
Snippets Groups Projects
Commit d4f70430 authored by Rafi Zereselasie (raz070)'s avatar Rafi Zereselasie (raz070)
Browse files

Added methods for adding and removing positions for a given employee.

parent 79da1ce9
No related branches found
No related tags found
No related merge requests found
......@@ -28,9 +28,9 @@ public class Model {
date = LocalDate.now();
}
isManager = false; // changes if manager logs in
this.shifts = new HashMap<Integer, Shift>();
this.employees = new HashMap<Integer, Employee>();
this.timeOff = new HashMap<Integer, TimeOff>();
this.shifts = new HashMap<>();
this.employees = new HashMap<>();
this.timeOff = new HashMap<>();
try {
InetAddress ip = InetAddress.getByName(hostname);
this.socket = new Socket(ip, port);
......@@ -262,15 +262,12 @@ public class Model {
return shifts;
}
//todo
void addPosition(int employeeID, String position) {
writer.println();
writer.println("addPosition/" + employeeID + "/" + position);
}
//todo
void removePosition(int employeeID, String position) {
writer.println();
writer.println("removePosition/" + employeeID + "/" + position);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment