org.jmythapi.protocol.events.impl
Class VideoListChange

java.lang.Object
  extended by org.jmythapi.impl.AData<E>
      extended by org.jmythapi.protocol.response.impl.AMythResponse<E>
          extended by org.jmythapi.protocol.events.impl.AMythEvent<E>
              extended by org.jmythapi.protocol.events.impl.VideoList<IVideoListChange.Props>
                  extended by org.jmythapi.protocol.events.impl.VideoListChange
All Implemented Interfaces:
Cloneable, IPropertyAware<IVideoListChange.Props>, IVersionable, IMythEvent<IVideoListChange.Props>, IVideoList<IVideoListChange.Props>, IVideoListChange, ISendable, IMythResponse<IVideoListChange.Props>

public class VideoListChange
extends VideoList<IVideoListChange.Props>
implements IVideoListChange


Nested Class Summary
static class VideoListChange.VideoChange
           
 
Nested classes/interfaces inherited from interface org.jmythapi.protocol.events.IVideoListChange
IVideoListChange.ChangeType, IVideoListChange.IVideoChange, IVideoListChange.Props
 
Field Summary
 
Fields inherited from class org.jmythapi.impl.AData
logger, propsClass, protoVersion, respArgs
 
Constructor Summary
VideoListChange(IMythPacket mythPacket)
           
 
Method Summary
protected  void checkSize(List<String> responseArgs)
          A function to check if the given response-argument-liste contains all expected arguments.
 List<IVideoListChange.IVideoChange> getChanges()
          Gets a list of all detected changes.
 
Methods inherited from class org.jmythapi.protocol.events.impl.VideoList
getChangeCount, hasChanges
 
Methods inherited from class org.jmythapi.protocol.events.impl.AMythEvent
decodeProperty, encodeProperty, extractArgumentsList, extractEventName, getEventName, getPacket, toString
 
Methods inherited from class org.jmythapi.protocol.response.impl.AMythResponse
getExpectedSize, getProperties, getProperty, getPropertyIndex
 
Methods inherited from class org.jmythapi.impl.AData
clone, equals, getPropertyClass, getPropertyCount, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValueObject, getPropertyValues, getVersionNr, hashCode, init, postProcessArguments, setPropertyValue, setPropertyValue, setPropertyValueObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jmythapi.protocol.events.IVideoList
getChangeCount, hasChanges
 
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
 

Constructor Detail

VideoListChange

public VideoListChange(IMythPacket mythPacket)
Method Detail

checkSize

protected void checkSize(List<String> responseArgs)
                  throws IllegalArgumentException
Description copied from class: AMythResponse

A function to check if the given response-argument-liste contains all expected arguments.

The expected argument-list-size is calculated using #getExpectedSize(ArrayList).

Overrides:
checkSize in class AMythResponse<IVideoListChange.Props>
Parameters:
responseArgs - the response-argument-list
Throws:
IllegalArgumentException - if expected arguments are missing.

getChanges

public List<IVideoListChange.IVideoChange> getChanges()
Description copied from interface: IVideoListChange
Gets a list of all detected changes.

Specified by:
getChanges in interface IVideoListChange
Returns:
the list of detected changes.


Copyright © 2008-2013. All Rights Reserved.