|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 ISchedulepublic void setRecordingId(Integer recordId)
setRecordingId in interface ISchedulepublic IProgramRecordingType getRecordingType()
getRecordingType in interface ISchedulepublic void setRecordingType(IProgramRecordingType recType)
setRecordingType in interface ISchedulepublic Integer getChannelID()
getChannelID in interface ISchedulepublic void setChannelID(Integer channelId)
setChannelID in interface ISchedulepublic String getChannelSign()
getChannelSign in interface ISchedulepublic void setChannelSign(String sign)
setChannelSign in interface ISchedulepublic void setChannel(IBasicChannelInfo channelInfo)
setChannel in interface IScheduleISchedule.setChannelSign(String),
ISchedule.setChannelID(Integer)public Date getStartDate()
getStartDate in interface ISchedulepublic Time getStartTime()
getStartTime in interface ISchedulepublic Date getStartDateTime()
IBasicProgramInfo
getStartDateTime in interface ISchedulegetStartDateTime in interface IBasicProgramInfoISchedule.getStartDate(),
ISchedule.getStartTime()public void setStartDate(Date startDate)
setStartDate in interface ISchedulepublic void setStartTime(Date startTime)
setStartTime in interface ISchedulepublic void setStartDateTime(Date startDateTime)
setStartDateTime in interface IScheduleISchedule.setStartDate(Date),
ISchedule.setStartTime(Date)public Date getEndDate()
getEndDate in interface ISchedulepublic Time getEndTime()
getEndTime in interface ISchedulepublic Date getEndDateTime()
IBasicProgramInfo
getEndDateTime in interface ISchedulegetEndDateTime in interface IBasicProgramInfoISchedule.getEndDate(),
ISchedule.getEndTime()public void setEndDate(Date endDate)
setEndDate in interface ISchedulepublic void setEndTime(Date endDate)
setEndTime in interface ISchedulepublic void setEndDateTime(Date endDateTime)
setEndDateTime in interface IScheduleISchedule.setEndDate(Date),
ISchedule.setEndTime(Date)public String getTitle()
IBasicProgramInfo
getTitle in interface ISchedulegetTitle in interface IBasicProgramInfopublic void setTitle(String title)
setTitle in interface ISchedulepublic 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 ISchedulegetFullTitle in interface IBasicProgramInfopublic String getSubtitle()
IBasicProgramInfo
getSubtitle in interface ISchedulegetSubtitle in interface IBasicProgramInfopublic void setSubtitle(String subTitle)
setSubtitle in interface ISchedulepublic String getDescription()
IBasicProgramInfo
getDescription in interface ISchedulegetDescription in interface IBasicProgramInfopublic void setDescription(String description)
setDescription in interface ISchedulepublic String getCategory()
IBasicProgramInfo
getCategory in interface ISchedulegetCategory in interface IBasicProgramInfoComedypublic void setCategory(String category)
setCategory in interface ISchedulepublic Integer getSeason()
getSeason in interface ISchedulepublic void setSeason(Integer season)
setSeason in interface ISchedulepublic Integer getRecordingPriority()
getRecordingPriority in interface ISchedulepublic void setRecordingPriority(Integer priority)
setRecordingPriority in interface ISchedulepublic Integer getFindDay()
getFindDay in interface ISchedulepublic void setFindDay(Date dayDateTime)
setFindDay in interface ISchedulepublic void setFindDay(Integer day)
setFindDay in interface ISchedulepublic Time getFindTime()
getFindTime in interface ISchedulepublic void setFindTime(Date findTime)
setFindTime in interface ISchedulepublic Integer getFindId()
getFindId in interface ISchedulepublic void setFindId(Date startDateTime)
setFindId in interface ISchedulepublic void setFindId(Integer findId)
setFindId in interface ISchedulepublic IProgramRecordingSearchType getSearch()
getSearch in interface ISchedulepublic void setSearch(IProgramRecordingSearchType search)
setSearch in interface ISchedulepublic String getSeriesID()
IBasicProgramInfo
getSeriesID in interface ISchedulegetSeriesID in interface IBasicProgramInfopublic void setSeriesID(String seriesId)
setSeriesID in interface ISchedulepublic String getProgramID()
IBasicProgramInfo
getProgramID in interface ISchedulegetProgramID in interface IBasicProgramInfopublic void setProgramID(String programId)
setProgramID in interface ISchedulepublic Integer getStartOffset()
getStartOffset in interface ISchedulepublic void setStartOffset(Integer startOffset)
setStartOffset in interface ISchedulepublic Integer getEndOffset()
getEndOffset in interface ISchedulepublic void setEndOffset(Integer endOffset)
setEndOffset in interface ISchedulepublic int getDuration()
IBasicProgramInfo
getDuration in interface IBasicProgramInfo-1 if unknown.public int getMinutesAfterMidnight()
IBasicProgramInfo
getMinutesAfterMidnight in interface IBasicProgramInfopublic String getUniqueProgramId()
IBasicProgramInfo
This id has the format: [channel-id]_[program-start-time]
getUniqueProgramId in interface IBasicProgramInfo1000_20110719162900public boolean isValid()
IBasicProgramInfo
isValid in interface IBasicProgramInfotrue 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 | |||||||||