/**
 * Created by Ebrar on 01/12/15.
 */
package com.beter.timehole.core;

import java.lang.Override;
import java.lang.String;
import java.util.ArrayList;

public class Activity {
    private String name;
    private boolean done;
    private long duration;
    private String startDate;
    private String finishDate;
    private ArrayList<Tag> tags = null;
    private String note;

    public Activity(name,boolean done, long duration,String startDate,String finishDate,ArrayList<Tag> tags,note){
        this.name = name;
        this.done = done;
        this.duration = duration;
        this.startDate = startDate;
        this.finishDate = finishDate;
        this.tags = tags;
        this.note = note;
    }

    public String getName() {
        return name;
    }

    public boolean isDone() {
        return done;
    }

    public long getDuration() {
        return duration;
    }

    public ArrayList<Tag> getTags() {
        return tags;
    }

    public String getNote() {
        return note;
    }

    public String getStartDate() {
        return startDate;
    }

    public String getFinishDate() {
        return finishDate;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDone(boolean done) {
        this.done = done;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public void setTags(ArrayList<Tag> tags) {
        this.tags = tags;
    }
    /** setTags methodu kullanc tagleri deitirmek istediinde en batan seerse yararl
    ancak sadece ekstra bir tag eklemek istedii durumlar iin tag ekleme methodu gerekli**/
    public void addTag(Tag tag)
    {
        tags.add(tag);
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    public String toString() {
        String result;
        result= name + " " + finishDate + "\n" ;
        for(int i=0;i<tags.size();i++)
        {
            result+= tags.get(i)+" ";
        }
    }
}

@@ -402,13 +402,21 @@
 ity(
+String 
 name,
+ 
 bool
@@ -439,16 +439,17 @@
 uration,
+ 
 String s
@@ -457,16 +457,17 @@
 artDate,
+ 
 String f
@@ -476,16 +476,17 @@
 ishDate,
+ 
 ArrayLis
@@ -497,16 +497,24 @@
 g%3E tags,
+ String 
 note)%7B%0A 
@@ -1513,17 +1513,19 @@
 u kullan
-c
+%EF%BF%BDc%EF%BF%BD
  tagleri
@@ -1527,17 +1527,19 @@
 gleri de
-i
+%EF%BF%BDi%EF%BF%BD
 tirmek i
@@ -1543,16 +1543,17 @@
 k istedi
+%EF%BF%BD
 inde en 
@@ -1558,14 +1558,16 @@
 n ba
+%EF%BF%BD
 tan se
+%EF%BF%BD
 erse
@@ -1573,16 +1573,17 @@
 e yararl
+%EF%BF%BD
 %0A    anc
@@ -1621,16 +1621,17 @@
 k istedi
+%EF%BF%BD
 i duruml
@@ -1634,16 +1634,17 @@
 rumlar i
+%EF%BF%BD
 in tag e
@@ -2018,20 +2018,43 @@
 ;%0A        %7D%0A
+        return result;%0A
     %7D%0A%7D%0A

fix typo