package com.maxiee.attitude.model;

import org.json.JSONArray;

import java.util.ArrayList;

/**
 * Created by maxiee on 15-6-12.
 */
public class Event {
    private String mEvent;
    private JSONArray mThoughts;
    private JSONArray mLabels;
    private long timestamp;
    private int mId;

    public Event(
            int id,
            String mEvent,
            JSONArray mThoughts,
            JSONArray mLabels,
            long timestamp) {
        this.mId = id;
        this.mEvent = mEvent;
        this.mThoughts = mThoughts;
        this.mLabels = mLabels;
        this.timestamp = timestamp;
    }

    public String getmEvent() {
        return mEvent;
    }

    public JSONArray getmThoughts() {
        return mThoughts;
    }

    public JSONArray getmLabels() {
        return mLabels;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public int getmId() {
        return mId;
    }
}

@@ -60,35 +60,37 @@
 ay;%0A
-%0A
 import 
-java.util.ArrayList
+org.json.JSONException
 ;%0A%0A/
@@ -189,25 +189,24 @@
 private 
-JSONArray
+Thoughts
  mThough
@@ -377,18 +377,17 @@
 ONArray 
-mT
+t
 houghts,
@@ -405,26 +405,25 @@
   JSONArray 
-mL
+l
 abels,%0A     
@@ -525,25 +525,28 @@
 ughts = 
-m
+new 
 Thoughts
 ;%0A      
@@ -533,24 +533,34 @@
 new Thoughts
+(thoughts)
 ;%0A        th
@@ -572,18 +572,17 @@
 abels = 
-mL
+l
 abels;%0A 
@@ -615,32 +615,145 @@
 mestamp;%0A    %7D%0A%0A
+    public void addThought(String thought) throws JSONException %7B%0A        mThoughts.addThought(thought);%0A    %7D%0A%0A%0A
     public Strin
@@ -805,33 +805,32 @@
 %0A    public 
-JSONArray
+Thoughts
  getmThought

use new model.