Engage Engine API
1.249.9089
|
Represents an endpoints presence properties. Used in engageUpdatePresenceDescriptor API and PFN_ENGAGE_GROUP_NODE events. More...
#include <ConfigurationObjects.h>
Inherits AppConfigurationObjects::ConfigurationObjectBase.
Public Member Functions | |
void | clear () |
virtual void | initForDocumenting () |
![]() | |
virtual std::string | toString () |
virtual bool | isDocumenting () const |
Public Attributes | |
bool | self |
[Read Only] Indicates that this presence declaration was generated by the Engage Engine the application currently connected to. | |
uint32_t | ts |
[Read Only, Unix timestamp - Zulu/UTC] Indicates the timestamp that the message was originally sent. | |
uint32_t | nextUpdate |
[Read Only, Unix timestamp - Zulu/UTC] Indicates the next time the presence descriptor will be sent. | |
Identity | identity |
[Optional, Default see Identity] Endpoint's identity information. | |
std::string | comment |
[Optional] No defined limit on size but the total size of the serialized JSON object must fit inside the current network transport's MTU. | |
uint32_t | disposition |
[Optional] Indicates the users disposition | |
std::vector< PresenceDescriptorGroupItem > | groupAliases |
[Read Only] List of group items associated with this presence descriptor. | |
Location | location |
[Optional, Default: see Location] Location information | |
std::string | custom |
[Optional, Default: empty string] Custom string application can use of presence descriptor. TODO: Whats the max length. | |
bool | announceOnReceive |
[Read Only] Indicates that the Engine will announce its PresenceDescriptor in response to this message. | |
Connectivity | connectivity |
[Optional, Default: see Connectivity] Device connectivity information like wifi/cellular, strength etc. | |
Power | power |
[Optional, Default: see Power] Device power information like charging state, battery level, etc. | |
![]() | |
nlohmann::json | _attached |
Additional Inherited Members | |
![]() | |
bool | _documenting |
Represents an endpoints presence properties. Used in engageUpdatePresenceDescriptor API and PFN_ENGAGE_GROUP_NODE events.
Helper C++ class to serialize and de-serialize PresenceDescriptor JSON
Example:
Definition at line 1894 of file ConfigurationObjects.h.
|
inline |
Definition at line 1961 of file ConfigurationObjects.h.
|
inline |
Definition at line 1966 of file ConfigurationObjects.h.
|
inlinevirtual |
Reimplemented from AppConfigurationObjects::ConfigurationObjectBase.
Definition at line 1982 of file ConfigurationObjects.h.
bool AppConfigurationObjects::PresenceDescriptor::announceOnReceive |
[Read Only] Indicates that the Engine will announce its PresenceDescriptor in response to this message.
Definition at line 1953 of file ConfigurationObjects.h.
std::string AppConfigurationObjects::PresenceDescriptor::comment |
[Optional] No defined limit on size but the total size of the serialized JSON object must fit inside the current network transport's MTU.
Definition at line 1926 of file ConfigurationObjects.h.
Connectivity AppConfigurationObjects::PresenceDescriptor::connectivity |
[Optional, Default: see Connectivity] Device connectivity information like wifi/cellular, strength etc.
Definition at line 1956 of file ConfigurationObjects.h.
std::string AppConfigurationObjects::PresenceDescriptor::custom |
[Optional, Default: empty string] Custom string application can use of presence descriptor. TODO: Whats the max length.
Definition at line 1950 of file ConfigurationObjects.h.
uint32_t AppConfigurationObjects::PresenceDescriptor::disposition |
[Optional] Indicates the users disposition
This may be any value set by the application. Such as:
Value | Description |
---|---|
0x00000000 | Undefined |
0x00000001 | Emergency |
0x00000002 | Available |
0x00000004 | Busy |
etc | etc |
Definition at line 1941 of file ConfigurationObjects.h.
std::vector<PresenceDescriptorGroupItem> AppConfigurationObjects::PresenceDescriptor::groupAliases |
[Read Only] List of group items associated with this presence descriptor.
Definition at line 1944 of file ConfigurationObjects.h.
Identity AppConfigurationObjects::PresenceDescriptor::identity |
[Optional, Default see Identity] Endpoint's identity information.
Definition at line 1923 of file ConfigurationObjects.h.
Location AppConfigurationObjects::PresenceDescriptor::location |
[Optional, Default: see Location] Location information
Definition at line 1947 of file ConfigurationObjects.h.
uint32_t AppConfigurationObjects::PresenceDescriptor::nextUpdate |
[Read Only, Unix timestamp - Zulu/UTC] Indicates the next time the presence descriptor will be sent.
This attributed together with the ts attribute is used by the Engage Engage Engine to "timeout" the endpoint. (Unix timestamp - Zulu/UTC)
Definition at line 1920 of file ConfigurationObjects.h.
Power AppConfigurationObjects::PresenceDescriptor::power |
[Optional, Default: see Power] Device power information like charging state, battery level, etc.
Definition at line 1959 of file ConfigurationObjects.h.
bool AppConfigurationObjects::PresenceDescriptor::self |
[Read Only] Indicates that this presence declaration was generated by the Engage Engine the application currently connected to.
NOTE: This is useful in identifying the nodeId that is automatically generated by the Engage Engine when the application does not provide the nodeId.
Definition at line 1906 of file ConfigurationObjects.h.
uint32_t AppConfigurationObjects::PresenceDescriptor::ts |
[Read Only, Unix timestamp - Zulu/UTC] Indicates the timestamp that the message was originally sent.
Use this property and the nextUpdate attribute to determine if the endpoint is still on the network.
Definition at line 1913 of file ConfigurationObjects.h.