Class: Spotted::Models::Me::PlayerTransferParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/spotted/models/me/player_transfer_params.rb

Overview

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(device_ids:, play: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see Spotted::Models::Me::PlayerTransferParams for more details.

Parameters:

  • device_ids (Array<String>)

    A JSON array containing the ID of the device on which playback should be started

  • play (Boolean) (defaults to: nil)

    true: ensure playback happens on new device.<br/>false or not provided:

  • request_options (Spotted::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/spotted/models/me/player_transfer_params.rb', line 28

Instance Attribute Details

#device_idsArray<String>

A JSON array containing the ID of the device on which playback should be started/transferred.<br/>For example:‘"74ASZWbe4lXaubB36ztrGX"`<br/>_Note: Although an array is accepted, only a single device_id is currently supported. Supplying more than one will return `400 Bad Request`_

Returns:

  • (Array<String>)


19
# File 'lib/spotted/models/me/player_transfer_params.rb', line 19

required :device_ids, Spotted::Internal::Type::ArrayOf[String]

#playBoolean?

true: ensure playback happens on new device.<br/>false or not provided: keep the current playback state.

Returns:

  • (Boolean, nil)


26
# File 'lib/spotted/models/me/player_transfer_params.rb', line 26

optional :play, Spotted::Internal::Type::Boolean