package com.maxiee.attitude.model;

import org.json.JSONArray;
import org.json.JSONException;

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

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

    public void addThought(String thought) throws JSONException {
        mThoughts.addThought(thought);
    }


    public String getmEvent() {
        return mEvent;
    }

    public Thoughts getmThoughts() {
        return mThoughts;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public int getmId() {
        return mId;
    }
}

@@ -181,40 +181,8 @@
 nt;%0A
-    private Thoughts mThoughts;%0A
     
@@ -296,40 +296,8 @@
 nt,%0A
-            JSONArray thoughts,%0A
     
@@ -392,323 +392,91 @@
 his.
-mThoughts = new Thoughts(thoughts);%0A        this.timestamp = timestamp;%0A    %7D%0A%0A    public void addThought(String thought) throws JSONException %7B%0A        mThoughts.addThought(thought);%0A    %7D%0A%0A%0A    public String getmEvent() %7B%0A        return mEvent;%0A    %7D%0A%0A    public Thoughts getmThoughts() %7B%0A        return mThoughts
+timestamp = timestamp;%0A    %7D%0A%0A    public String getmEvent() %7B%0A        return mEvent
 ;%0A  

remove Thoughts filed (moving to a separate table).