package com.psychic_engine.cmput301w17t10.feelsappman;

import android.location.Location;

import java.util.Date;

/**
 * Created by Jen on 3/8/2017.
 */

public class EditMoodController {

    /*
    static void updateMoodEventList(int moodEventPosition, String moodString, String socialSettingString, String trigger, Photograph photo, Location location) {

        Mood mood = null;
        SocialSetting socialSetting = null;

        switch (moodString) {        // TODO refactor this - inside MoodState enum class?
            case "Sad": mood = new Mood(MoodState.SAD); break;
            case "Happy": mood = new Mood(MoodState.HAPPY); break;
            case "Shame": mood = new Mood(MoodState.SHAME); break;
            case "Fear": mood = new Mood(MoodState.FEAR); break;
            case "Anger": mood = new Mood(MoodState.ANGER); break;
            case "Surprised": mood = new Mood(MoodState.SURPRISED); break;
            case "Disgust": mood = new Mood(MoodState.DISGUST); break;
            case "Confused": mood = new Mood(MoodState.CONFUSED); break;
        }

        switch (socialSettingString) {
            case "Alone": socialSetting = SocialSetting.ALONE; break;
            case "One Other": socialSetting = SocialSetting.ONEOTHER; break;
            case "Two To Several": socialSetting = SocialSetting.TWOTOSEVERAL; break;
            case "Crowd": socialSetting = SocialSetting.CROWD; break;
            default: socialSetting = null;
        }

        String defaultTriggerMsg = "20 chars or 3 words.";
        if (trigger.equals(defaultTriggerMsg))
            trigger = "";

        MoodEvent moodEvent = new MoodEvent(mood, socialSetting, trigger, location, photo);

        // replace old moodEvent with new one
        participant.setMood(moodEventPosition, moodEvent);
    }
    */

}
@@ -187,15 +187,8 @@
  %7B%0A%0A
-    /*%0A
     
@@ -1667,16 +1667,23 @@
 trigger,
+ photo,
  locatio
@@ -1683,23 +1683,16 @@
 location
-, photo
 );%0A%0A    
@@ -1741,17 +1741,59 @@
         
-p
+ParticipantSingleton.getInstance().getSelfP
 articipa
@@ -1798,16 +1798,18 @@
 pant
+()
 .setMood
 (moo
@@ -1804,16 +1804,21 @@
 .setMood
+Event
 (moodEve
@@ -1851,13 +1851,6 @@
   %7D%0A
-    */%0A%0A
 %7D
+%0A

Update EditMoodController.java