Class: Google::Apis::FitnessV1::ListSessionsResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/fitness_v1/classes.rb,
generated/google/apis/fitness_v1/representations.rb,
generated/google/apis/fitness_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListSessionsResponse

Returns a new instance of ListSessionsResponse.



760
761
762
# File 'generated/google/apis/fitness_v1/classes.rb', line 760

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#deleted_sessionArray<Google::Apis::FitnessV1::Session>

If includeDeleted is set to true in the request, this list will contain sessions deleted with original end times that are within the startTime and endTime frame. Corresponds to the JSON property deletedSession



747
748
749
# File 'generated/google/apis/fitness_v1/classes.rb', line 747

def deleted_session
  @deleted_session
end

#next_page_tokenString

The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


753
754
755
# File 'generated/google/apis/fitness_v1/classes.rb', line 753

def next_page_token
  @next_page_token
end

#sessionArray<Google::Apis::FitnessV1::Session>

Sessions with an end time that is between startTime and endTime of the request. Corresponds to the JSON property session



758
759
760
# File 'generated/google/apis/fitness_v1/classes.rb', line 758

def session
  @session
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



765
766
767
768
769
# File 'generated/google/apis/fitness_v1/classes.rb', line 765

def update!(**args)
  @deleted_session = args[:deleted_session] if args.key?(:deleted_session)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @session = args[:session] if args.key?(:session)
end