1 package org.opendaylight.nemo.tool.eclipse.plugin.rest.actions.model;
3 import org.json.JSONArray;
4 import org.json.JSONObject;
7 * Created by hj on 10/29/15.
9 public class NemoInput2 implements INemoInput {
13 public NemoInput2(User user, String nemo) {
19 public String toJsonFormatString() {
20 JSONObject dataJs = new JSONObject();
21 JSONObject inputValueJson = new JSONObject();
22 inputValueJson.put("user-id", user.getUser_id());
23 inputValueJson.put("nemo-statement", nemo);
24 dataJs.put("input", inputValueJson);
25 return dataJs.toString();