Class
caplin.streamlink

DataEvent

Provides access to fundamental information about subscription events relating to changes in data, such as the subject and the type of event that has occurred.

In application code, use the derived interfaces that related to specific types of data, rather than this base-level interface. For example caplin.streamlink.RecordType1Event interface is derived from caplin.streamlink.DataEvent; it provides information about changes to a subscribed subject of type record, including the fields that have changed and their new values.

Constructor Summary

Attributes Name and Description
caplin.streamlink.DataEvent()

Method Summary

Attributes Name and Description
String getSubject()

Returns the subject to which the event relates.

boolean isImage()

Returns whether this was an image event or an update event.

Constructor Detail

Method Detail

String getSubject()

Returns the subject to which the event relates.

Returns
{String} the subject

boolean isImage()

Returns whether this was an image event or an update event.

If this method returns true, all data for the subject is contained within this event; you should therefore clear the application's caches of any current data for the subject of this event before refreshing them with the new data.

Returns
{boolean} true if this event contains all data for the subject (an "image"), false if the event contains only some of the data (an "update").