40 RestClient::RestClient
rest;
68 hash<auto>
doRestCommand(
string method,
string path,
auto body, reference<hash<auto>> info);
74 bool retry(hash<ExceptionInfo> ex, reference<int> retries);
The EmpathicBuilding data provider class.
Definition EmpathicBuildingDataProviderBase.qc.dox.h:28
static date getTimestamp(int epoch_ms)
Converts a Haltian ms epoch offset to a date/time value.
setLogger(*LoggerInterface logger)
Accepts a LoggerInterface object for logging (or clears it)
constructor()
Creates the object.
const MaxIoRetries
Max retries.
Definition EmpathicBuildingDataProviderBase.qc.dox.h:36
const RetrySet
IO errors for REST retries.
Definition EmpathicBuildingDataProviderBase.qc.dox.h:32
updateConnectionObjects(object conn, object connobj)
Update any connection used by the data provider.
constructor(RestClient::RestClient rest, *Logger::LoggerInterface logger)
Creates the object.
bool retry(hash< ExceptionInfo > ex, reference< int > retries)
Returns True if the error indicates that the operation should be retried.
hash< auto > doRestCommand(string method, string path, auto body, reference< hash< auto > > info)
Makes a REST call and returns the response.
RestClient::RestClient rest
The REST client object for API calls.
Definition EmpathicBuildingDataProviderBase.qc.dox.h:40
Qore EmpathicBuildingDataProvider module definition.
Definition EmpathicBuildingDataProvider.qc.dox.h:26