org.jmythapi.protocol.events.impl
Class AskRecording

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<IAskRecording.Props>
              extended by org.jmythapi.protocol.events.impl.AskRecording
All Implemented Interfaces:
Cloneable, IPropertyAware<IAskRecording.Props>, IVersionable, IAskRecording, IMythEvent<IAskRecording.Props>, ISendable, IMythResponse<IAskRecording.Props>

public class AskRecording
extends AMythEvent<IAskRecording.Props>
implements IAskRecording


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jmythapi.protocol.events.IAskRecording
IAskRecording.Props
 
Field Summary
 
Fields inherited from class org.jmythapi.impl.AData
logger, propsClass, protoVersion, respArgs
 
Constructor Summary
AskRecording(IMythPacket packet)
           
 
Method Summary
protected  void checkSize(List<String> responseArgs)
          A function to check if the given response-argument-liste contains all expected arguments.
 String getChannelName()
           
 String getChannelNumber()
           
 String getChannelSign()
           
 IProgramInfo getProgramInfo()
           
 Integer getRecorderId()
           
 String getRecordingTitle()
           
 Integer getSecondsTillRecording()
           
 Boolean hasLaterShowing()
           
 Boolean hasRecording()
           
 String toString()
          Returns the content of this data object as a formatted string.
 
Methods inherited from class org.jmythapi.protocol.events.impl.AMythEvent
decodeProperty, encodeProperty, extractArgumentsList, extractEventName, getEventName, getPacket
 
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.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

AskRecording

public AskRecording(IMythPacket packet)
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<IAskRecording.Props>
Parameters:
responseArgs - the response-argument-list
Throws:
IllegalArgumentException - if expected arguments are missing.

getRecorderId

public Integer getRecorderId()
Specified by:
getRecorderId in interface IAskRecording

getSecondsTillRecording

public Integer getSecondsTillRecording()
Specified by:
getSecondsTillRecording in interface IAskRecording

hasLaterShowing

public Boolean hasLaterShowing()
Specified by:
hasLaterShowing in interface IAskRecording

hasRecording

public Boolean hasRecording()
Specified by:
hasRecording in interface IAskRecording

getProgramInfo

public IProgramInfo getProgramInfo()
Specified by:
getProgramInfo in interface IAskRecording

getChannelName

public String getChannelName()
Specified by:
getChannelName in interface IAskRecording

getChannelNumber

public String getChannelNumber()
Specified by:
getChannelNumber in interface IAskRecording

getChannelSign

public String getChannelSign()
Specified by:
getChannelSign in interface IAskRecording

getRecordingTitle

public String getRecordingTitle()
Specified by:
getRecordingTitle in interface IAskRecording

toString

public String toString()
Description copied from class: AData

Returns the content of this data object as a formatted string.

E.g.
 <0>TOTAL_RAM_MB: 1002 | <1>FREE_RAM_MB: 474 | <2>TOTAL_VM_MB: 853 | <3>FREE_VM_MB: 853
 

Overrides:
toString in class AMythEvent<IAskRecording.Props>


Copyright © 2008-2013. All Rights Reserved.