|
Engage Engine API
1.253.9093
|
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 1672 of file ConfigurationObjects.h.
|
inline |
Definition at line 1709 of file ConfigurationObjects.h.
|
inline |
Definition at line 1714 of file ConfigurationObjects.h.
|
inlinevirtual |
Reimplemented from AppConfigurationObjects::ConfigurationObjectBase.
Definition at line 1721 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 1707 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 1690 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 1704 of file ConfigurationObjects.h.