added max-age and content-format

Fork of mbedConnectorInterface by Doug Anson

Revision:
46:cc6076ac5026
Parent:
2:853f9ecc12df
Child:
48:4b9ee3e32f93
--- a/api/Resource.h	Sat Apr 11 22:10:02 2015 +0000
+++ b/api/Resource.h	Sun Apr 12 03:48:37 2015 +0000
@@ -44,6 +44,7 @@
         this->init(logger);
         this->m_name = name;
         this->m_value = value;
+        this->m_implements_observation = false;
     }
 
     /**
@@ -55,6 +56,7 @@
         this->m_endpoint = resource.m_endpoint;
         this->m_name = resource.m_name;
         this->m_value = resource.m_value;
+        this->m_implements_observation = resource.m_implements_observation;
     }
 
     /**
@@ -104,6 +106,9 @@
     Logger *logger() {
         return this->m_logger;
     }
+    
+    // this resource implements its own observation handler
+    bool implementsObservation() { return this->m_implements_observation; }
 
 protected:
     // initialize internals to Resource
@@ -113,11 +118,12 @@
         this->m_name = "";
         this->m_value = "";
     }
-
+    
     Logger      *m_logger;
     void        *m_endpoint;
     string       m_name;
     InnerType    m_value;
+    bool         m_implements_observation;
 };
 
 #endif // __RESOURCE_H__