package seedu.taskboss.model.util;

import seedu.taskboss.commons.exceptions.IllegalValueException;
import seedu.taskboss.model.ReadOnlyTaskBoss;
import seedu.taskboss.model.TaskBoss;
import seedu.taskboss.model.category.UniqueCategoryList;
import seedu.taskboss.model.task.DateTime;
import seedu.taskboss.model.task.Information;
import seedu.taskboss.model.task.Name;
import seedu.taskboss.model.task.PriorityLevel;
import seedu.taskboss.model.task.Recurrence;
import seedu.taskboss.model.task.Recurrence.Frequency;
import seedu.taskboss.model.task.Task;
import seedu.taskboss.model.task.UniqueTaskList.DuplicateTaskException;

public class SampleDataUtil {
    public static Task[] getSampleTasks() {
        try {
            return new Task[] {
                new Task(new Name("Alex Yeoh"), new PriorityLevel("Yes"),
                        new DateTime("Feb 19, 2017"), new DateTime("Feb 20, 2017"),
                    new Information("Blk 30 Geylang Street 29, #06-40"),
                    new Recurrence(Frequency.DAILY),
                    new UniqueCategoryList("friends")),
                new Task(new Name("Bernice Yu"), new PriorityLevel("Yes"),
                    new DateTime("Feb 19, 2017"), new DateTime("Feb 20, 2017"),
                    new Information("Blk 30 Lorong 3 Serangoon Gardens, #07-18"),
                    new Recurrence(Frequency.DAILY),
                    new UniqueCategoryList("colleagues", "friends")),
                new Task(new Name("Charlotte Oliveiro"), new PriorityLevel("Yes"),
                    new DateTime("Feb 19, 2017"), new DateTime("Feb 20, 2017"),
                    new Information("Blk 11 Ang Mo Kio Street 74, #11-04"),
                    new Recurrence(Frequency.DAILY),
                    new UniqueCategoryList("neighbours")),
                new Task(new Name("David Li"), new PriorityLevel("Yes"),
                    new DateTime("Feb 19, 2017"), new DateTime("Feb 20, 2017"),
                    new Information("Blk 436 Serangoon Gardens Street 26, #16-43"),
                    new Recurrence(Frequency.DAILY),
                    new UniqueCategoryList("family")),
                new Task(new Name("Irfan Ibrahim"), new PriorityLevel("Yes"),
                    new DateTime("Feb 19, 2017"), new DateTime("Feb 20, 2017"),
                    new Information("Blk 47 Tampines Street 20, #17-35"),
                    new Recurrence(Frequency.DAILY),
                    new UniqueCategoryList("classmates")),
                new Task(new Name("Roy Balakrishnan"), new PriorityLevel("Yes"),
                    new DateTime("Feb 19, 2017"), new DateTime("Feb 20, 2017"),
                    new Information("Blk 45 Aljunied Street 85, #11-31"),
                    new Recurrence(Frequency.DAILY),
                    new UniqueCategoryList("colleagues"))
            };
        } catch (IllegalValueException e) {
            throw new AssertionError("sample data cannot be invalid", e);
        }
    }

    public static ReadOnlyTaskBoss getSampleTaskBoss() {
        try {
            TaskBoss sampleTB = new TaskBoss();
            for (Task sampleTask : getSampleTasks()) {
                sampleTB.addTask(sampleTask);
            }
            return sampleTB;
        } catch (DuplicateTaskException e) {
            throw new AssertionError("sample data cannot contain duplicate tasks", e);
        }
    }
}

@@ -782,16 +782,21 @@
 e(%22A
-lex Yeoh
+ttend wedding
 %22), 
@@ -938,24 +938,25 @@
 nformation(%22
+@
 Blk 30 Geyla
@@ -1016,37 +1016,36 @@
 rence(Frequency.
-DAILY
+NONE
 ),%0A             
@@ -1075,22 +1075,35 @@
 ryList(%22
-friend
+Personal%22, %22Alltask
 s%22)),%0A  
@@ -1140,17 +1140,21 @@
 e(%22B
-ernice Yu
+irthday party
 %22), 
@@ -1164,35 +1164,34 @@
  PriorityLevel(%22
-Yes
+No
 %22),%0A            
@@ -1299,49 +1299,8 @@
 on(%22
-Blk 30 Lorong 3 Serangoon Gardens, #07-18
 %22),%0A
@@ -1336,37 +1336,36 @@
 rence(Frequency.
-DAILY
+NONE
 ),%0A             
@@ -1399,28 +1399,36 @@
 st(%22
-colleagues%22, %22friend
+Personal%22, %22Party%22, %22Alltask
 s%22))
@@ -1469,25 +1469,18 @@
 e(%22C
-harlotte Oliveiro
+lean house
 %22), 
@@ -1490,35 +1490,34 @@
  PriorityLevel(%22
-Yes
+No
 %22),%0A            
@@ -1625,43 +1625,48 @@
 on(%22
-Blk 11 Ang Mo Kio Street 74, #11-04
+Clean kitchen, living room, main bedroom
 %22),%0A
@@ -1766,17 +1766,27 @@
 st(%22
-neighbour
+Personal%22, %22Alltask
 s%22))
@@ -1827,15 +1827,17 @@
 e(%22D
-avid Li
+ebug code
 %22), 
@@ -1983,51 +1983,35 @@
 on(%22
-Blk 436 Serangoon Gardens Street 26, #16-43
+line 45 47 135 in test.java
 %22),%0A
@@ -2047,37 +2047,36 @@
 rence(Frequency.
-DAILY
+NONE
 ),%0A             
@@ -2110,14 +2110,24 @@
 st(%22
-family
+Work%22, %22Alltasks
 %22)),
@@ -2166,21 +2166,28 @@
 me(%22
-Irfan Ibrahim
+Fix errors in report
 %22), 
@@ -2333,41 +2333,34 @@
 on(%22
-Blk 47 Tampines Street 20, #17-35
+paragraph 3 top discuusion
 %22),%0A
@@ -2396,37 +2396,36 @@
 rence(Frequency.
-DAILY
+NONE
 ),%0A             
@@ -2459,17 +2459,35 @@
 st(%22
-classmate
+Project%22, %22Work%22,  %22Alltask
 s%22))
@@ -2527,24 +2527,37 @@
 me(%22
-Roy Balakrishnan
+Having dinner with Hoon Meier
 %22), 
@@ -2567,35 +2567,34 @@
  PriorityLevel(%22
-Yes
+No
 %22),%0A            
@@ -2702,41 +2702,8 @@
 on(%22
-Blk 45 Aljunied Street 85, #11-31
 %22),%0A
@@ -2739,37 +2739,36 @@
 rence(Frequency.
-DAILY
+NONE
 ),%0A             
@@ -2802,17 +2802,27 @@
 st(%22
-colleague
+Personal%22, %22Alltask
 s%22))

update sample data