Class: Kaltura::KalturaInteractivityService

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) ⇒ KalturaInteractivityService

Returns a new instance of KalturaInteractivityService.



147
148
149
# File 'lib/kaltura_plugins/kaltura_interactivity_client_plugin.rb', line 147

def initialize(client)
	super(client)
end

Instance Method Details

#add(entry_id, kaltura_interactivity) ⇒ KalturaInteractivity

Add a interactivity object



153
154
155
156
157
158
159
160
161
162
# File 'lib/kaltura_plugins/kaltura_interactivity_client_plugin.rb', line 153

def add(entry_id, kaltura_interactivity)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id)
	client.add_param(kparams, 'kalturaInteractivity', kaltura_interactivity)
	client.queue_service_action_call('interactivity_interactivity', 'add', 'KalturaInteractivity', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#delete(entry_id) ⇒ Object

Delete a interactivity object by entry id

Returns:



166
167
168
169
170
171
172
173
174
# File 'lib/kaltura_plugins/kaltura_interactivity_client_plugin.rb', line 166

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

#get(entry_id, data_filter = KalturaNotImplemented) ⇒ KalturaInteractivity

Retrieve a interactivity object by entry id



178
179
180
181
182
183
184
185
186
187
# File 'lib/kaltura_plugins/kaltura_interactivity_client_plugin.rb', line 178

def get(entry_id, data_filter=KalturaNotImplemented)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id)
	client.add_param(kparams, 'dataFilter', data_filter)
	client.queue_service_action_call('interactivity_interactivity', 'get', 'KalturaInteractivity', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#update(entry_id, version, kaltura_interactivity) ⇒ KalturaInteractivity

Update an existing interactivity object



191
192
193
194
195
196
197
198
199
200
201
# File 'lib/kaltura_plugins/kaltura_interactivity_client_plugin.rb', line 191

def update(entry_id, version, kaltura_interactivity)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id)
	client.add_param(kparams, 'version', version)
	client.add_param(kparams, 'kalturaInteractivity', kaltura_interactivity)
	client.queue_service_action_call('interactivity_interactivity', 'update', 'KalturaInteractivity', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end