From: Piotr Kosko
Date: Wed, 20 Jan 2016 08:47:28 +0000 (+0100)
Subject: [Iotcon] Some adjustments for widl changes
X-Git-Tag: accepted/tizen/mobile/20160129.002211^2~3^2
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=870c8a4e9bf1de45e5c442e4d11ec1f9cd25a263;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git
[Iotcon] Some adjustments for widl changes
Change-Id: I6ab9cdce485bbe60c2b0cffbb09a95903226aa36
Signed-off-by: Piotr Kosko
---
diff --git a/src/iotcon/iotcon_api.js b/src/iotcon/iotcon_api.js
index 7dfd7f3..01f5900 100644
--- a/src/iotcon/iotcon_api.js
+++ b/src/iotcon/iotcon_api.js
@@ -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);