class Google::Apis::FitnessV1::Session
Sessions contain metadata, such as a user-friendly name and time interval information.
Attributes
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 Corresponds to the JSON property `activeTimeMillis` @return [String]
The type of activity this session represents. Corresponds to the JSON property `activityType` @return [Fixnum]
See: google3/java/com/google/android/apps/heart/platform/api/Application.java Corresponds to the JSON property `application` @return [Google::Apis::FitnessV1::Application]
A description for this session. Corresponds to the JSON property `description` @return [String]
An end time, in milliseconds since epoch, inclusive. Corresponds to the JSON property `endTimeMillis` @return [String]
A client-generated identifier that is unique across all sessions owned by this particular user. Corresponds to the JSON property `id` @return [String]
A timestamp that indicates when the session was last modified. Corresponds to the JSON property `modifiedTimeMillis` @return [String]
A human readable name of the session. Corresponds to the JSON property `name` @return [String]
A start time, in milliseconds since epoch, inclusive. Corresponds to the JSON property `startTimeMillis` @return [String]
Public Class Methods
# File generated/google/apis/fitness_v1/classes.rb, line 796 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/fitness_v1/classes.rb, line 801 def update!(**args) @active_time_millis = args[:active_time_millis] if args.key?(:active_time_millis) @activity_type = args[:activity_type] if args.key?(:activity_type) @application = args[:application] if args.key?(:application) @description = args[:description] if args.key?(:description) @end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis) @id = args[:id] if args.key?(:id) @modified_time_millis = args[:modified_time_millis] if args.key?(:modified_time_millis) @name = args[:name] if args.key?(:name) @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis) end