- * The response will have OC_EH_OK for the result and 200 for the errorCode.
- * The attributes of RCSResourceObject will be set as the result attributes.
+ * The response will have 200 for the errorCode and the attributes of RCSResourceObject
+ * will be set as the result attributes.
* This sends the passed attributes as the result attributes
* instead of the one the RCSResourceObject holds.
*
* @param attrs The attributes to set.
* This sends the passed attributes as the result attributes
* instead of the one the RCSResourceObject holds.
*
* @param attrs The attributes to set.
- static RCSGetResponse create(const RCSResourceAttributes& attrs,
- const OCEntityHandlerResult& result, int errorCode);
+ static RCSGetResponse create(const RCSResourceAttributes& attrs, int errorCode);
- static RCSGetResponse create(RCSResourceAttributes&& attrs,
- const OCEntityHandlerResult& result, int errorCode);
+ static RCSGetResponse create(RCSResourceAttributes&& attrs, int errorCode);
* The attributes of RCSResourceObject will be set as the result attributes.
*
*/
static RCSSetResponse accept();
/**
* The attributes of RCSResourceObject will be set as the result attributes.
*
*/
static RCSSetResponse accept();
/**
* The attributes of RCSResourceObject will be set as the result attributes.
*
*/
static RCSSetResponse ignore();
/**
* The attributes of RCSResourceObject will be set as the result attributes.
*
*/
static RCSSetResponse ignore();
/**
* This sends the passed attributes as the result attributes
* instead of the one the RCSResourceObject holds.
*
* @param attrs The attributes to set.
* This sends the passed attributes as the result attributes
* instead of the one the RCSResourceObject holds.
*
* @param attrs The attributes to set.
- static RCSSetResponse create(const RCSResourceAttributes& attrs,
- const OCEntityHandlerResult& result, int errorCode);
-
+ static RCSSetResponse create(const RCSResourceAttributes& attrs, int errorCode);
- static RCSSetResponse create(RCSResourceAttributes &&attrs,
- const OCEntityHandlerResult &result, int errorCode);
+ static RCSSetResponse create(RCSResourceAttributes&& attrs, int errorCode);