package HomeSecurityController; import java.io.IOException; import java.util.List; import java.util.ArrayList; import java.util.Arrays; import iotrmi.Java.IoTRMICall; import iotrmi.Java.IoTRMIObject; import iotcode.interfaces.*; public class SmartthingsSensorCallback_CallbackSkeleton implements SmartthingsSensorCallback { private SmartthingsSensorCallback mainObj; private int objectId = 0; private String callbackAddress; public SmartthingsSensorCallback_CallbackSkeleton(SmartthingsSensorCallback _mainObj, String _callbackAddress, int _objectId) throws Exception { callbackAddress = _callbackAddress; mainObj = _mainObj; objectId = _objectId; } public void newReadingAvailable(int _sensorId, int _value, boolean _activeValue) { mainObj.newReadingAvailable(_sensorId, _value, _activeValue); } public void ___newReadingAvailable(IoTRMIObject rmiObj) { Object[] paramObj = rmiObj.getMethodParams(new Class[] { int.class, int.class, boolean.class }, new Class[] { null, null, null }); newReadingAvailable((int) paramObj[0], (int) paramObj[1], (boolean) paramObj[2]); } public void invokeMethod(IoTRMIObject rmiObj) throws IOException { int methodId = rmiObj.getMethodId(); switch (methodId) { case 0: ___newReadingAvailable(rmiObj); break; default: throw new Error("Method Id " + methodId + " not recognized!"); } } }