|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IRecordingListChangeUpdate
.
public interface IUpdateProgInfo
Backend Event - ProgramInfo Updated.
#BACKEND_MESSAGE_UPDATE_PROG_INFO
Nested Class Summary | |
---|---|
static class |
IUpdateProgInfo.Props
Deprecated. |
Method Summary | |
---|---|
Integer |
getChannelID()
Deprecated. Gets the channel ID of the recording. |
IProgramInfo |
getProgramInfo()
Deprecated. Gets the info object of the changed recording. |
Date |
getRecordingStartTime()
Deprecated. Gets the recording start time. |
String |
getUniqueRecordingID()
Deprecated. Gets the unique ID of the changed recording. |
EnumMap<IProgramInfo.Props,Object[]> |
getUpdatedProperties(IProgramInfo oldProgramInfo)
Deprecated. 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<IUpdateProgInfo.Props>
getChannelID
in interface IRecordingUpdateEvent<IUpdateProgInfo.Props>
Date getRecordingStartTime()
getRecordingStartTime
in interface IRecordingEvent<IUpdateProgInfo.Props>
getRecordingStartTime
in interface IRecordingUpdateEvent<IUpdateProgInfo.Props>
String getUniqueRecordingID()
getUniqueRecordingID
in interface IRecordingEvent<IUpdateProgInfo.Props>
getUniqueRecordingID
in interface IRecordingUpdateEvent<IUpdateProgInfo.Props>
EncodingUtils.generateId(Integer, Date)
IProgramInfo getProgramInfo()
getProgramInfo
in interface IRecordingUpdateEvent<IUpdateProgInfo.Props>
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] )); }
getUpdatedProperties
in interface IRecordingUpdateEvent<IUpdateProgInfo.Props>
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 |