1 package com.iotcloud.iot.slots;
4 * Created by joel on 7/22/16.
7 import org.json.JSONException;
8 import org.json.JSONObject;
12 //int is not a good choice for sequenceNumber I believe;
17 public Slot(int sequenceNumber, String slotValue) {
18 this.sequenceNumber = sequenceNumber;
19 this.slotValue = slotValue;
22 public String toJsonString() throws JSONException {
23 JSONObject obj = new JSONObject();
24 obj.put(Integer.toString(this.sequenceNumber),this.slotValue);
25 return obj.toString();