|
fitness
v1
|
#include <session.h>
Public Member Functions | |
| Session (const Json::Value &storage) | |
| Session (Json::Value *storage) | |
| virtual | ~Session () |
| const StringPiece | GetTypeName () const |
| bool | has_active_time_millis () const |
| void | clear_active_time_millis () |
| int64 | get_active_time_millis () const |
| void | set_active_time_millis (int64 value) |
| bool | has_activity_type () const |
| void | clear_activity_type () |
| int32 | get_activity_type () const |
| void | set_activity_type (int32 value) |
| bool | has_application () const |
| void | clear_application () |
| const Application | get_application () const |
| Application | mutable_application () |
| bool | has_description () const |
| void | clear_description () |
| const StringPiece | get_description () const |
| void | set_description (const StringPiece &value) |
| bool | has_end_time_millis () const |
| void | clear_end_time_millis () |
| int64 | get_end_time_millis () const |
| void | set_end_time_millis (int64 value) |
| bool | has_id () const |
| void | clear_id () |
| const StringPiece | get_id () const |
| void | set_id (const StringPiece &value) |
| bool | has_modified_time_millis () const |
| void | clear_modified_time_millis () |
| int64 | get_modified_time_millis () const |
| void | set_modified_time_millis (int64 value) |
| bool | has_name () const |
| void | clear_name () |
| const StringPiece | get_name () const |
| void | set_name (const StringPiece &value) |
| bool | has_start_time_millis () const |
| void | clear_start_time_millis () |
| int64 | get_start_time_millis () const |
| void | set_start_time_millis (int64 value) |
Static Public Member Functions | |
| static Session * | New () |
Sessions contain metadata, such as a user-friendly name and time interval information.
|
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 'activeTimeMillis' attribute.
|
inline |
Clears the 'activityType' attribute.
|
inline |
Clears the 'application' attribute.
|
inline |
Clears the 'description' attribute.
|
inline |
Clears the 'endTimeMillis' attribute.
|
inline |
Clears the 'id' attribute.
|
inline |
Clears the 'modifiedTimeMillis' attribute.
|
inline |
Clears the 'name' attribute.
|
inline |
Clears the 'startTimeMillis' attribute.
|
inline |
Get the value of the 'activeTimeMillis' attribute.
|
inline |
Get the value of the 'activityType' attribute.
| const Application google_fitness_api::Session::get_application | ( | ) | const |
Get a reference to the value of the 'application' attribute.
|
inline |
Get the value of the 'description' attribute.
|
inline |
Get the value of the 'endTimeMillis' attribute.
|
inline |
Get the value of the 'id' attribute.
|
inline |
Get the value of the 'modifiedTimeMillis' attribute.
|
inline |
Get the value of the 'name' attribute.
|
inline |
Get the value of the 'startTimeMillis' attribute.
|
inline |
Returns a string denoting the type of this data object.
google_fitness_api::Session
|
inline |
Determine if the 'activeTimeMillis' attribute was set.
activeTimeMillis' attribute was set.
|
inline |
Determine if the 'activityType' attribute was set.
activityType' attribute was set.
|
inline |
Determine if the 'application' attribute was set.
application' attribute was set.
|
inline |
Determine if the 'description' attribute was set.
description' attribute was set.
|
inline |
Determine if the 'endTimeMillis' attribute was set.
endTimeMillis' attribute was set.
|
inline |
Determine if the 'id' attribute was set.
id' attribute was set.
|
inline |
Determine if the 'modifiedTimeMillis' attribute was set.
modifiedTimeMillis' attribute was set.
|
inline |
Determine if the 'name' attribute was set.
name' attribute was set.
|
inline |
Determine if the 'startTimeMillis' attribute was set.
startTimeMillis' attribute was set. | Application google_fitness_api::Session::mutable_application | ( | ) |
Gets a reference to a mutable value of the 'application' property.
The application that created the session.
|
static |
Creates a new default instance.
|
inline |
Change the 'activeTimeMillis' attribute.
Session active time. While start_time_millis and end_time_millis define the full session time, the active time can be shorter and specified by active_time_millis. If the inactive time during the session is known, it should also be inserted via a com.google.activity.segment data point with a STILL activity value.
| [in] | value | The new value. |
|
inline |
Change the 'activityType' attribute.
The type of activity this session represents.
| [in] | value | The new value. |
|
inline |
Change the 'description' attribute.
A description for this session.
| [in] | value | The new value. |
|
inline |
Change the 'endTimeMillis' attribute.
An end time, in milliseconds since epoch, inclusive.
| [in] | value | The new value. |
|
inline |
Change the 'id' attribute.
A client-generated identifier that is unique across all sessions owned by this particular user.
| [in] | value | The new value. |
|
inline |
Change the 'modifiedTimeMillis' attribute.
A timestamp that indicates when the session was last modified.
| [in] | value | The new value. |
|
inline |
Change the 'name' attribute.
A human readable name of the session.
| [in] | value | The new value. |
|
inline |
Change the 'startTimeMillis' attribute.
A start time, in milliseconds since epoch, inclusive.
| [in] | value | The new value. |