- add doxygen comments in scene-manager remote apis
- change to use const variable in scenecommons with get request in RemoteSceneList class
Change-Id: I3354b7c271962be8d22f226a663e5cc415c8f211
Signed-off-by: Minji Park <minjii.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5545
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
(cherry picked from commit
5f95d30eb6f7e7a00675a74ac2dd348e5d5c53e4)
Reviewed-on: https://gerrit.iotivity.org/gerrit/5649
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
* @param cb A callback to receive created RemoteSceneAction instance
*
* @throws RCSInvalidParameterException If parameter is invalid.
+ * @throws PlatformException If the platform operation failed
*
* @note RemoteSceneAction instance is only produced by RemoteScene class
*
* @param cb A callback to receive created RemoteSceneAction instance
*
* @throws RCSInvalidParameterException If parameter is invalid.
+ * @throws PlatformException If the platform operation failed
*
* @note RemoteSceneAction instance is only produced by RemoteScene class
*
* @param cb A callback to receive result of Scene execution
*
* @throws RCSInvalidParameterException If callback is null
+ * @throws PlatformException If the platform operation failed
*/
void execute(RemoteSceneExecuteCallback cb);
* @param cb A callback to receive the response
*
* @throws RCSInvalidParameterException If parameter is invalid.
+ * @throws PlatformException If the platform operation failed
*
* @see RCSResourceAttributes::Value
*/
* @param cb A callback to receive the response
*
* @throws RCSInvalidParameterException If parameter is invalid.
+ * @throws PlatformException If the platform operation failed
*
* @see RCSResourceAttributes
*/
* @param cb A callback to receive created RemoteScene instance
*
* @throws RCSInvalidParameterException If parameter is invalid
+ * @throws PlatformException If the platform operation failed
*
* @note RemoteScene instance is only produced by RemoteSceneCollection class.
* @note Name of Scene must be unique in one SceneCollection
* @param cb A callback to receive the response
*
* @throws RCSInvalidParameterException If callback is null
+ * @throws PlatformException If the platform operation failed
*/
void setName(const std::string &name, SetNameCallback cb);
* @param cb A callback to receive the response
*
* @throws RCSInvalidParameterException If parameter is invalid.
+ * @throws PlatformException If the platform operation failed
*
* @see RCSRemoteResourceObject
*/
* @param cb A callback to receive created RemoteSceneCollection instance
*
* @throws RCSInvalidParameterException If callback is null.
+ * @throws PlatformException If the platform operation failed
*
* @note RemoteSceneCollection instance is only produced by RemoteSceneList class.
*/
* @param cb A callback to receive the response
*
* @throws RCSInvalidParameterException If callback is null.
+ * @throws PlatformException If the platform operation failed
*/
void setName(const std::string &name, SetNameCallback cb);
SceneListResourceRequestor::Ptr pRequestor =
std::make_shared< SceneListResourceRequestor >(sceneListResource);
- std::string requestIf = OC::DEFAULT_INTERFACE;
+ std::string requestIf = SCENE_CLIENT_REQ_IF;
pRequestor->requestGet(requestIf, std::bind(
&RemoteSceneList::onInstanceCreated,
std::placeholders::_2, std::placeholders::_3, requestIf,
}
catch (const std::exception &e)
{
- SCENE_CLIENT_ASSERT_NOT_NULL(e.what());
+ SCENE_CLIENT_PRINT_LOG(e.what());
result = SCENE_SERVER_INTERNALSERVERERROR;
}
}