Class: Kaltura::KalturaVolatileInteractivityService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_plugins/kaltura_interactivity_client_plugin.rb

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaVolatileInteractivityService



205
206
207
# File 'lib/kaltura_plugins/kaltura_interactivity_client_plugin.rb', line 205

def initialize(client)
  super(client)
end

Instance Method Details

#add(entry_id, kaltura_volatile_interactivity) ⇒ KalturaVolatileInteractivity

add a volatile interactivity object



211
212
213
214
215
216
217
218
219
220
# File 'lib/kaltura_plugins/kaltura_interactivity_client_plugin.rb', line 211

def add(entry_id, kaltura_volatile_interactivity)
  kparams = {}
  client.add_param(kparams, 'entryId', entry_id)
  client.add_param(kparams, 'kalturaVolatileInteractivity', kaltura_volatile_interactivity)
  client.queue_service_action_call('interactivity_volatileinteractivity', 'add', 'KalturaVolatileInteractivity', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#delete(entry_id) ⇒ Object

Delete a volatile interactivity object by entry id



224
225
226
227
228
229
230
231
232
# File 'lib/kaltura_plugins/kaltura_interactivity_client_plugin.rb', line 224

def delete(entry_id)
  kparams = {}
  client.add_param(kparams, 'entryId', entry_id)
  client.queue_service_action_call('interactivity_volatileinteractivity', 'delete', '', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#get(entry_id) ⇒ KalturaVolatileInteractivity

Retrieve a volatile interactivity object by entry id



236
237
238
239
240
241
242
243
244
# File 'lib/kaltura_plugins/kaltura_interactivity_client_plugin.rb', line 236

def get(entry_id)
  kparams = {}
  client.add_param(kparams, 'entryId', entry_id)
  client.queue_service_action_call('interactivity_volatileinteractivity', 'get', 'KalturaVolatileInteractivity', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#update(entry_id, version, kaltura_volatile_interactivity) ⇒ KalturaVolatileInteractivity

Update a volatile interactivity object



248
249
250
251
252
253
254
255
256
257
258
# File 'lib/kaltura_plugins/kaltura_interactivity_client_plugin.rb', line 248

def update(entry_id, version, kaltura_volatile_interactivity)
  kparams = {}
  client.add_param(kparams, 'entryId', entry_id)
  client.add_param(kparams, 'version', version)
  client.add_param(kparams, 'kalturaVolatileInteractivity', kaltura_volatile_interactivity)
  client.queue_service_action_call('interactivity_volatileinteractivity', 'update', 'KalturaVolatileInteractivity', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end