Engage Engine API
1.244.9084
|
Device Power Information used as part of the PresenceDescriptor. More...
#include <ConfigurationObjects.h>
Inherits AppConfigurationObjects::ConfigurationObjectBase.
Public Member Functions | |
void | clear () |
virtual void | initForDocumenting () |
Public Member Functions inherited from AppConfigurationObjects::ConfigurationObjectBase | |
virtual std::string | toString () |
virtual bool | isDocumenting () const |
Public Attributes | |
int | source |
[Optional, Default: 0] Is the source the power is being delivered from | |
int | state |
[Optional, Default: 0] Is the current state that the power system is in. | |
int | level |
[Optional, Default: 0] Is the current level of the battery or power system as a percentage. Valid range is 0 to 100. | |
Public Attributes inherited from AppConfigurationObjects::ConfigurationObjectBase | |
nlohmann::json | _attached |
Additional Inherited Members | |
Protected Attributes inherited from AppConfigurationObjects::ConfigurationObjectBase | |
bool | _documenting |
Device Power Information used as part of the PresenceDescriptor.
Helper C++ class to serialize and de-serialize Power JSON
Example JSON:
Definition at line 1492 of file ConfigurationObjects.h.
|
inline |
Definition at line 1529 of file ConfigurationObjects.h.
|
inline |
Definition at line 1534 of file ConfigurationObjects.h.
|
inlinevirtual |
Reimplemented from AppConfigurationObjects::ConfigurationObjectBase.
Definition at line 1541 of file ConfigurationObjects.h.
int AppConfigurationObjects::Power::level |
[Optional, Default: 0] Is the current level of the battery or power system as a percentage. Valid range is 0 to 100.
Definition at line 1527 of file ConfigurationObjects.h.
int AppConfigurationObjects::Power::source |
[Optional, Default: 0] Is the source the power is being delivered from
Valid values are
Value | Description |
---|---|
0 | Undefined |
1 | Battery |
2 | Wired |
Definition at line 1510 of file ConfigurationObjects.h.
int AppConfigurationObjects::Power::state |
[Optional, Default: 0] Is the current state that the power system is in.
Valid values are
Value | Description |
---|---|
0 | Undefined |
1 | Charging |
2 | Discharging |
3 | Not Charging |
4 | Full |
Definition at line 1524 of file ConfigurationObjects.h.