Adding more directory structure to generated files by compiler, also script to copy...
[iot2.git] / others / tutorial / benchmarks / drivers / SmartLightBulb / DeviceStateLocation.java
diff --git a/others/tutorial/benchmarks/drivers/SmartLightBulb/DeviceStateLocation.java b/others/tutorial/benchmarks/drivers/SmartLightBulb/DeviceStateLocation.java
new file mode 100644 (file)
index 0000000..e5d3e08
--- /dev/null
@@ -0,0 +1,25 @@
+package iotcode.LifxLightBulb;
+
+public class DeviceStateLocation {
+       byte[] location = new byte[16];
+       final String label;
+       final long updatedAt;
+
+       public DeviceStateLocation(byte[] _location, String _label, long _updatedAt) {
+               location = _location;
+               label = _label;
+               updatedAt = _updatedAt;
+       }
+
+       public byte[] getLocation() {
+               return location;
+       }
+
+       public String getLabel() {
+               return label;
+       }
+
+       public long getUpdatedAt() {
+               return updatedAt;
+       }
+}