package seedu.geekeep.model.util;

import seedu.geekeep.commons.exceptions.IllegalValueException;
import seedu.geekeep.model.ReadOnlyTaskManager;
import seedu.geekeep.model.TaskManager;
import seedu.geekeep.model.tag.UniqueTagList;
import seedu.geekeep.model.task.Location;
import seedu.geekeep.model.task.StartDateTime;
import seedu.geekeep.model.task.EndDateTime;
import seedu.geekeep.model.task.Task;
import seedu.geekeep.model.task.Title;
import seedu.geekeep.model.task.UniqueTaskList.DuplicateTaskException;

public class SampleDataUtil {
    public static Task[] getSampleTasks() {
        try {
            return new Task[] {
                new Task(new Title("Alex Yeoh"), new EndDateTime("87438807"), new StartDateTime("alexyeoh@gmail.com"),
                    new Location("Blk 30 Geylang Street 29, #06-40"),
                    new UniqueTagList("friends")),
                new Task(new Title("Bernice Yu"), new EndDateTime("99272758"), new StartDateTime("berniceyu@gmail.com"),
                    new Location("Blk 30 Lorong 3 Serangoon Gardens, #07-18"),
                    new UniqueTagList("colleagues", "friends")),
                new Task(new Title("Charlotte Oliveiro"), new EndDateTime("93210283"), new StartDateTime("charlotte@yahoo.com"),
                    new Location("Blk 11 Ang Mo Kio Street 74, #11-04"),
                    new UniqueTagList("neighbours")),
                new Task(new Title("David Li"), new EndDateTime("91031282"), new StartDateTime("lidavid@google.com"),
                    new Location("Blk 436 Serangoon Gardens Street 26, #16-43"),
                    new UniqueTagList("family")),
                new Task(new Title("Irfan Ibrahim"), new EndDateTime("92492021"), new StartDateTime("irfan@outlook.com"),
                    new Location("Blk 47 Tampines Street 20, #17-35"),
                    new UniqueTagList("classmates")),
                new Task(new Title("Roy Balakrishnan"), new EndDateTime("92624417"), new StartDateTime("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 getSampleAddressBook() {
        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 persons", e);
        }
    }
}

@@ -668,17 +668,17 @@
 le(%22
-Alex Yeoh
+Meeting 1
 %22), 
@@ -698,57 +698,90 @@
 me(%22
-87438807%22), new StartDateTime(%22alexyeoh@gmail.com
+2017-04-01T10:16:30%22), %0A                    new StartDateTime(%222017-04-01T10:15:30
 %22),%0A
@@ -941,18 +941,17 @@
 le(%22
-Bernice Yu
+Meeting 2
 %22), 
@@ -971,19 +971,50 @@
 me(%22
-99272758%22),
+2017-04-02T10:16:30%22),%0A                   
  new
@@ -1033,27 +1033,27 @@
 me(%22
-berniceyu@gmail.com
+2017-04-02T10:15:30
 %22),%0A
@@ -1236,26 +1236,17 @@
 le(%22
-Charlotte Oliveiro
+Meeting 3
 %22), 
@@ -1266,19 +1266,50 @@
 me(%22
-93210283%22),
+2017-04-03T10:16:30%22),%0A                   
  new
@@ -1328,27 +1328,27 @@
 me(%22
-charlotte@yahoo.com
+2017-04-03T10:15:30
 %22),%0A
@@ -1514,16 +1514,17 @@
 le(%22
-David Li
+Meeting 4
 %22), 
@@ -1544,57 +1544,90 @@
 me(%22
-91031282%22), new StartDateTime(%22lidavid@google.com
+2017-04-04T10:16:30%22), %0A                    new StartDateTime(%222017-04-04T10:15:30
 %22),%0A
@@ -1797,21 +1797,17 @@
 le(%22
-Irfan Ibrahim
+Meeting 5
 %22), 
@@ -1827,56 +1827,90 @@
 me(%22
-92492021%22), new StartDateTime(%22irfan@outlook.com
+2017-04-05T10:16:30%22), %0A                    new StartDateTime(%222017-04-05T10:15:30
 %22),%0A
@@ -2074,24 +2074,17 @@
 le(%22
-Roy Balakrishnan
+Meeting 6
 %22), 
@@ -2104,53 +2104,90 @@
 me(%22
-92624417%22), new StartDateTime(%22royb@gmail.com
+2017-04-06T10:16:30%22), %0A                    new StartDateTime(%222017-04-06T10:15:30
 %22),%0A
@@ -2859,14 +2859,12 @@
 ate 
-person
+task
 s%22, 

Update SampleDataUtil to reflect changes in Task