From 99a086c4f755c42a49ee2e25cd80001b848093fa Mon Sep 17 00:00:00 2001 From: joelbandi Date: Fri, 22 Jul 2016 14:22:41 -0700 Subject: [PATCH] added scaffold for server sdk --- src/serverJ/.idea/compiler.xml | 32 + .../.idea/copyright/profiles_settings.xml | 3 + ...__org_bouncycastle_bcprov_jdk15on_1_52.xml | 13 + .../Maven__org_json_json_20090211.xml | 13 + src/serverJ/.idea/misc.xml | 26 + src/serverJ/.idea/modules.xml | 8 + src/serverJ/.idea/workspace.xml | 771 ++++++++++++++++++ src/serverJ/pom.xml | 25 + src/serverJ/serverJ.iml | 17 + .../java/com/iotcloud/iot/slots/Slot.java | 28 + .../classes/com/iotcloud/iot/slots/Slot.class | Bin 0 -> 483 bytes 11 files changed, 936 insertions(+) create mode 100644 src/serverJ/.idea/compiler.xml create mode 100644 src/serverJ/.idea/copyright/profiles_settings.xml create mode 100644 src/serverJ/.idea/libraries/Maven__org_bouncycastle_bcprov_jdk15on_1_52.xml create mode 100644 src/serverJ/.idea/libraries/Maven__org_json_json_20090211.xml create mode 100644 src/serverJ/.idea/misc.xml create mode 100644 src/serverJ/.idea/modules.xml create mode 100644 src/serverJ/.idea/workspace.xml create mode 100644 src/serverJ/pom.xml create mode 100644 src/serverJ/serverJ.iml create mode 100644 src/serverJ/src/main/java/com/iotcloud/iot/slots/Slot.java create mode 100644 src/serverJ/target/classes/com/iotcloud/iot/slots/Slot.class diff --git a/src/serverJ/.idea/compiler.xml b/src/serverJ/.idea/compiler.xml new file mode 100644 index 0000000..05ea1dc --- /dev/null +++ b/src/serverJ/.idea/compiler.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/serverJ/.idea/copyright/profiles_settings.xml b/src/serverJ/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..e7bedf3 --- /dev/null +++ b/src/serverJ/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/serverJ/.idea/libraries/Maven__org_bouncycastle_bcprov_jdk15on_1_52.xml b/src/serverJ/.idea/libraries/Maven__org_bouncycastle_bcprov_jdk15on_1_52.xml new file mode 100644 index 0000000..4b942f1 --- /dev/null +++ b/src/serverJ/.idea/libraries/Maven__org_bouncycastle_bcprov_jdk15on_1_52.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/serverJ/.idea/libraries/Maven__org_json_json_20090211.xml b/src/serverJ/.idea/libraries/Maven__org_json_json_20090211.xml new file mode 100644 index 0000000..e57dc0a --- /dev/null +++ b/src/serverJ/.idea/libraries/Maven__org_json_json_20090211.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/serverJ/.idea/misc.xml b/src/serverJ/.idea/misc.xml new file mode 100644 index 0000000..233a7f0 --- /dev/null +++ b/src/serverJ/.idea/misc.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/serverJ/.idea/modules.xml b/src/serverJ/.idea/modules.xml new file mode 100644 index 0000000..ef33d7f --- /dev/null +++ b/src/serverJ/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/src/serverJ/.idea/workspace.xml b/src/serverJ/.idea/workspace.xml new file mode 100644 index 0000000..fbdd872 --- /dev/null +++ b/src/serverJ/.idea/workspace.xml @@ -0,0 +1,771 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1469215057799 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No facets are configured + + + + + + + + + + + + + + + 1.8 + + + + + + + + serverJ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/serverJ/pom.xml b/src/serverJ/pom.xml new file mode 100644 index 0000000..ec5d251 --- /dev/null +++ b/src/serverJ/pom.xml @@ -0,0 +1,25 @@ + + + 4.0.0 + + com.iotcloud.iot + iotcloudserverlib + 1.0-SNAPSHOT + + + + org.bouncycastle + bcprov-jdk15on + 1.52 + + + org.json + json + 20090211 + + + + + \ No newline at end of file diff --git a/src/serverJ/serverJ.iml b/src/serverJ/serverJ.iml new file mode 100644 index 0000000..61230e4 --- /dev/null +++ b/src/serverJ/serverJ.iml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/serverJ/src/main/java/com/iotcloud/iot/slots/Slot.java b/src/serverJ/src/main/java/com/iotcloud/iot/slots/Slot.java new file mode 100644 index 0000000..33605e9 --- /dev/null +++ b/src/serverJ/src/main/java/com/iotcloud/iot/slots/Slot.java @@ -0,0 +1,28 @@ +package com.iotcloud.iot.slots; + +/** + * Created by joel on 7/22/16. + */ + +import org.json.JSONException; +import org.json.JSONObject; +public class Slot { + + + //int is not a good choice for sequenceNumber I believe; + + int sequenceNumber; + String slotValue; + + public Slot(int sequenceNumber, String slotValue) { + this.sequenceNumber = sequenceNumber; + this.slotValue = slotValue; + } + + public String toJsonString() throws JSONException { + JSONObject obj = new JSONObject(); + obj.put(Integer.toString(this.sequenceNumber),this.slotValue); + return obj.toString(); + } + +} diff --git a/src/serverJ/target/classes/com/iotcloud/iot/slots/Slot.class b/src/serverJ/target/classes/com/iotcloud/iot/slots/Slot.class new file mode 100644 index 0000000000000000000000000000000000000000..f32a35cf2239158a15f110a9be5fe562e84b9b14 GIT binary patch literal 483 zcmaJ-%SyvQ6g|^dniy?ut*`pPh0wY%xURSnTm=;(-A~h@oifQtG7J9l#k5Jv6ZHqJwS|8yjUElJVdy}@#@e1)cDIvWkgI6|GS zYOMmIqe;re literal 0 HcmV?d00001 -- 2.34.1