src/org/ohmage/domain/campaign/SurveyResponse.java
public final JSONObject toJson(
				final boolean longVersion) 
				throws JSONException {
			
			JSONObject result = new JSONObject();
			
			result.put(JSON_KEY_LAUNCH_TIME, time);
			result.put(JSON_KEY_LAUNCH_TIMEZONE, timezone.getID());
			
			if(longVersion) {
				result.put(JSON_KEY_ACTIVE_TRIGGERS, activeTriggers);
			}
			
			return result;
		}
/**
		 * Creates a JSONObject that represents this object.
		 * 
		 * @param longVersion Whether or not include the extra data or just the
		 * 				 	  basics, "false" is just the basics "true" is 
		 * 					  everything.
		 * 
		 * @return A JSONObject that represents this object or null if there 
		 * 		   was an error.
		 * 
		 * @throws JSONException There was a problem creating the JSONObject.
		 */
Creates a JSONObject that represents this object.

@param longVersion Whether or not include the extra data or just the
basics, "false" is just the basics "true" is
everything.

@return A JSONObject that represents this object or null if there
was an error.

@throws JSONException There was a problem creating the JSONObject.
Creates a JSONObject that represents this object . @param longVersion Whether or not include the extra data or just the basics " false " is just the basics " true " is everything . @return A JSONObject that represents this object or null if there was an error . @throws JSONException There was a problem creating the JSONObject .
public final JSONObject toJson(
				final boolean longVersion) 
				throws JSONException {
			JSONObject result = new JSONObject();
			result.put(JSON_KEY_LAUNCH_TIME, time);
			result.put(JSON_KEY_LAUNCH_TIMEZONE, timezone.getID());
			if(longVersion) {
				result.put(JSON_KEY_ACTIVE_TRIGGERS, activeTriggers);
			}
			return result;
		}
public final JSONObject toJson ( final boolean longVersion ) throws JSONException { JSONObject result = new JSONObject ( ) ; result . put ( JSON_KEY_LAUNCH_TIME , time ) ; result . put ( JSON_KEY_LAUNCH_TIMEZONE , timezone . getID ( ) ) ; if ( longVersion ) { result . put ( JSON_KEY_ACTIVE_TRIGGERS , activeTriggers ) ; } return result ; }
Creates a JSONObject that represents this object.
Creates a JSONObject that represents this object .