[Iotcon] Some adjustments for widl changes
authorPiotr Kosko <p.kosko@samsung.com>
Wed, 20 Jan 2016 08:47:28 +0000 (09:47 +0100)
committerPiotr Kosko <p.kosko@samsung.com>
Wed, 20 Jan 2016 09:19:38 +0000 (10:19 +0100)
Change-Id: I6ab9cdce485bbe60c2b0cffbb09a95903226aa36
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
src/iotcon/iotcon_api.js

index 7dfd7f3..01f5900 100644 (file)
@@ -127,7 +127,8 @@ var ResponseResult = {
   ERROR: 'ERROR',
   RESOURCE_CREATED: 'RESOURCE_CREATED',
   RESOURCE_DELETED: 'RESOURCE_DELETED',
-  SLOW: 'SLOW'
+  SLOW: 'SLOW',
+  FORBIDDEN: 'FORBIDDEN',
 };
 
 var PresenceResponseResultType = {
@@ -504,6 +505,28 @@ Response.prototype.send = function() {
   }
 };
 
+function RemoteResponse(request) {
+  validator.isConstructorCall(this, tizen.RemoteResponse);
+
+  Object.defineProperties(this, {
+    result: {
+      value: null,
+      writable: false,
+      enumerable: true
+    },
+    representation: {
+      value: null,
+      writable: false,
+      enumerable: true
+    },
+    options: {
+      value: null,
+      writable: false,
+      enumerable: true
+    }
+  });
+}
+
 function State(key, state) {
   validator.isConstructorCall(this, tizen.State);