Class: Spotted::Models::Me::PlayerGetCurrentlyPlayingResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Spotted::Models::Me::PlayerGetCurrentlyPlayingResponse
- Defined in:
- lib/spotted/models/me/player_get_currently_playing_response.rb
Overview
Defined Under Namespace
Modules: Item Classes: Actions
Instance Attribute Summary collapse
-
#actions ⇒ Spotted::Models::Me::PlayerGetCurrentlyPlayingResponse::Actions?
Allows to update the user interface based on which playback actions are available within the current context.
-
#context ⇒ Spotted::Models::Me::ContextObject?
A Context Object.
-
#currently_playing_type ⇒ String?
The object type of the currently playing item.
-
#is_playing ⇒ Boolean?
If something is currently playing, return ‘true`.
-
#item ⇒ Spotted::Models::TrackObject, ...
The currently playing track or episode.
-
#progress_ms ⇒ Integer?
Progress into the currently playing track or episode.
-
#timestamp ⇒ Integer?
Unix Millisecond Timestamp when data was fetched.
Instance Method Summary collapse
-
#initialize(interrupting_playback: nil, pausing: nil, resuming: nil, seeking: nil, skipping_next: nil, skipping_prev: nil, toggling_repeat_context: nil, toggling_repeat_track: nil, toggling_shuffle: nil, transferring_playback: nil) ⇒ Object
constructor
Allows to update the user interface based on which playback actions are available within the current context.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(interrupting_playback: nil, pausing: nil, resuming: nil, seeking: nil, skipping_next: nil, skipping_prev: nil, toggling_repeat_context: nil, toggling_repeat_track: nil, toggling_shuffle: nil, transferring_playback: nil) ⇒ Object
Allows to update the user interface based on which playback actions are available within the current context.
|
|
# File 'lib/spotted/models/me/player_get_currently_playing_response.rb', line 52
|
Instance Attribute Details
#actions ⇒ Spotted::Models::Me::PlayerGetCurrentlyPlayingResponse::Actions?
Allows to update the user interface based on which playback actions are available within the current context.
13 |
# File 'lib/spotted/models/me/player_get_currently_playing_response.rb', line 13 optional :actions, -> { Spotted::Models::Me::PlayerGetCurrentlyPlayingResponse::Actions } |
#context ⇒ Spotted::Models::Me::ContextObject?
A Context Object. Can be ‘null`.
19 |
# File 'lib/spotted/models/me/player_get_currently_playing_response.rb', line 19 optional :context, -> { Spotted::Me::ContextObject } |
#currently_playing_type ⇒ String?
The object type of the currently playing item. Can be one of ‘track`, `episode`, `ad` or `unknown`.
26 |
# File 'lib/spotted/models/me/player_get_currently_playing_response.rb', line 26 optional :currently_playing_type, String |
#is_playing ⇒ Boolean?
If something is currently playing, return ‘true`.
32 |
# File 'lib/spotted/models/me/player_get_currently_playing_response.rb', line 32 optional :is_playing, Spotted::Internal::Type::Boolean |
#item ⇒ Spotted::Models::TrackObject, ...
The currently playing track or episode. Can be ‘null`.
38 |
# File 'lib/spotted/models/me/player_get_currently_playing_response.rb', line 38 optional :item, union: -> { Spotted::Models::Me::PlayerGetCurrentlyPlayingResponse::Item } |
#progress_ms ⇒ Integer?
Progress into the currently playing track or episode. Can be ‘null`.
44 |
# File 'lib/spotted/models/me/player_get_currently_playing_response.rb', line 44 optional :progress_ms, Integer |
#timestamp ⇒ Integer?
Unix Millisecond Timestamp when data was fetched
50 |
# File 'lib/spotted/models/me/player_get_currently_playing_response.rb', line 50 optional :timestamp, Integer |