From: taekeun.kang Date: Tue, 5 Apr 2016 08:12:51 +0000 (+0900) Subject: [Iotcon] fix wrong key value for result X-Git-Tag: submit/tizen/20160408.075806^2~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2b4c440ac86aec1f92a181551fd5f7957fc3482;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Iotcon] fix wrong key value for result Change-Id: I969e80d23f7a2f88ec1bd2a355c5c89b1185aa8e Signed-off-by: taekeun.kang --- diff --git a/src/iotcon/iotcon_utils.cc b/src/iotcon/iotcon_utils.cc index e5b3723d..6fa89bfb 100644 --- a/src/iotcon/iotcon_utils.cc +++ b/src/iotcon/iotcon_utils.cc @@ -137,6 +137,8 @@ const std::string kDataModelVersion = "dataModelVersion"; const std::string kResultType = "resultType"; const std::string kTriggerType = "triggerType"; +const std::string kResult = "result"; + using common::TizenResult; using common::TizenSuccess; @@ -1146,7 +1148,7 @@ common::TizenResult IotconUtils::ResponseToJson(iotcon_response_h handle, LogAndReturnTizenError(result, ("iotcon_response_get_result() failed")); } std::string result_str = FromResponseResultType(response); - res->insert(std::make_pair(kResultType, picojson::value{result_str})); + res->insert(std::make_pair(kResult, picojson::value{result_str})); } {