Class: Kaltura::KalturaLiveChannelSegmentService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaLiveChannelSegmentService
- Defined in:
- lib/kaltura_client.rb
Overview
Manage live channel segments
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(live_channel_segment) ⇒ Object
Add new live channel segment.
-
#delete(id) ⇒ Object
Delete live channel segment by id.
-
#get(id) ⇒ Object
Get live channel segment by id.
-
#initialize(client) ⇒ KalturaLiveChannelSegmentService
constructor
A new instance of KalturaLiveChannelSegmentService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List live channel segments by filter and pager.
-
#update(id, live_channel_segment) ⇒ Object
Update live channel segment by id.
Constructor Details
#initialize(client) ⇒ KalturaLiveChannelSegmentService
Returns a new instance of KalturaLiveChannelSegmentService.
2148 2149 2150 |
# File 'lib/kaltura_client.rb', line 2148 def initialize(client) super(client) end |
Instance Method Details
#add(live_channel_segment) ⇒ Object
Add new live channel segment
2154 2155 2156 2157 2158 2159 2160 2161 2162 |
# File 'lib/kaltura_client.rb', line 2154 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
2191 2192 2193 2194 2195 2196 2197 2198 2199 |
# File 'lib/kaltura_client.rb', line 2191 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
2166 2167 2168 2169 2170 2171 2172 2173 2174 |
# File 'lib/kaltura_client.rb', line 2166 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) ⇒ Object
List live channel segments by filter and pager
2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 |
# File 'lib/kaltura_client.rb', line 2203 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) ⇒ Object
Update live channel segment by id
2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 |
# File 'lib/kaltura_client.rb', line 2178 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 |