Class: Kaltura::KalturaNotificationService

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

Overview

Notification Service

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaNotificationService

Returns a new instance of KalturaNotificationService.



3398
3399
3400
# File 'lib/kaltura_client.rb', line 3398

def initialize(client)
  super(client)
end

Instance Method Details

#get_client_notification(entry_id, type) ⇒ KalturaClientNotification

Return the notifications for a specific entry id and type



3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
# File 'lib/kaltura_client.rb', line 3404

def get_client_notification(entry_id, type)
  kparams = {}
  client.add_param(kparams, 'entryId', entry_id)
  client.add_param(kparams, 'type', type)
  client.queue_service_action_call('notification', 'getClientNotification', 'KalturaClientNotification', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end