package seedu.task.model.util;

import seedu.task.commons.exceptions.IllegalValueException;
import seedu.task.model.ReadOnlyTaskManager;
import seedu.task.model.TaskManager;
import seedu.task.model.tag.UniqueTagList;
import seedu.task.model.task.Date;
import seedu.task.model.task.Location;
import seedu.task.model.task.Name;
import seedu.task.model.task.Remark;
import seedu.task.model.task.Task;
import seedu.task.model.task.UniqueTaskList.DuplicateTaskException;

public class SampleDataUtil {
    public static Task[] getSampleTasks() {
        try {
            return new Task[] {
                new Task(new Name("Alex Yeoh"), new Date("07-03-2007"), new Remark("alexyeoh@gmail.com"),
                    new Location("Blk 30 Geylang Street 29, #06-40"),
                    new UniqueTagList("friends")),
                new Task(new Name("Bernice Yu"), new Date("12-12-2017"), new Remark("berniceyu@gmail.com"),
                    new Location("Blk 30 Lorong 3 Serangoon Gardens, #07-18"),
                    new UniqueTagList("colleagues", "friends")),
                new Task(new Name("Charlotte Oliveiro"), new Date("07-08-2015"), new Remark("charlotte@yahoo.com"),
                    new Location("Blk 11 Ang Mo Kio Street 74, #11-04"),
                    new UniqueTagList("neighbours")),
                new Task(new Name("David Li"), new Date("23-08-2017"), new Remark("lidavid@google.com"),
                    new Location("Blk 436 Serangoon Gardens Street 26, #16-43"),
                    new UniqueTagList("family")),
                new Task(new Name("Irfan Ibrahim"), new Date("09-03-2017"), new Remark("irfan@outlook.com"),
                    new Location("Blk 47 Tampines Street 20, #17-35"),
                    new UniqueTagList("classmates")),
                new Task(new Name("Roy Balakrishnan"), new Date("17-03-2017"), new Remark("royb@gmail.com"),
                    new Location("Blk 45 Aljunied Street 85, #11-31"),
                    new UniqueTagList("colleagues"))
            };
        } catch (IllegalValueException e) {
            throw new AssertionError("sample data cannot be invalid", e);
        }
    }

    public static ReadOnlyTaskManager getSampleTaskManager() {
        try {
            TaskManager sampleAB = new TaskManager();
            for (Task sampleTask : getSampleTasks()) {
                sampleAB.addTask(sampleTask);
            }
            return sampleAB;
        } catch (DuplicateTaskException e) {
            throw new AssertionError("sample data cannot contain duplicate tasks", e);
        }
    }
}

@@ -620,16 +620,26 @@
 e(%22A
-lex Yeoh
+dd tutor to github
 %22), 
@@ -678,26 +678,24 @@
 rk(%22
-alexyeoh@gmail.com
+For CS2103T V0.1
 %22),%0A
@@ -803,23 +803,23 @@
 agList(%22
-friends
+project
 %22)),%0A   
@@ -855,17 +855,25 @@
 e(%22B
-ernice Yu
+ridge competition
 %22), 
@@ -912,27 +912,24 @@
 rk(%22
-berniceyu@gmail.com
+Match 3, table A
 %22),%0A
@@ -1046,26 +1046,19 @@
 agList(%22
-colleagues
+CCA
 %22, %22frie
@@ -1107,23 +1107,22 @@
 %22Cha
-rlotte Oliveiro
+nge USD to SGD
 %22), 
@@ -1161,27 +1161,33 @@
 rk(%22
-charlotte@yahoo.com
+Too much change from trip
 %22),%0A
@@ -1302,18 +1302,13 @@
 st(%22
-neighbours
+money
 %22)),
@@ -1348,15 +1348,29 @@
 e(%22D
-avid Li
+ownload lecture notes
 %22), 
@@ -1409,26 +1409,28 @@
 rk(%22
-lidavid@google.com
+For open-book finals
 %22),%0A
@@ -1554,13 +1554,13 @@
 t(%22f
-amily
+inals
 %22)),
@@ -1600,20 +1600,43 @@
 e(%22I
-rfan Ibrahim
+nvite friends over for housewarming
 %22), 
@@ -1675,25 +1675,28 @@
 rk(%22
-irfan@outlook.com
+prepare food as well
 %22),%0A
@@ -1809,18 +1809,24 @@
 st(%22
-classmates
+friends%22, %22house
 %22)),
@@ -1866,23 +1866,32 @@
 e(%22R
-oy Balakrishnan
+ewatch lecture 4 webcast
 %22), 
@@ -1930,22 +1930,26 @@
 rk(%22
-royb@gmail.com
+on algebraic query
 %22),%0A
@@ -2062,17 +2062,13 @@
 st(%22
-colleague
+final
 s%22))

change initial load data