added max-age and content-format

Fork of mbedConnectorInterface by Doug Anson

Revision:
48:4b9ee3e32f93
Parent:
46:cc6076ac5026
--- a/api/Resource.h	Sun Apr 12 04:00:53 2015 +0000
+++ b/api/Resource.h	Mon Apr 13 23:41:34 2015 +0000
@@ -107,6 +107,13 @@
         return this->m_logger;
     }
     
+    /**
+    set the options 
+    */
+    void setOptions(const void *options) { 
+        this->m_options = (void *)options; 
+    }
+    
     // this resource implements its own observation handler
     bool implementsObservation() { return this->m_implements_observation; }
 
@@ -119,11 +126,17 @@
         this->m_value = "";
     }
     
+    // get our options
+    void *getOptions() { 
+        return this->m_options; 
+    }
+    
     Logger      *m_logger;
     void        *m_endpoint;
     string       m_name;
     InnerType    m_value;
     bool         m_implements_observation;
+    void        *m_options;
 };
 
 #endif // __RESOURCE_H__