Class: Kaltura::KalturaPlaylistService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaPlaylistService
- Defined in:
- lib/kaltura_client.rb
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
- #add(playlist, update_stats = false) ⇒ Object
- #delete(id) ⇒ Object
- #execute(id, detailed = '') ⇒ Object
- #execute_from_content(playlist_type, playlist_content, detailed = '') ⇒ Object
- #execute_from_filters(filters, total_results, detailed = '') ⇒ Object
- #get(id, version = -1)) ⇒ Object
- #get_stats_from_content(playlist_type, playlist_content) ⇒ Object
-
#initialize(client) ⇒ KalturaPlaylistService
constructor
A new instance of KalturaPlaylistService.
- #list(filter = nil, pager = nil) ⇒ Object
- #update(id, playlist, update_stats = false) ⇒ Object
Constructor Details
#initialize(client) ⇒ KalturaPlaylistService
Returns a new instance of KalturaPlaylistService.
4566 4567 4568 |
# File 'lib/kaltura_client.rb', line 4566 def initialize(client) super(client) end |
Instance Method Details
#add(playlist, update_stats = false) ⇒ Object
4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 |
# File 'lib/kaltura_client.rb', line 4570 def add(playlist, update_stats=false) kparams = {} client.add_param(kparams, 'playlist', playlist); client.add_param(kparams, 'updateStats', update_stats); client.queue_service_action_call('playlist', 'add', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#delete(id) ⇒ Object
4604 4605 4606 4607 4608 4609 4610 4611 4612 |
# File 'lib/kaltura_client.rb', line 4604 def delete(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('playlist', 'delete', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#execute(id, detailed = '') ⇒ Object
4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 |
# File 'lib/kaltura_client.rb', line 4625 def execute(id, detailed='') kparams = {} client.add_param(kparams, 'id', id); client.add_param(kparams, 'detailed', detailed); client.queue_service_action_call('playlist', 'execute', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#execute_from_content(playlist_type, playlist_content, detailed = '') ⇒ Object
4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 |
# File 'lib/kaltura_client.rb', line 4636 def execute_from_content(playlist_type, playlist_content, detailed='') kparams = {} client.add_param(kparams, 'playlistType', playlist_type); client.add_param(kparams, 'playlistContent', playlist_content); client.add_param(kparams, 'detailed', detailed); client.queue_service_action_call('playlist', 'executeFromContent', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#execute_from_filters(filters, total_results, detailed = '') ⇒ Object
4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 |
# File 'lib/kaltura_client.rb', line 4648 def execute_from_filters(filters, total_results, detailed='') kparams = {} filters.each do |obj| client.add_param(kparams, 'filters', obj); end client.add_param(kparams, 'totalResults', total_results); client.add_param(kparams, 'detailed', detailed); client.queue_service_action_call('playlist', 'executeFromFilters', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#get(id, version = -1)) ⇒ Object
4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 |
# File 'lib/kaltura_client.rb', line 4581 def get(id, version=-1) kparams = {} client.add_param(kparams, 'id', id); client.add_param(kparams, 'version', version); client.queue_service_action_call('playlist', 'get', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#get_stats_from_content(playlist_type, playlist_content) ⇒ Object
4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 |
# File 'lib/kaltura_client.rb', line 4662 def get_stats_from_content(playlist_type, playlist_content) kparams = {} client.add_param(kparams, 'playlistType', playlist_type); client.add_param(kparams, 'playlistContent', playlist_content); client.queue_service_action_call('playlist', 'getStatsFromContent', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#list(filter = nil, pager = nil) ⇒ Object
4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 |
# File 'lib/kaltura_client.rb', line 4614 def list(filter=nil, pager=nil) kparams = {} client.add_param(kparams, 'filter', filter); client.add_param(kparams, 'pager', pager); client.queue_service_action_call('playlist', 'list', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update(id, playlist, update_stats = false) ⇒ Object
4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 |
# File 'lib/kaltura_client.rb', line 4592 def update(id, playlist, update_stats=false) kparams = {} client.add_param(kparams, 'id', id); client.add_param(kparams, 'playlist', playlist); client.add_param(kparams, 'updateStats', update_stats); client.queue_service_action_call('playlist', 'update', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |