package seedu.taskmanager.model.util;

import seedu.taskmanager.commons.exceptions.IllegalValueException;
import seedu.taskmanager.model.TaskManager;
import seedu.taskmanager.model.ReadOnlyTaskManager;
import seedu.taskmanager.model.tag.UniqueTagList;
import seedu.taskmanager.model.task.Description;
import seedu.taskmanager.model.task.EndDate;
import seedu.taskmanager.model.task.Title;
import seedu.taskmanager.model.task.Task;
import seedu.taskmanager.model.task.StartDate;
import seedu.taskmanager.model.task.UniqueTaskList.DuplicateTaskException;

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

@@ -703,16 +703,22 @@
  Title(%22
+Visit 
 Alex Yeo
@@ -741,15 +741,17 @@
 te(%22
-8743880
+01/11/201
 7%22),
@@ -768,26 +768,18 @@
 te(%22
-alexyeoh@gmail.com
+02/11/2017
 %22),%0A
@@ -811,24 +811,39 @@
 escription(%22
+His address is 
 Blk 30 Geyla
@@ -905,23 +905,28 @@
 agList(%22
-friends
+social event
 %22)),%0A   
@@ -958,16 +958,35 @@
  Title(%22
+Collect files from 
 Bernice 
@@ -1010,16 +1010,18 @@
 te(%22
-99272758
+05/11/2017
 %22), 
@@ -1037,27 +1037,18 @@
 te(%22
-berniceyu@gmail.com
+08/11/2017
 %22),%0A
@@ -1088,49 +1088,32 @@
 on(%22
-Blk 30 Lorong 3 Serangoon Gardens, #07-18
+Important business files
 %22),%0A
@@ -1169,14 +1169,15 @@
 %22, %22
-friend
+busines
 s%22))
@@ -1214,16 +1214,22 @@
  Title(%22
+Visit 
 Charlott
@@ -1261,16 +1261,18 @@
 te(%22
-93210283
+20/12/2017
 %22), 
@@ -1288,27 +1288,18 @@
 te(%22
-charlotte@yahoo.com
+20/12/2017
 %22),%0A
@@ -1331,24 +1331,39 @@
 escription(%22
+Her address is 
 Blk 11 Ang M
@@ -1432,18 +1432,14 @@
 st(%22
-neighbours
+social
 %22)),
@@ -1479,16 +1479,21 @@
 le(%22
+Call 
 David Li
 %22), 
@@ -1492,257 +1492,29 @@
 d Li
-%22), new StartDate(%2291031282%22), new EndDate(%22lidavid@google.com%22),%0A                    new Description(%22Blk 436 Serangoon Gardens Street 26, #16-43%22),%0A                    new UniqueTagList(%22family%22)),%0A                new Task(new Title(%22Irfan Ibrahim
+ about CS2103 project
 %22), 
@@ -1532,16 +1532,18 @@
 te(%22
-92492021
+08/08/2017
 %22), 
@@ -1559,25 +1559,18 @@
 te(%22
-irfan@outlook.com
+10/08/2017
 %22),%0A
@@ -1610,41 +1610,30 @@
 on(%22
-Blk 47 Tampines Street 20, #17-35
+his number is 12345678
 %22),%0A
@@ -1675,18 +1675,18 @@
 st(%22
-classmates
+schoolwork
 %22)),
@@ -1726,24 +1726,29 @@
 le(%22
-Roy Balakrishnan
+Submit project report
 %22), 
@@ -1766,14 +1766,16 @@
 te(%22
-926244
+20/07/20
 17%22)
@@ -1793,22 +1793,18 @@
 te(%22
-royb@gmail.com
+21/07/2017
 %22),%0A
@@ -1844,41 +1844,32 @@
 on(%22
-Blk 45 Aljunied Street 85, #11-31
+Submit to tutor in class
 %22),%0A
@@ -1907,26 +1907,26 @@
 agList(%22
-colleagues
+schoolwork
 %22))%0A    

Edit sampledatautil