forked from nus-cs2103-AY2021S1/ip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Level-4: Duke now divide tasks into Todos, Events, and Deadlines to s…
…erve users better
- Loading branch information
JinYuze
committed
Aug 18, 2020
1 parent
582a555
commit 12c6435
Showing
5 changed files
with
85 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package main.java; | ||
|
||
public class Deadline extends Task { | ||
protected String time; | ||
|
||
public Deadline(String content, String time) { | ||
super(content); | ||
this.time = time; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "[D]" + (super.status ? "[√]" : "[×]") + super.content + "(" + time + ")" + " <-"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package main.java; | ||
|
||
public class Event extends Task { | ||
protected String time; | ||
|
||
public Event(String content, String time) { | ||
super(content); | ||
this.time = time; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "[E]" + (super.status ? "[√]" : "[×]") + super.content + "(" + time + ")" + " <-"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package main.java; | ||
|
||
public class Todo extends Task { | ||
|
||
public Todo(String content) { | ||
super(content); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "[T]" + super.toString(); | ||
} | ||
} |