32 string uri_path =
"/";
38 const ProviderInfo = <DataProviderInfo>{
39 "type":
"EmpathicBuildingDataProvider",
40 "supports_children": True,
41 "constructor_options": ConstructorOptions,
42 "children_can_support_apis": True,
46 const ConstructorOptions = {
47 "restclient": <DataProviderOptionInfo>{
48 "type": AbstractDataProviderType::get(
new Type(
"RestClient")),
49 "desc":
"The RestClient object",
51 "url": <DataProviderOptionInfo>{
52 "type": AbstractDataProviderTypeMap.
"string",
53 "desc":
"The URL to the REST server; overrides any URL in any RestClient object passed as an option",
54 "default_value":
"https://eu-api.empathicbuilding.com",
56 "restclient_options": <DataProviderOptionInfo>{
57 "type": AbstractDataProviderTypeMap.
"*hash",
58 "desc":
"Options to the RestClient constructor; only used if a RestClient object is created for a "
61 "token": <DataProviderOptionInfo>{
62 "type": AbstractDataProviderTypeMap.
"string",
63 "desc":
"A gateway token to use for authentication to the server",
70 "measurements": Class::forName(
"EmpathicBuildingDataProvider::EmpathicBuildingMeasurementsDataProvider"),
The EmpathicBuilding data provider class.
Definition: EmpathicBuildingDataProviderBase.qc.dox.h:28
constructor(RestClient::RestClient rest)
Create the object from the REST connection.
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
string display_name
The value to returns as the name of the object.
Definition: EmpathicBuildingDataProvider.qc.dox.h:35
*string getDesc()
Returns the data provider description.
*DataProvider::AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or NOTHING if the given child is unknown.
string getName()
Returns the data provider name.
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
constructor(*hash< auto > options)
Creates the object from constructor options.
*list< hash< DataProvider::DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
Boolean string type.
Definition: EmpathicBuildingDataProvider.qc.dox.h:129
constructor()
Creates the object.
auto getDefaultValue()
Returns the default value for the type or NOTHING if the type has no default value.
auto acceptsValue(auto value)
Returns the value after any conversions by the type.
Qore EmpathicBuildingDataProvider module definition.
Definition: EmpathicBuildingDataProvider.qc.dox.h:26
const SoftBoolDataProviderStringType
Boolean data provider string type for query parameters.
Definition: EmpathicBuildingDataProvider.qc.dox.h:126