Implement getResourceHandle() method in RCSResourceObject
to allow the resource to be published to a RD.
Change-Id: I3ea2a162ef1fa9f3beeb65e62a34d571300b8c2e
Signed-off-by: Martin Roesch <martin.roesch@kistler.com>
*/
std::vector< std::string > getTypes() const;
+ /**
+ * Returns the resource handle of the resource.
+ */
+ OCResourceHandle getResourceHandle() const;
+
private:
RCSResourceObject(const std::string&, uint8_t, RCSResourceAttributes&&);
return m_types;
}
+ OCResourceHandle RCSResourceObject::getResourceHandle() const
+ {
+ return m_resourceHandle;
+ }
+
RCSRepresentation RCSResourceObject::getRepresentation(const RCSRequest& request) const
{
if (request.getOCRequest()->getRequestType() == "GET")