Class: Kaltura::KalturaLiveChannelSegmentService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_client.rb

Overview

Manage live channel segments

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaLiveChannelSegmentService

Returns a new instance of KalturaLiveChannelSegmentService.



10934
10935
10936
# File 'lib/kaltura_client.rb', line 10934

def initialize(client)
	super(client)
end

Instance Method Details

#add(live_channel_segment) ⇒ Object

Add new live channel segment



10940
10941
10942
10943
10944
10945
10946
10947
10948
# File 'lib/kaltura_client.rb', line 10940

def add(live_channel_segment)
	kparams = {}
	client.add_param(kparams, 'liveChannelSegment', live_channel_segment);
	client.queue_service_action_call('livechannelsegment', 'add', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#delete(id) ⇒ Object

Delete live channel segment by id



10977
10978
10979
10980
10981
10982
10983
10984
10985
# File 'lib/kaltura_client.rb', line 10977

def delete(id)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.queue_service_action_call('livechannelsegment', 'delete', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#get(id) ⇒ Object

Get live channel segment by id



10952
10953
10954
10955
10956
10957
10958
10959
10960
# File 'lib/kaltura_client.rb', line 10952

def get(id)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.queue_service_action_call('livechannelsegment', 'get', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object

List live channel segments by filter and pager



10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
# File 'lib/kaltura_client.rb', line 10989

def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
	kparams = {}
	client.add_param(kparams, 'filter', filter);
	client.add_param(kparams, 'pager', pager);
	client.queue_service_action_call('livechannelsegment', 'list', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#update(id, live_channel_segment) ⇒ Object

Update live channel segment by id



10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
# File 'lib/kaltura_client.rb', line 10964

def update(id, live_channel_segment)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.add_param(kparams, 'liveChannelSegment', live_channel_segment);
	client.queue_service_action_call('livechannelsegment', 'update', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end