Task Class¶
- class to_do_list_project.task.Task(id: int, name: str, description: str, due_date: datetime | str, assignee: list[str], status: TaskStatus = TaskStatus.IN_PROGRESS, priority: TaskPriority = TaskPriority.MEDIUM, categories: list[str] | None = None)¶
Represents a Task object.
It has attributes such as ID, name, description, etc.
- property assignee: list[str]¶
Getter for the list of assignees for the task.
- property categories: list[str]¶
Getter for the task’s list of categories.
- property description: str¶
Getter for the task’s description.
- property due_date: datetime¶
Getter for the task’s due date.
- property id: int¶
Getter for the task’s id.
- property name: str¶
Getter for the task’s name.
- property priority: TaskPriority¶
Getter for the task’s priority level.
- property status: TaskStatus¶
Getter for the task’s status.