Cats Galore!
"I have no special talent. I am only passionately curious." - Albert Einstein (source)
Bingus is a task management application based on Project Duke.
- todo : Adds a new ToDo item.
- deadline \by : Adds a new Deadline task.
-
event \from \to : Adds a new Event item.
-
mark : Marks task at index as done.
-
unmark : Marks task at index as not done.
-
delete : Deletes task at index .
-
find : Finds task with matching keywords of .
-
bye: Exits the program.
- Level-0: Renaming Bot
- Level-1: Greet, Echo, Exit
- Level-2: Add, List
- Level-3: Mark as Done
- Level-4: ToDos, Events, Deadlines
- Level-5: Handle Errors
- Level-6: Delete
- Level-7: Save
- Level-8: Dates and Times
- Level-9: Find
- Level-10: GUI
- record the tasks
- mark the taks as done or not
- record deadlines and durations of deadlines and events!
```
public class Event extends Task{
protected LocalDate from;
protected LocalDate to;
/**
* Creates an event task.
*
* @param description Description of the task.
* @param from Start date of the task.
* @param to End date of the task.
*/
public Event(String description, String from, String to) {
super(description);
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
this.from = LocalDate.parse(from, formatter);
this.to = LocalDate.parse(to, formatter);
}
/**
* getter for task icon.
*
*/
@Override
public String getTaskIcon() {
return "E";
}
/**
* returns string representation of event.
*
*/
@Override
public String ToString() {
return super.ToString() + " (from: " + from.format(DateTimeFormatter.ofPattern("MMM d yyyy"))
+ " to: " + to.format(DateTimeFormatter.ofPattern("MMM d yyyy")) + ")";
}
/**
* returns a string representation of event used to store the event on hard drive.
*
*/
@Override
public String toStore() {
if (isDone) {
return getTaskIcon() + "/" + "1" + "/" + description + "/" + from + "/" + to;
} else {
return getTaskIcon() + "/" + "0" + "/" + description + "/" + from + "/" + to;
}
}
```