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.



2187
2188
2189
# File 'lib/kaltura_client.rb', line 2187

def initialize(client)
	super(client)
end

Instance Method Details

#add(live_channel_segment) ⇒ KalturaLiveChannelSegment

Add new live channel segment



2193
2194
2195
2196
2197
2198
2199
2200
2201
# File 'lib/kaltura_client.rb', line 2193

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

#delete(id) ⇒ Object

Delete live channel segment by id

Returns:



2205
2206
2207
2208
2209
2210
2211
2212
2213
# File 'lib/kaltura_client.rb', line 2205

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) ⇒ KalturaLiveChannelSegment

Get live channel segment by id



2217
2218
2219
2220
2221
2222
2223
2224
2225
# File 'lib/kaltura_client.rb', line 2217

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

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

List live channel segments by filter and pager



2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
# File 'lib/kaltura_client.rb', line 2229

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', 'KalturaLiveChannelSegmentListResponse', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#update(id, live_channel_segment) ⇒ KalturaLiveChannelSegment

Update live channel segment by id



2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
# File 'lib/kaltura_client.rb', line 2242

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', 'KalturaLiveChannelSegment', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end