sensor: Refactor get sensor thresholds command

Using GetManagedObjects to get the thresholds could take upto
15~20 sec for the core temperatures. The time taken to fetch
threshold properties via GetManagedObjects is proportional to the
number of objects under the path. Since the dbus object path is
available in the yaml it is performant to read the threshold
properties directly.

Change-Id: Ic22d8f4d73d8ce4eabdffd6fc7af23f73b981f66
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/sensorhandler.h b/sensorhandler.h
index e32405d..f5b5c94 100644
--- a/sensorhandler.h
+++ b/sensorhandler.h
@@ -241,8 +241,13 @@
  */
 struct GetSensorThresholdsResponse
 {
-    uint8_t validMask; //Indicates which values are valid
-    uint8_t data[6];   //Container for threshold values
+    uint8_t validMask;          //!< valid mask
+    uint8_t lowerNonCritical;   //!< lower non-critical threshold
+    uint8_t lowerCritical;      //!< lower critical threshold
+    uint8_t lowerNonRecoverable;//!< lower non-recoverable threshold
+    uint8_t upperNonCritical;   //!< upper non-critical threshold
+    uint8_t upperCritical;      //!< upper critical threshold
+    uint8_t upperNonRecoverable;//!< upper non-recoverable threshold
 } __attribute__((packed));
 
 // Body - full record