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.EndDateTime;
import seedu.geekeep.model.task.Location;
import seedu.geekeep.model.task.StartDateTime;
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 StartDateTime("2017-04-01T10:16:30"),
                        new EndDateTime("2017-04-01T10:16:30"),
                        new Location("Blk 30 Geylang Street 29, #06-40"),
                        new UniqueTagList("friends")),
                    new Task(new Title("Bernice Yu"), new StartDateTime("2017-04-01T10:16:30"),
                        new EndDateTime("2017-04-02T10:16:30"),
                        new Location("Blk 30 Lorong 3 Serangoon Gardens, #07-18"),
                        new UniqueTagList("colleagues", "friends")),
                    new Task(new Title("Charlotte Oliveiro"), new StartDateTime("2017-04-01T10:16:30"),
                        new EndDateTime("2017-04-01T10:16:30"),
                        new Location("Blk 11 Ang Mo Kio Street 74, #11-04"),
                        new UniqueTagList("neighbours")),
                    new Task(new Title("David Li"), new StartDateTime("2017-04-01T10:16:30"),
                        new EndDateTime("2017-04-01T10:16:30"),
                        new Location("Blk 436 Serangoon Gardens Street 26, #16-43"),
                        new UniqueTagList("family")),
                    new Task(new Title("Irfan Ibrahim"), new StartDateTime("2017-04-01T10:16:30"),
                        new EndDateTime("2017-04-01T10:16:30"),
                        new Location("Blk 47 Tampines Street 20, #17-35"),
                        new UniqueTagList("classmates")),
                    new Task(new Title("Roy Balakrishnan"), new StartDateTime("2017-04-01T10:16:30"),
                        new EndDateTime("2017-04-01T10:16:30"),
                        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 tasks", e);
        }
    }
}

@@ -636,36 +636,32 @@
                 
-    
 new Task(new Tit
@@ -711,32 +711,32 @@
 -01T10:16:30%22),%0A
+
                 
@@ -904,36 +904,32 @@
 st(%22friends%22)),%0A
-    
                 
@@ -996,32 +996,32 @@
 -01T10:16:30%22),%0A
+
                 
@@ -1212,36 +1212,32 @@
 %22, %22friends%22)),%0A
-    
                 
@@ -1312,32 +1312,32 @@
 -01T10:16:30%22),%0A
+
                 
@@ -1515,28 +1515,24 @@
 ghbours%22)),%0A
-    
             
@@ -1601,32 +1601,32 @@
 -01T10:16:30%22),%0A
+
                 
@@ -1808,28 +1808,24 @@
 %22family%22)),%0A
-    
             
@@ -1899,32 +1899,32 @@
 -01T10:16:30%22),%0A
+
                 
@@ -2100,28 +2100,24 @@
 ssmates%22)),%0A
-    
             

Fix SampleDataUtil checkstyle