* @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;
}
}