Qore EmpathicBuildingDataProvider Module Reference 1.1
Loading...
Searching...
No Matches
EmpathicBuildingDataProvider::EmpathicBuildingDataProviderBase Class Reference

The EmpathicBuilding data provider class. More...

#include <EmpathicBuildingDataProviderBase.qc.dox.h>

Inheritance diagram for EmpathicBuildingDataProvider::EmpathicBuildingDataProviderBase:
[legend]

Public Member Functions

 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 Public Member Functions

static date getTimestamp (int epoch_ms)
 Converts a Haltian ms epoch offset to a date/time value.
 

Public Attributes

const MaxIoRetries = 5
 Max retries.
 
const RetrySet = ...
 IO errors for REST retries.
 

Protected Member Functions

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.
 

Protected Attributes

RestClient::RestClient rest
 The REST client object for API calls.
 

Detailed Description

The EmpathicBuilding data provider class.

Member Function Documentation

◆ updateConnectionObjects()

EmpathicBuildingDataProvider::EmpathicBuildingDataProviderBase::updateConnectionObjects ( object conn,
object connobj )

Update any connection used by the data provider.

Parameters
connthe new AbstractConnection object
connobjthe new connection object itself (ex: RestClient for a "rest" connection)