|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- the properties of the event.public interface IRecordingUpdateEvent<E extends Enum<E>>
Backend Event - Recording - Properties Updated.
IRecordingListChangeUpdate
,
IUpdateProgInfo
Method Summary | |
---|---|
Integer |
getChannelID()
Gets the channel ID of the recording. |
IProgramInfo |
getProgramInfo()
Gets the info object of the changed recording. |
Date |
getRecordingStartTime()
Gets the recording start time. |
String |
getUniqueRecordingID()
Gets the unique ID of the changed recording. |
EnumMap<IProgramInfo.Props,Object[]> |
getUpdatedProperties(IProgramInfo oldProgramInfo)
Compares a previous version of the recording with the changed version. |
Methods inherited from interface org.jmythapi.protocol.events.IMythEvent |
---|
getEventName |
Methods inherited from interface org.jmythapi.IPropertyAware |
---|
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject |
Methods inherited from interface org.jmythapi.IVersionable |
---|
getVersionNr |
Methods inherited from interface org.jmythapi.protocol.ISendable |
---|
getPacket |
Method Detail |
---|
Integer getChannelID()
getChannelID
in interface IRecordingEvent<E extends Enum<E>>
Date getRecordingStartTime()
getRecordingStartTime
in interface IRecordingEvent<E extends Enum<E>>
String getUniqueRecordingID()
getUniqueRecordingID
in interface IRecordingEvent<E extends Enum<E>>
EncodingUtils.generateId(Integer, Date)
IProgramInfo getProgramInfo()
EnumMap<IProgramInfo.Props,Object[]> getUpdatedProperties(IProgramInfo oldProgramInfo)
This function compares each property of the recordings and returns a map containing all changed properties
EnumMap<IProgramInfo.Props,Object[]> diffMap = ((IRecordingListChangeUpdate)event).getUpdatedProperties(oldRecording); // pring changes System.out.println(String.format( "%d properties of recording changed:", Integer.valueOf(diffMap.size()), recording.getBaseName() )); for(Entry<IProgramInfo.Props,Object[]> entry : diffMap.entrySet()) { IProgramInfo.Props property = entry.getKey(); Object[] values = entry.getValue(); System.out.println(String.format( "\r\n %s: %s -> %s", property, values[0],values[1] )); }
oldProgramInfo
- a previous version of the recording
PropertyAwareUtils.compare(IPropertyAware, IPropertyAware)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |