Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Ragnapop/ip

 
 

Repository files navigation

Bingus: The Friendly Cat TaskChecker!

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.

Commands that Bingus Understands!

  • 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.

Levels that Bingus went through!

  • 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

Bingus is here to...

  1. record the tasks
  2. mark the taks as done or not
  3. record deadlines and durations of deadlines and events!

Bingus records events using...

```
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;
        }
    }
```

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 95.5%
  • Shell 2.6%
  • Batchfile 1.9%