The EmpathicBuilding data provider class.
More...
#include <EmpathicBuildingDataProviderBase.qc.dox.h>
|
| constructor () |
| Creates the object.
|
|
| constructor (RestClient::RestClient rest, *Logger::LoggerInterface logger) |
| Creates the object.
|
|
| setLogger (*LoggerInterface logger) |
| Accepts a LoggerInterface object for logging (or clears it)
|
|
| updateConnectionObjects (object conn, object connobj) |
| Update any connection used by the data provider.
|
|
|
static date | getTimestamp (int epoch_ms) |
| Converts a Haltian ms epoch offset to a date/time value.
|
|
|
const | MaxIoRetries = 5 |
| Max retries.
|
|
const | RetrySet = ... |
| IO errors for REST retries.
|
|
|
hash< auto > | doRestCommand (string method, string path, auto body, reference< hash< auto > > info) |
| Makes a REST call and returns the response.
|
|
bool | retry (hash< ExceptionInfo > ex, reference< int > retries) |
| Returns True if the error indicates that the operation should be retried.
|
|
|
RestClient::RestClient | rest |
| The REST client object for API calls.
|
|
The EmpathicBuilding data provider class.
◆ updateConnectionObjects()
EmpathicBuildingDataProvider::EmpathicBuildingDataProviderBase::updateConnectionObjects |
( |
object | conn, |
|
|
object | connobj ) |
Update any connection used by the data provider.
- Parameters
-
conn | the new AbstractConnection object |
connobj | the new connection object itself (ex: RestClient for a "rest" connection) |