2010-01-24 22:09:50 +01:00
|
|
|
package com.metaweb.gridlock.model;
|
|
|
|
|
2010-01-25 23:51:25 +01:00
|
|
|
import java.io.Serializable;
|
2010-01-27 02:48:42 +01:00
|
|
|
import java.util.Properties;
|
|
|
|
|
|
|
|
import org.json.JSONException;
|
|
|
|
import org.json.JSONObject;
|
2010-01-25 23:51:25 +01:00
|
|
|
|
|
|
|
public class ReconCandidate implements Serializable {
|
|
|
|
private static final long serialVersionUID = -8013997214978715606L;
|
|
|
|
|
2010-01-27 02:48:42 +01:00
|
|
|
public String topicID;
|
|
|
|
public String topicGUID;
|
|
|
|
public String topicName;
|
2010-01-24 22:09:50 +01:00
|
|
|
public String[] typeIDs;
|
2010-01-27 02:48:42 +01:00
|
|
|
|
|
|
|
public JSONObject getJSON(Properties options) throws JSONException {
|
|
|
|
JSONObject o = new JSONObject();
|
|
|
|
|
|
|
|
o.put("id", topicID);
|
|
|
|
o.put("guid", topicGUID);
|
|
|
|
o.put("name", topicName);
|
|
|
|
o.put("types", typeIDs);
|
|
|
|
|
|
|
|
return o;
|
|
|
|
}
|
2010-01-24 22:09:50 +01:00
|
|
|
}
|