Class: Kaltura::KalturaUserEntryService

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

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaUserEntryService



5234
5235
5236
# File 'lib/kaltura_client.rb', line 5234

def initialize(client)
  super(client)
end

Instance Method Details

#add(user_entry) ⇒ KalturaUserEntry

Adds a user_entry to the Kaltura DB.



5240
5241
5242
5243
5244
5245
5246
5247
5248
# File 'lib/kaltura_client.rb', line 5240

def add(user_entry)
  kparams = {}
  client.add_param(kparams, 'userEntry', user_entry)
  client.queue_service_action_call('userentry', 'add', 'KalturaUserEntry', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#bulk_delete(filter) ⇒ int



5251
5252
5253
5254
5255
5256
5257
5258
5259
# File 'lib/kaltura_client.rb', line 5251

def bulk_delete(filter)
  kparams = {}
  client.add_param(kparams, 'filter', filter)
  client.queue_service_action_call('userentry', 'bulkDelete', 'int', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#delete(id) ⇒ KalturaUserEntry



5262
5263
5264
5265
5266
5267
5268
5269
5270
# File 'lib/kaltura_client.rb', line 5262

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

#get(id) ⇒ KalturaUserEntry



5273
5274
5275
5276
5277
5278
5279
5280
5281
# File 'lib/kaltura_client.rb', line 5273

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

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



5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
# File 'lib/kaltura_client.rb', line 5284

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

#submit_quiz(id) ⇒ KalturaQuizUserEntry

Submits the quiz so that it’s status will be submitted and calculates the score for the quiz



5297
5298
5299
5300
5301
5302
5303
5304
5305
# File 'lib/kaltura_client.rb', line 5297

def submit_quiz(id)
  kparams = {}
  client.add_param(kparams, 'id', id)
  client.queue_service_action_call('userentry', 'submitQuiz', 'KalturaQuizUserEntry', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#update(id, user_entry) ⇒ KalturaUserEntry



5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
# File 'lib/kaltura_client.rb', line 5308

def update(id, user_entry)
  kparams = {}
  client.add_param(kparams, 'id', id)
  client.add_param(kparams, 'userEntry', user_entry)
  client.queue_service_action_call('userentry', 'update', 'KalturaUserEntry', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end