Exemplo n.º 1
0
 def get_registration_dt(self, use_cached=True):
     """Get the datetime of when this device was added to the device cloud"""
     device_json = self.get_device_json(use_cached)
     start_date_iso8601 = device_json.get("devRecordStartDate")
     if start_date_iso8601:
         return iso8601_to_dt(start_date_iso8601)
     else:
         return None
Exemplo n.º 2
0
 def get_registration_dt(self, use_cached=True):
     """Get the datetime of when this device was added to the device cloud"""
     device_json = self.get_device_json(use_cached)
     start_date_iso8601 = device_json.get("devRecordStartDate")
     if start_date_iso8601:
         return iso8601_to_dt(start_date_iso8601)
     else:
         return None
Exemplo n.º 3
0
 def get_created_date(self):
     """Get the datetime this object was created"""
     return iso8601_to_dt(self._json_data["fdCreatedDate"])
Exemplo n.º 4
0
 def get_last_modified_date(self):
     """Get the last modified datetime of this object"""
     return iso8601_to_dt(self._json_data["fdLastModifiedDate"])
Exemplo n.º 5
0
 def get_last_connected_dt(self, use_cached=True):
     """Get the datetime that the device last connected to the device cloud"""
     return iso8601_to_dt(self.get_device_json(use_cached).get("dpLastConnectTime"))
Exemplo n.º 6
0
 def get_last_connected_dt(self, use_cached=True):
     """Get the datetime that the device last connected to the device cloud"""
     return iso8601_to_dt(
         self.get_device_json(use_cached).get("dpLastConnectTime"))