package seedu.ezdo.model.util;

import seedu.ezdo.commons.exceptions.IllegalValueException;
import seedu.ezdo.model.EzDo;
import seedu.ezdo.model.ReadOnlyEzDo;
import seedu.ezdo.model.tag.UniqueTagList;
import seedu.ezdo.model.todo.StartDate;
import seedu.ezdo.model.todo.Email;
import seedu.ezdo.model.todo.Name;
import seedu.ezdo.model.todo.Task;
import seedu.ezdo.model.todo.Phone;
import seedu.ezdo.model.todo.UniqueTaskList.DuplicateTaskException;

public class SampleDataUtil {
    public static Task[] getSampleTasks() {
        try {
            return new Task[] {
                new Task(new Name("Buy some milk"), new Phone("87438807"), new Email("alexyeoh@gmail.com"),
                    new StartDate("Blk 30 Geylang Street 29, #06-40"),
                    new UniqueTagList("groceries")),
                new Task(new Name("Study for CS2103"), new Phone("99272758"), new Email("berniceyu@gmail.com"),
                    new StartDate("Blk 30 Lorong 3 Serangoon Gardens, #07-18"),
                    new UniqueTagList("school", "exams")),
                new Task(new Name("Buy new phone"), new Phone("93210283"), new Email("charlotte@yahoo.com"),
                    new StartDate("Blk 11 Ang Mo Kio Street 74, #11-04"),
                    new UniqueTagList("personal")),
                new Task(new Name("Visit neighbours"), new Phone("91031282"), new Email("lidavid@google.com"),
                    new StartDate("Blk 436 Serangoon Gardens Street 26, #16-43"),
                    new UniqueTagList("personal")),
                new Task(new Name("Prepare for midterms"), new Phone("92492021"), new Email("irfan@outlook.com"),
                    new StartDate("Blk 47 Tampines Street 20, #17-35"),
                    new UniqueTagList("school", "exams")),
                new Task(new Name("Prepare for OP2"), new Phone("92624417"), new Email("royb@gmail.com"),
                    new StartDate("Blk 45 Aljunied Street 85, #11-31"),
                    new UniqueTagList("school", "exams"))
            };
        } catch (IllegalValueException e) {
            throw new AssertionError("sample data cannot be invalid", e);
        }
    }

    public static ReadOnlyEzDo getSampleEzDo() {
        try {
            EzDo sampleEzDo = new EzDo();
            for (Task sampleTask : getSampleTasks()) {
                sampleEzDo.addTask(sampleTask);
            }
            return sampleEzDo;
        } catch (DuplicateTaskException e) {
            throw new AssertionError("sample data cannot contain duplicate tasks", e);
        }
    }
}

@@ -610,17 +610,18 @@
 Buy 
-some milk
+one cherry
 %22), 
@@ -635,16 +635,12 @@
 ne(%22
-87438807
+1111
 %22), 
@@ -650,16 +650,17 @@
  Email(%22
+1
 alexyeoh
@@ -712,16 +712,17 @@
 te(%22Blk 
+1
 30 Geyla
@@ -847,14 +847,20 @@
 for 
-CS2103
+two midterms
 %22), 
@@ -874,16 +874,12 @@
 ne(%22
-99272758
+2222
 %22), 
@@ -889,16 +889,17 @@
  Email(%22
+2
 bernicey
@@ -952,16 +952,17 @@
 te(%22Blk 
+2
 30 Loron
@@ -1096,16 +1096,15 @@
 Buy 
-new phon
+ps thre
 e%22),
@@ -1119,15 +1119,11 @@
 ne(%22
-9321028
+333
 3%22),
@@ -1134,16 +1134,17 @@
  Email(%22
+3
 charlott
@@ -1197,16 +1197,17 @@
 te(%22Blk 
+3
 11 Ang M
@@ -1326,16 +1326,21 @@
 (%22Visit 
+four 
 neighbou
@@ -1360,16 +1360,12 @@
 ne(%22
-91031282
+4444
 %22), 
@@ -1375,16 +1375,17 @@
  Email(%22
+4
 lidavid@
@@ -1579,23 +1579,26 @@
 are for 
-midterm
+five final
 s%22), new
@@ -1609,16 +1609,12 @@
 ne(%22
-92492021
+5555
 %22), 
@@ -1624,16 +1624,17 @@
  Email(%22
+5
 irfan@ou
@@ -1685,16 +1685,17 @@
 te(%22Blk 
+5
 47 Tampi
@@ -1825,15 +1825,25 @@
 are 
-for OP2
+six presentations
 %22), 
@@ -1857,16 +1857,12 @@
 ne(%22
-92624417
+6666
 %22), 
@@ -1872,16 +1872,17 @@
  Email(%22
+6
 royb@gma
@@ -1930,16 +1930,17 @@
 te(%22Blk 
+6
 45 Aljun

Update test data to aid debugging