Class: KodiClient::Types::Player::PropertyValue
- Inherits:
-
Object
- Object
- KodiClient::Types::Player::PropertyValue
- Extended by:
- Extensions::Creatable
- Includes:
- Extensions::Comparable
- Defined in:
- lib/kodi_client/types/player/property_value_type.rb
Overview
Player.Property.Value kodi.wiki/view/JSON-RPC_API/v12#Player.Property.Name
Instance Attribute Summary collapse
-
#audio_streams ⇒ Object
readonly
Returns the value of attribute audio_streams.
-
#cache_percentage ⇒ Object
readonly
Returns the value of attribute cache_percentage.
-
#can_change_speed ⇒ Object
readonly
Returns the value of attribute can_change_speed.
-
#can_move ⇒ Object
readonly
Returns the value of attribute can_move.
-
#can_repeat ⇒ Object
readonly
Returns the value of attribute can_repeat.
-
#can_rotate ⇒ Object
readonly
Returns the value of attribute can_rotate.
-
#can_seek ⇒ Object
readonly
Returns the value of attribute can_seek.
-
#can_shuffle ⇒ Object
readonly
Returns the value of attribute can_shuffle.
-
#can_zoom ⇒ Object
readonly
Returns the value of attribute can_zoom.
-
#current_audio_stream ⇒ Object
readonly
Returns the value of attribute current_audio_stream.
-
#current_subtitle ⇒ Object
readonly
Returns the value of attribute current_subtitle.
-
#current_video_stream ⇒ Object
readonly
Returns the value of attribute current_video_stream.
-
#live ⇒ Object
readonly
Returns the value of attribute live.
-
#party_mode ⇒ Object
readonly
Returns the value of attribute party_mode.
-
#percentage ⇒ Object
readonly
Returns the value of attribute percentage.
-
#playlist_id ⇒ Object
readonly
Returns the value of attribute playlist_id.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#repeat ⇒ Object
readonly
Returns the value of attribute repeat.
-
#shuffled ⇒ Object
readonly
Returns the value of attribute shuffled.
-
#speed ⇒ Object
readonly
Returns the value of attribute speed.
-
#subtitle_enabled ⇒ Object
readonly
Returns the value of attribute subtitle_enabled.
-
#subtitles ⇒ Object
readonly
Returns the value of attribute subtitles.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#total_time ⇒ Object
readonly
Returns the value of attribute total_time.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#video_streams ⇒ Object
readonly
Returns the value of attribute video_streams.
Instance Method Summary collapse
-
#initialize(audio_streams, cache_percentage, can_change_speed, can_move, can_repeat, can_rotate, can_seek, can_shuffle, can_zoom, current_audio_stream, current_subtitle, current_video_stream, live, party_mode, percentage, playlist_id, position, repeat, shuffled, speed, subtitle_enabled, subtitles, time, total_time, type, video_streams) ⇒ PropertyValue
constructor
A new instance of PropertyValue.
Methods included from Extensions::Creatable
arr_to_mapping, attr_accessor, attr_reader, attr_writer, create, create_list, extract_field_from_hash, fields_to_map, hash_to_arr, type_mapping
Methods included from Extensions::Comparable
Constructor Details
#initialize(audio_streams, cache_percentage, can_change_speed, can_move, can_repeat, can_rotate, can_seek, can_shuffle, can_zoom, current_audio_stream, current_subtitle, current_video_stream, live, party_mode, percentage, playlist_id, position, repeat, shuffled, speed, subtitle_enabled, subtitles, time, total_time, type, video_streams) ⇒ PropertyValue
Returns a new instance of PropertyValue.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 21 def initialize(audio_streams, cache_percentage, can_change_speed, can_move, can_repeat, can_rotate, can_seek, can_shuffle, can_zoom, current_audio_stream, current_subtitle, current_video_stream, live, party_mode, percentage, playlist_id, position, repeat, shuffled, speed, subtitle_enabled, subtitles, time, total_time, type, video_streams) type = type.nil? ? PlayerType::VIDEO : type playlist_id = playlist_id.nil? ? -1 : playlist_id position = position.nil? ? -1 : position repeat = repeat.nil? ? PlayerRepeat::OFF : repeat @audio_streams = audio_streams @cache_percentage = cache_percentage @can_change_speed = can_change_speed @can_move = can_move @can_repeat = can_repeat @can_rotate = can_rotate @can_seek = can_seek @can_shuffle = can_shuffle @can_zoom = can_zoom @current_audio_stream = current_audio_stream @current_subtitle = current_subtitle @current_video_stream = current_video_stream @live = live @party_mode = party_mode @percentage = percentage @playlist_id = playlist_id @position = position @repeat = repeat @shuffled = shuffled @speed = speed @subtitle_enabled = subtitle_enabled @subtitles = subtitles @time = time @total_time = total_time @type = type @video_streams = video_streams end |
Instance Attribute Details
#audio_streams ⇒ Object (readonly)
Returns the value of attribute audio_streams.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def audio_streams @audio_streams end |
#cache_percentage ⇒ Object (readonly)
Returns the value of attribute cache_percentage.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def cache_percentage @cache_percentage end |
#can_change_speed ⇒ Object (readonly)
Returns the value of attribute can_change_speed.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def can_change_speed @can_change_speed end |
#can_move ⇒ Object (readonly)
Returns the value of attribute can_move.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def can_move @can_move end |
#can_repeat ⇒ Object (readonly)
Returns the value of attribute can_repeat.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def can_repeat @can_repeat end |
#can_rotate ⇒ Object (readonly)
Returns the value of attribute can_rotate.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def can_rotate @can_rotate end |
#can_seek ⇒ Object (readonly)
Returns the value of attribute can_seek.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def can_seek @can_seek end |
#can_shuffle ⇒ Object (readonly)
Returns the value of attribute can_shuffle.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def can_shuffle @can_shuffle end |
#can_zoom ⇒ Object (readonly)
Returns the value of attribute can_zoom.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def can_zoom @can_zoom end |
#current_audio_stream ⇒ Object (readonly)
Returns the value of attribute current_audio_stream.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def current_audio_stream @current_audio_stream end |
#current_subtitle ⇒ Object (readonly)
Returns the value of attribute current_subtitle.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def current_subtitle @current_subtitle end |
#current_video_stream ⇒ Object (readonly)
Returns the value of attribute current_video_stream.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def current_video_stream @current_video_stream end |
#live ⇒ Object (readonly)
Returns the value of attribute live.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def live @live end |
#party_mode ⇒ Object (readonly)
Returns the value of attribute party_mode.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def party_mode @party_mode end |
#percentage ⇒ Object (readonly)
Returns the value of attribute percentage.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def percentage @percentage end |
#playlist_id ⇒ Object (readonly)
Returns the value of attribute playlist_id.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def playlist_id @playlist_id end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def position @position end |
#repeat ⇒ Object (readonly)
Returns the value of attribute repeat.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def repeat @repeat end |
#shuffled ⇒ Object (readonly)
Returns the value of attribute shuffled.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def shuffled @shuffled end |
#speed ⇒ Object (readonly)
Returns the value of attribute speed.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def speed @speed end |
#subtitle_enabled ⇒ Object (readonly)
Returns the value of attribute subtitle_enabled.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def subtitle_enabled @subtitle_enabled end |
#subtitles ⇒ Object (readonly)
Returns the value of attribute subtitles.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def subtitles @subtitles end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def time @time end |
#total_time ⇒ Object (readonly)
Returns the value of attribute total_time.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def total_time @total_time end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def type @type end |
#video_streams ⇒ Object (readonly)
Returns the value of attribute video_streams.
11 12 13 |
# File 'lib/kodi_client/types/player/property_value_type.rb', line 11 def video_streams @video_streams end |