androidenterprise
v1
|
#include <keyed_app_state.h>
Public Member Functions | |
KeyedAppState (const Json::Value &storage) | |
KeyedAppState (Json::Value *storage) | |
virtual | ~KeyedAppState () |
const StringPiece | GetTypeName () const |
bool | has_data () const |
void | clear_data () |
const StringPiece | get_data () const |
void | set_data (const StringPiece &value) |
bool | has_key () const |
void | clear_key () |
const StringPiece | get_key () const |
void | set_key (const StringPiece &value) |
bool | has_message () const |
void | clear_message () |
const StringPiece | get_message () const |
void | set_message (const StringPiece &value) |
bool | has_severity () const |
void | clear_severity () |
const StringPiece | get_severity () const |
void | set_severity (const StringPiece &value) |
bool | has_state_timestamp_millis () const |
void | clear_state_timestamp_millis () |
int64 | get_state_timestamp_millis () const |
void | set_state_timestamp_millis (int64 value) |
Static Public Member Functions | |
static KeyedAppState * | New () |
Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'data
' attribute.
|
inline |
Clears the 'key
' attribute.
|
inline |
Clears the 'message
' attribute.
|
inline |
Clears the 'severity
' attribute.
|
inline |
Clears the 'stateTimestampMillis
' attribute.
|
inline |
Get the value of the 'data
' attribute.
|
inline |
Get the value of the 'key
' attribute.
|
inline |
Get the value of the 'message
' attribute.
|
inline |
Get the value of the 'severity
' attribute.
|
inline |
Get the value of the 'stateTimestampMillis
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'data
' attribute was set.
data
' attribute was set.
|
inline |
Determine if the 'key
' attribute was set.
key
' attribute was set.
|
inline |
Determine if the 'message
' attribute was set.
message
' attribute was set.
|
inline |
Determine if the 'severity
' attribute was set.
severity
' attribute was set.
|
inline |
Determine if the 'stateTimestampMillis
' attribute was set.
stateTimestampMillis
' attribute was set.
|
static |
Creates a new default instance.
|
inline |
Change the 'data
' attribute.
Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it.
[in] | value | The new value. |
|
inline |
Change the 'key
' attribute.
Key indicating what the app is providing a state for. The content of the key is set by the app's developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present.
[in] | value | The new value. |
|
inline |
Change the 'message
' attribute.
Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it.
[in] | value | The new value. |
|
inline |
Change the 'severity
' attribute.
Severity of the app state. This field will always be present.
[in] | value | The new value. |
|
inline |
Change the 'stateTimestampMillis
' attribute.
Timestamp of when the app set the state in milliseconds since epoch. This field will always be present.
[in] | value | The new value. |