fitness  v1
Public Member Functions | Static Public Member Functions | List of all members
google_fitness_api::Session Class Reference

#include <session.h>

Inheritance diagram for google_fitness_api::Session:

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 SessionNew ()
 

Detailed Description

Sessions contain metadata, such as a user-friendly name and time interval information.

Constructor & Destructor Documentation

◆ Session() [1/2]

google_fitness_api::Session::Session ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ Session() [2/2]

google_fitness_api::Session::Session ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~Session()

google_fitness_api::Session::~Session ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_active_time_millis()

void google_fitness_api::Session::clear_active_time_millis ( )
inline

Clears the 'activeTimeMillis' attribute.

◆ clear_activity_type()

void google_fitness_api::Session::clear_activity_type ( )
inline

Clears the 'activityType' attribute.

◆ clear_application()

void google_fitness_api::Session::clear_application ( )
inline

Clears the 'application' attribute.

◆ clear_description()

void google_fitness_api::Session::clear_description ( )
inline

Clears the 'description' attribute.

◆ clear_end_time_millis()

void google_fitness_api::Session::clear_end_time_millis ( )
inline

Clears the 'endTimeMillis' attribute.

◆ clear_id()

void google_fitness_api::Session::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_modified_time_millis()

void google_fitness_api::Session::clear_modified_time_millis ( )
inline

Clears the 'modifiedTimeMillis' attribute.

◆ clear_name()

void google_fitness_api::Session::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_start_time_millis()

void google_fitness_api::Session::clear_start_time_millis ( )
inline

Clears the 'startTimeMillis' attribute.

◆ get_active_time_millis()

int64 google_fitness_api::Session::get_active_time_millis ( ) const
inline

Get the value of the 'activeTimeMillis' attribute.

◆ get_activity_type()

int32 google_fitness_api::Session::get_activity_type ( ) const
inline

Get the value of the 'activityType' attribute.

◆ get_application()

const Application google_fitness_api::Session::get_application ( ) const

Get a reference to the value of the 'application' attribute.

◆ get_description()

const StringPiece google_fitness_api::Session::get_description ( ) const
inline

Get the value of the 'description' attribute.

◆ get_end_time_millis()

int64 google_fitness_api::Session::get_end_time_millis ( ) const
inline

Get the value of the 'endTimeMillis' attribute.

◆ get_id()

const StringPiece google_fitness_api::Session::get_id ( ) const
inline

Get the value of the 'id' attribute.

◆ get_modified_time_millis()

int64 google_fitness_api::Session::get_modified_time_millis ( ) const
inline

Get the value of the 'modifiedTimeMillis' attribute.

◆ get_name()

const StringPiece google_fitness_api::Session::get_name ( ) const
inline

Get the value of the 'name' attribute.

◆ get_start_time_millis()

int64 google_fitness_api::Session::get_start_time_millis ( ) const
inline

Get the value of the 'startTimeMillis' attribute.

◆ GetTypeName()

const StringPiece google_fitness_api::Session::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_fitness_api::Session

◆ has_active_time_millis()

bool google_fitness_api::Session::has_active_time_millis ( ) const
inline

Determine if the 'activeTimeMillis' attribute was set.

Returns
true if the 'activeTimeMillis' attribute was set.

◆ has_activity_type()

bool google_fitness_api::Session::has_activity_type ( ) const
inline

Determine if the 'activityType' attribute was set.

Returns
true if the 'activityType' attribute was set.

◆ has_application()

bool google_fitness_api::Session::has_application ( ) const
inline

Determine if the 'application' attribute was set.

Returns
true if the 'application' attribute was set.

◆ has_description()

bool google_fitness_api::Session::has_description ( ) const
inline

Determine if the 'description' attribute was set.

Returns
true if the 'description' attribute was set.

◆ has_end_time_millis()

bool google_fitness_api::Session::has_end_time_millis ( ) const
inline

Determine if the 'endTimeMillis' attribute was set.

Returns
true if the 'endTimeMillis' attribute was set.

◆ has_id()

bool google_fitness_api::Session::has_id ( ) const
inline

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_modified_time_millis()

bool google_fitness_api::Session::has_modified_time_millis ( ) const
inline

Determine if the 'modifiedTimeMillis' attribute was set.

Returns
true if the 'modifiedTimeMillis' attribute was set.

◆ has_name()

bool google_fitness_api::Session::has_name ( ) const
inline

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_start_time_millis()

bool google_fitness_api::Session::has_start_time_millis ( ) const
inline

Determine if the 'startTimeMillis' attribute was set.

Returns
true if the 'startTimeMillis' attribute was set.

◆ mutable_application()

Application google_fitness_api::Session::mutable_application ( )

Gets a reference to a mutable value of the 'application' property.

The application that created the session.

Returns
The result can be modified to change the attribute value.

◆ New()

Session * google_fitness_api::Session::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_active_time_millis()

void google_fitness_api::Session::set_active_time_millis ( int64  value)
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.

Parameters
[in]valueThe new value.

◆ set_activity_type()

void google_fitness_api::Session::set_activity_type ( int32  value)
inline

Change the 'activityType' attribute.

The type of activity this session represents.

Parameters
[in]valueThe new value.

◆ set_description()

void google_fitness_api::Session::set_description ( const StringPiece &  value)
inline

Change the 'description' attribute.

A description for this session.

Parameters
[in]valueThe new value.

◆ set_end_time_millis()

void google_fitness_api::Session::set_end_time_millis ( int64  value)
inline

Change the 'endTimeMillis' attribute.

An end time, in milliseconds since epoch, inclusive.

Parameters
[in]valueThe new value.

◆ set_id()

void google_fitness_api::Session::set_id ( const StringPiece &  value)
inline

Change the 'id' attribute.

A client-generated identifier that is unique across all sessions owned by this particular user.

Parameters
[in]valueThe new value.

◆ set_modified_time_millis()

void google_fitness_api::Session::set_modified_time_millis ( int64  value)
inline

Change the 'modifiedTimeMillis' attribute.

A timestamp that indicates when the session was last modified.

Parameters
[in]valueThe new value.

◆ set_name()

void google_fitness_api::Session::set_name ( const StringPiece &  value)
inline

Change the 'name' attribute.

A human readable name of the session.

Parameters
[in]valueThe new value.

◆ set_start_time_millis()

void google_fitness_api::Session::set_start_time_millis ( int64  value)
inline

Change the 'startTimeMillis' attribute.

A start time, in milliseconds since epoch, inclusive.

Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: