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.



2131
2132
2133
# File 'lib/kaltura_client.rb', line 2131

def initialize(client)
  super(client)
end

Instance Method Details

#add(live_channel_segment) ⇒ KalturaLiveChannelSegment

Add new live channel segment



2137
2138
2139
2140
2141
2142
2143
2144
2145
# File 'lib/kaltura_client.rb', line 2137

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:



2149
2150
2151
2152
2153
2154
2155
2156
2157
# File 'lib/kaltura_client.rb', line 2149

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



2161
2162
2163
2164
2165
2166
2167
2168
2169
# File 'lib/kaltura_client.rb', line 2161

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



2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
# File 'lib/kaltura_client.rb', line 2173

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



2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
# File 'lib/kaltura_client.rb', line 2186

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