Class: KodiClient::Types::Player::PropertyValue

Inherits:
Object
  • Object
show all
Extended by:
Extensions::Creatable
Includes:
Extensions::Comparable
Defined in:
lib/kodi_client/types/player/property_value_type.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#==, #compare

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_streamsObject (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_percentageObject (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_speedObject (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_moveObject (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_repeatObject (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_rotateObject (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_seekObject (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_shuffleObject (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_zoomObject (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_streamObject (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_subtitleObject (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_streamObject (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

#liveObject (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_modeObject (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

#percentageObject (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_idObject (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

#positionObject (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

#repeatObject (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

#shuffledObject (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

#speedObject (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_enabledObject (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

#subtitlesObject (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

#timeObject (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_timeObject (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

#typeObject (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_streamsObject (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