Class: Kaltura::KalturaViewHistoryUserEntry

Inherits:
KalturaUserEntry show all
Defined in:
lib/kaltura_plugins/kaltura_view_history_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaUserEntry

#created_at, #entry_id, #extended_status, #id, #partner_id, #status, #type, #updated_at, #user_id

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#last_time_reachedObject

Last playback time reached by user



36
37
38
# File 'lib/kaltura_plugins/kaltura_view_history_client_plugin.rb', line 36

def last_time_reached
  @last_time_reached
end

#last_update_timeObject

Returns the value of attribute last_update_time.



37
38
39
# File 'lib/kaltura_plugins/kaltura_view_history_client_plugin.rb', line 37

def last_update_time
  @last_update_time
end

#playback_contextObject

Playback context



34
35
36
# File 'lib/kaltura_plugins/kaltura_view_history_client_plugin.rb', line 34

def playback_context
  @playback_context
end

#playlist_last_entry_idObject

Property to save last entry ID played in a playlist.



39
40
41
# File 'lib/kaltura_plugins/kaltura_view_history_client_plugin.rb', line 39

def playlist_last_entry_id
  @playlist_last_entry_id
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/kaltura_plugins/kaltura_view_history_client_plugin.rb', line 48

def from_xml(xml_element)
	super
	if xml_element.elements['playbackContext'] != nil
		self.playback_context = xml_element.elements['playbackContext'].text
	end
	if xml_element.elements['lastTimeReached'] != nil
		self.last_time_reached = xml_element.elements['lastTimeReached'].text
	end
	if xml_element.elements['lastUpdateTime'] != nil
		self.last_update_time = xml_element.elements['lastUpdateTime'].text
	end
	if xml_element.elements['playlistLastEntryId'] != nil
		self.playlist_last_entry_id = xml_element.elements['playlistLastEntryId'].text
	end
end