|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmythapi.impl.AData<E> org.jmythapi.database.impl.ADatabaseRow<ISchedule.Props> org.jmythapi.database.impl.Schedule
public class Schedule
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jmythapi.database.ISchedule |
---|
ISchedule.Props |
Field Summary |
---|
Fields inherited from class org.jmythapi.impl.AData |
---|
logger, propsClass, protoVersion, respArgs |
Fields inherited from interface org.jmythapi.database.ISchedule |
---|
CATEGORY_MANUAL_RECORDING, DESCRIPTION_MANUALLY_SCHEDULED |
Constructor Summary | |
---|---|
Schedule(ProtocolVersion protoVersion,
int dbVersion)
|
|
Schedule(ProtocolVersion protoVersion,
int dbVersion,
List<String> data)
|
Method Summary | |
---|---|
String |
getCategory()
Gets the category of the program. |
Integer |
getChannelID()
|
String |
getChannelSign()
|
String |
getDescription()
Gets the program description. |
int |
getDuration()
Gets the duration for the program in minutes. |
Date |
getEndDate()
|
Date |
getEndDateTime()
Gets the scheduled end of the program. |
Integer |
getEndOffset()
|
Time |
getEndTime()
|
Integer |
getFindDay()
|
Integer |
getFindId()
|
Time |
getFindTime()
|
String |
getFullTitle()
Gets the full title of the program. |
int |
getMinutesAfterMidnight()
Gets the the start time of the program in minutes after midnight. |
String |
getProgramID()
Get the program ID. |
Integer |
getRecordingId()
|
Integer |
getRecordingPriority()
|
IProgramRecordingType |
getRecordingType()
|
IProgramRecordingSearchType |
getSearch()
|
Integer |
getSeason()
|
String |
getSeriesID()
Gets the series ID of the program. |
Date |
getStartDate()
|
Date |
getStartDateTime()
Gets the scheduled start of the program. |
Integer |
getStartOffset()
|
Time |
getStartTime()
|
String |
getSubtitle()
Gets the program subtitle. |
String |
getTitle()
Gets the program title. |
String |
getUniqueProgramId()
Generates a unique id for this program-info. |
boolean |
isValid()
Checks if the program object contains valid data. |
void |
setCategory(String category)
|
void |
setChannel(IBasicChannelInfo channelInfo)
|
void |
setChannelID(Integer channelId)
|
void |
setChannelSign(String sign)
|
void |
setDescription(String description)
|
void |
setEndDate(Date endDate)
|
void |
setEndDateTime(Date endDateTime)
|
void |
setEndOffset(Integer endOffset)
|
void |
setEndTime(Date endDate)
|
void |
setFindDay(Date dayDateTime)
|
void |
setFindDay(Integer day)
|
void |
setFindId(Date startDateTime)
|
void |
setFindId(Integer findId)
|
void |
setFindTime(Date findTime)
|
void |
setProgramID(String programId)
|
void |
setRecordingId(Integer recordId)
|
void |
setRecordingPriority(Integer priority)
|
void |
setRecordingType(IProgramRecordingType recType)
|
void |
setSearch(IProgramRecordingSearchType search)
|
void |
setSeason(Integer season)
|
void |
setSeriesID(String seriesId)
|
void |
setStartDate(Date startDate)
|
void |
setStartDateTime(Date startDateTime)
|
void |
setStartOffset(Integer startOffset)
|
void |
setStartTime(Date startTime)
|
void |
setSubtitle(String subTitle)
|
void |
setTitle(String title)
|
static Schedule |
valueOf(ProtocolVersion protoVersion,
int dbVersion,
IRecorderNextProgramInfo nextProgramInfo)
|
static Schedule |
valueOf(ProtocolVersion protoVersion,
int dbVersion,
IRecorderNextProgramInfo nextProgramInfo,
IProgramRecordingType.Type recordingType)
|
Methods inherited from class org.jmythapi.database.impl.ADatabaseRow |
---|
clone, decodeProperty, encodeProperty, equals, getDatabaseVersion, getProperties, getProperty, getPropertyIndex |
Methods inherited from class org.jmythapi.impl.AData |
---|
getPropertyClass, getPropertyCount, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValueObject, getPropertyValues, getVersionNr, hashCode, init, postProcessArguments, setPropertyValue, setPropertyValue, setPropertyValueObject, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jmythapi.IVersionable |
---|
getVersionNr |
Methods inherited from interface org.jmythapi.IPropertyAware |
---|
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject |
Constructor Detail |
---|
public Schedule(ProtocolVersion protoVersion, int dbVersion)
public Schedule(ProtocolVersion protoVersion, int dbVersion, List<String> data)
Method Detail |
---|
public Integer getRecordingId()
getRecordingId
in interface ISchedule
public void setRecordingId(Integer recordId)
setRecordingId
in interface ISchedule
public IProgramRecordingType getRecordingType()
getRecordingType
in interface ISchedule
public void setRecordingType(IProgramRecordingType recType)
setRecordingType
in interface ISchedule
public Integer getChannelID()
getChannelID
in interface ISchedule
public void setChannelID(Integer channelId)
setChannelID
in interface ISchedule
public String getChannelSign()
getChannelSign
in interface ISchedule
public void setChannelSign(String sign)
setChannelSign
in interface ISchedule
public void setChannel(IBasicChannelInfo channelInfo)
setChannel
in interface ISchedule
ISchedule.setChannelSign(String)
,
ISchedule.setChannelID(Integer)
public Date getStartDate()
getStartDate
in interface ISchedule
public Time getStartTime()
getStartTime
in interface ISchedule
public Date getStartDateTime()
IBasicProgramInfo
getStartDateTime
in interface ISchedule
getStartDateTime
in interface IBasicProgramInfo
ISchedule.getStartDate()
,
ISchedule.getStartTime()
public void setStartDate(Date startDate)
setStartDate
in interface ISchedule
public void setStartTime(Date startTime)
setStartTime
in interface ISchedule
public void setStartDateTime(Date startDateTime)
setStartDateTime
in interface ISchedule
ISchedule.setStartDate(Date)
,
ISchedule.setStartTime(Date)
public Date getEndDate()
getEndDate
in interface ISchedule
public Time getEndTime()
getEndTime
in interface ISchedule
public Date getEndDateTime()
IBasicProgramInfo
getEndDateTime
in interface ISchedule
getEndDateTime
in interface IBasicProgramInfo
ISchedule.getEndDate()
,
ISchedule.getEndTime()
public void setEndDate(Date endDate)
setEndDate
in interface ISchedule
public void setEndTime(Date endDate)
setEndTime
in interface ISchedule
public void setEndDateTime(Date endDateTime)
setEndDateTime
in interface ISchedule
ISchedule.setEndDate(Date)
,
ISchedule.setEndTime(Date)
public String getTitle()
IBasicProgramInfo
getTitle
in interface ISchedule
getTitle
in interface IBasicProgramInfo
public void setTitle(String title)
setTitle
in interface ISchedule
public String getFullTitle()
IBasicProgramInfo
If a program has no subtitle, than this function is the same as getTitle()
,
otherwise the returned full title is in the format "title - subtitle
"
getFullTitle
in interface ISchedule
getFullTitle
in interface IBasicProgramInfo
public String getSubtitle()
IBasicProgramInfo
getSubtitle
in interface ISchedule
getSubtitle
in interface IBasicProgramInfo
public void setSubtitle(String subTitle)
setSubtitle
in interface ISchedule
public String getDescription()
IBasicProgramInfo
getDescription
in interface ISchedule
getDescription
in interface IBasicProgramInfo
public void setDescription(String description)
setDescription
in interface ISchedule
public String getCategory()
IBasicProgramInfo
getCategory
in interface ISchedule
getCategory
in interface IBasicProgramInfo
Comedy
public void setCategory(String category)
setCategory
in interface ISchedule
public Integer getSeason()
getSeason
in interface ISchedule
public void setSeason(Integer season)
setSeason
in interface ISchedule
public Integer getRecordingPriority()
getRecordingPriority
in interface ISchedule
public void setRecordingPriority(Integer priority)
setRecordingPriority
in interface ISchedule
public Integer getFindDay()
getFindDay
in interface ISchedule
public void setFindDay(Date dayDateTime)
setFindDay
in interface ISchedule
public void setFindDay(Integer day)
setFindDay
in interface ISchedule
public Time getFindTime()
getFindTime
in interface ISchedule
public void setFindTime(Date findTime)
setFindTime
in interface ISchedule
public Integer getFindId()
getFindId
in interface ISchedule
public void setFindId(Date startDateTime)
setFindId
in interface ISchedule
public void setFindId(Integer findId)
setFindId
in interface ISchedule
public IProgramRecordingSearchType getSearch()
getSearch
in interface ISchedule
public void setSearch(IProgramRecordingSearchType search)
setSearch
in interface ISchedule
public String getSeriesID()
IBasicProgramInfo
getSeriesID
in interface ISchedule
getSeriesID
in interface IBasicProgramInfo
public void setSeriesID(String seriesId)
setSeriesID
in interface ISchedule
public String getProgramID()
IBasicProgramInfo
getProgramID
in interface ISchedule
getProgramID
in interface IBasicProgramInfo
public void setProgramID(String programId)
setProgramID
in interface ISchedule
public Integer getStartOffset()
getStartOffset
in interface ISchedule
public void setStartOffset(Integer startOffset)
setStartOffset
in interface ISchedule
public Integer getEndOffset()
getEndOffset
in interface ISchedule
public void setEndOffset(Integer endOffset)
setEndOffset
in interface ISchedule
public int getDuration()
IBasicProgramInfo
getDuration
in interface IBasicProgramInfo
-1
if unknown.public int getMinutesAfterMidnight()
IBasicProgramInfo
getMinutesAfterMidnight
in interface IBasicProgramInfo
public String getUniqueProgramId()
IBasicProgramInfo
This id has the format: [channel-id]_[program-start-time]
getUniqueProgramId
in interface IBasicProgramInfo
1000_20110719162900
public boolean isValid()
IBasicProgramInfo
isValid
in interface IBasicProgramInfo
true
if the program contains valid data.public static Schedule valueOf(ProtocolVersion protoVersion, int dbVersion, IRecorderNextProgramInfo nextProgramInfo)
public static Schedule valueOf(ProtocolVersion protoVersion, int dbVersion, IRecorderNextProgramInfo nextProgramInfo, IProgramRecordingType.Type recordingType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |