|
fitness
v1
|
#include <device.h>
Public Member Functions | |
| Device (const Json::Value &storage) | |
| Device (Json::Value *storage) | |
| virtual | ~Device () |
| const StringPiece | GetTypeName () const |
| bool | has_manufacturer () const |
| void | clear_manufacturer () |
| const StringPiece | get_manufacturer () const |
| void | set_manufacturer (const StringPiece &value) |
| bool | has_model () const |
| void | clear_model () |
| const StringPiece | get_model () const |
| void | set_model (const StringPiece &value) |
| bool | has_type () const |
| void | clear_type () |
| const StringPiece | get_type () const |
| void | set_type (const StringPiece &value) |
| bool | has_uid () const |
| void | clear_uid () |
| const StringPiece | get_uid () const |
| void | set_uid (const StringPiece &value) |
| bool | has_version () const |
| void | clear_version () |
| const StringPiece | get_version () const |
| void | set_version (const StringPiece &value) |
Static Public Member Functions | |
| static Device * | New () |
Representation of an integrated device (such as a phone or a wearable) that can hold sensors. Each sensor is exposed as a data source.
The main purpose of the device information contained in this class is to identify the hardware of a particular data source. This can be useful in different ways, including:
|
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 'manufacturer' attribute.
|
inline |
Clears the 'model' attribute.
|
inline |
Clears the 'type' attribute.
|
inline |
Clears the 'uid' attribute.
|
inline |
Clears the 'version' attribute.
|
inline |
Get the value of the 'manufacturer' attribute.
|
inline |
Get the value of the 'model' attribute.
|
inline |
Get the value of the 'type' attribute.
|
inline |
Get the value of the 'uid' attribute.
|
inline |
Get the value of the 'version' attribute.
|
inline |
Returns a string denoting the type of this data object.
google_fitness_api::Device
|
inline |
Determine if the 'manufacturer' attribute was set.
manufacturer' attribute was set.
|
inline |
Determine if the 'model' attribute was set.
model' attribute was set.
|
inline |
Determine if the 'type' attribute was set.
type' attribute was set.
|
inline |
Determine if the 'uid' attribute was set.
uid' attribute was set.
|
inline |
Determine if the 'version' attribute was set.
version' attribute was set.
|
static |
Creates a new default instance.
|
inline |
Change the 'manufacturer' attribute.
Manufacturer of the product/hardware.
| [in] | value | The new value. |
|
inline |
Change the 'model' attribute.
End-user visible model name for the device.
| [in] | value | The new value. |
|
inline |
Change the 'type' attribute.
A constant representing the type of the device.
| [in] | value | The new value. |
|
inline |
Change the 'uid' attribute.
The serial number or other unique ID for the hardware. This field is obfuscated when read by any REST or Android client that did not create the data source. Only the data source creator will see the uid field in clear and normal form.
The obfuscation preserves equality; that is, given two IDs, if id1 == id2, obfuscated(id1) == obfuscated(id2).
| [in] | value | The new value. |
|
inline |
Change the 'version' attribute.
Version string for the device hardware/software.
| [in] | value | The new value. |