#include <device_state.h>
The state of a user's device, as accessed by the getState and setState methods on device resources.
◆ DeviceState() [1/2]
google_androidenterprise_api::DeviceState::DeviceState |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ DeviceState() [2/2]
google_androidenterprise_api::DeviceState::DeviceState |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~DeviceState()
google_androidenterprise_api::DeviceState::~DeviceState |
( |
| ) |
|
|
virtual |
◆ clear_account_state()
void google_androidenterprise_api::DeviceState::clear_account_state |
( |
| ) |
|
|
inline |
Clears the 'accountState
' attribute.
◆ clear_kind()
void google_androidenterprise_api::DeviceState::clear_kind |
( |
| ) |
|
|
inline |
Clears the 'kind
' attribute.
◆ get_account_state()
const StringPiece google_androidenterprise_api::DeviceState::get_account_state |
( |
| ) |
const |
|
inline |
Get the value of the 'accountState
' attribute.
◆ get_kind()
const StringPiece google_androidenterprise_api::DeviceState::get_kind |
( |
| ) |
const |
|
inline |
Get the value of the 'kind
' attribute.
◆ GetTypeName()
const StringPiece google_androidenterprise_api::DeviceState::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_account_state()
bool google_androidenterprise_api::DeviceState::has_account_state |
( |
| ) |
const |
|
inline |
Determine if the 'accountState
' attribute was set.
- Returns
- true if the '
accountState
' attribute was set.
◆ has_kind()
bool google_androidenterprise_api::DeviceState::has_kind |
( |
| ) |
const |
|
inline |
Determine if the 'kind
' attribute was set.
- Returns
- true if the '
kind
' attribute was set.
◆ New()
DeviceState * google_androidenterprise_api::DeviceState::New |
( |
| ) |
|
|
static |
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_account_state()
void google_androidenterprise_api::DeviceState::set_account_state |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'accountState
' attribute.
The state of the Google account on the device. "enabled" indicates that the Google account on the device can be used to access Google services (including Google Play), while "disabled" means that it cannot. A new device is initially in the "disabled" state.
- Parameters
-
◆ set_kind()
void google_androidenterprise_api::DeviceState::set_kind |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'kind
' attribute.
- Parameters
-
The documentation for this class was generated from the following files:
- google/androidenterprise_api/device_state.h
- google/androidenterprise_api/device_state.cc