Change-Id: I262dcc13661f4a9ae5ee4a69b45084a179765af1
Signed-off-by: Andrzej Popowski <a.popowski@samsung.com>
function IotconOption(id, data) {
validator.isConstructorCall(this, tizen.IotconOption);
+ var _id = 0;
+ var _data = '';
+
Object.defineProperties(this, {
id: {
- value: id,
- writable: false,
+ get: function() {
+ return _id;
+ },
+ set: function(v) {
+ if (v) {
+ _id = v;
+ }
+ },
enumerable: true
},
data: {
- value: data,
- writable: false,
+ get: function() {
+ return _data;
+ },
+ set: function(v) {
+ if (v) {
+ _data = v;
+ }
+ },
enumerable: true
}
});
+
+ this["id"] = id;
+ this["data"] = data;
}
function PlatformInfo(data) {
name: 'dictionary',
type: types.DICTIONARY,
optional: true,
- nullable: true
+ nullable: false
}]);
var callArgs = args.dictionary || {};
presence->id = GetPresenceNextId();
presence_map_.insert(std::make_pair(presence->id, presence));
- return TizenSuccess();
+ return result;
}
common::TizenResult IotconClientManager::RemovePresenceEventListener(long long id) {
const std::string kTimeout = "timeout";
const std::string kData = "data";
-const std::string kVirtualResourcesHandlingPath = "/home/tmp_file_iotcon.dat";
+const std::string kVirtualResourcesHandlingPath = "/home/owner/share/tmp_file_iotcon.dat";
} // namespace