43 lines
970 B
Java
43 lines
970 B
Java
package hhn.temp.project;
|
|
|
|
public class Task {
|
|
String name;
|
|
String description;
|
|
int taskId;
|
|
int workerId;
|
|
TaskState state;
|
|
public Task(int taskId, int workerId, String name, String description) {
|
|
this.name = name;
|
|
this.description = description;
|
|
this.taskId = taskId;
|
|
this.workerId = workerId;
|
|
this.state = TaskState.IN_PROGRESS;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
public int getTaskId() {
|
|
return taskId;
|
|
}
|
|
public int getWorkerId() {
|
|
return workerId;
|
|
}
|
|
public void setTaskState(TaskState state) {
|
|
this.state = state;
|
|
}
|
|
public TaskState getTaskState() {
|
|
return state;
|
|
}
|
|
|
|
}
|