google_api_fitness v0.20.0 GoogleApi.Fitness.V1.Model.Device View Source
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:
- <li>Distinguishing two similar sensors on different devices (the step counter on two nexus 5 phones, for instance) <li>Display the source of data to the user (by using the device make / model) <li>Treat data differently depending on sensor type (accelerometers on a watch may give different patterns than those on a phone) <li>Build different analysis models for each device/version.
Attributes
manufacturer
(type:String.t
, default:nil
) - Manufacturer of the product/hardware.model
(type:String.t
, default:nil
) - End-user visible model name for the device.type
(type:String.t
, default:nil
) - A constant representing the type of the device.uid
(type:String.t
, default:nil
) - 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).
version
(type:String.t
, default:nil
) - Version string for the device hardware/software.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Specs
Link to this section Functions
Specs
Unwrap a decoded JSON object into its complex fields.