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("Alex Yeoh"), new Phone("87438807"), new Email("alexyeoh@gmail.com"),
                    new StartDate("Blk 30 Geylang Street 29, #06-40"),
                    new UniqueTagList("friends")),
                new Task(new Name("Bernice Yu"), new Phone("99272758"), new Email("berniceyu@gmail.com"),
                    new StartDate("Blk 30 Lorong 3 Serangoon Gardens, #07-18"),
                    new UniqueTagList("colleagues", "friends")),
                new Task(new Name("Charlotte Oliveiro"), new Phone("93210283"), new Email("charlotte@yahoo.com"),
                    new StartDate("Blk 11 Ang Mo Kio Street 74, #11-04"),
                    new UniqueTagList("neighbours")),
                new Task(new Name("David Li"), new Phone("91031282"), new Email("lidavid@google.com"),
                    new StartDate("Blk 436 Serangoon Gardens Street 26, #16-43"),
                    new UniqueTagList("family")),
                new Task(new Name("Irfan Ibrahim"), new Phone("92492021"), new Email("irfan@outlook.com"),
                    new StartDate("Blk 47 Tampines Street 20, #17-35"),
                    new UniqueTagList("classmates")),
                new Task(new Name("Roy Balakrishnan"), new Phone("92624417"), new Email("royb@gmail.com"),
                    new StartDate("Blk 45 Aljunied Street 85, #11-31"),
                    new UniqueTagList("colleagues"))
            };
        } 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);
        }
    }
}

@@ -606,17 +606,21 @@
 me(%22
-Alex Yeoh
+Buy some milk
 %22), 
@@ -785,22 +785,24 @@
 agList(%22
-f
+groce
 rie
-nd
 s%22)),%0A  
@@ -838,18 +838,24 @@
 me(%22
-Bernice Yu
+Study for CS2103
 %22), 
@@ -1034,28 +1034,22 @@
 st(%22
-colleagues%22, %22friend
+school%22, %22exam
 s%22))
@@ -1089,26 +1089,21 @@
 me(%22
-Charlotte Oliveiro
+Buy new phone
 %22), 
@@ -1276,18 +1276,16 @@
 st(%22
-neighbours
+personal
 %22)),
@@ -1324,16 +1324,24 @@
 me(%22
-David Li
+Visit neighbours
 %22), 
@@ -1521,14 +1521,16 @@
 st(%22
-family
+personal
 %22)),
@@ -1569,21 +1569,28 @@
 me(%22
-Irfan Ibrahim
+Prepare for midterms
 %22), 
@@ -1759,17 +1759,22 @@
 st(%22
-classmate
+school%22, %22exam
 s%22))
@@ -1814,24 +1814,23 @@
 me(%22
-Roy Balakrishnan
+Prepare for OP2
 %22), 
@@ -1996,17 +1996,22 @@
 st(%22
-colleague
+school%22, %22exam
 s%22))

Update names of sample tasks