public class TVShow extends MediaItem
MediaItem.Duration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COLUMN_EPISODE_RUNTIME |
static java.lang.String |
COLUMN_EPISODES_NUMBER |
static java.lang.String |
COLUMN_SEASONS_NUMBER |
COLUMN_CATEGORY, COLUMN_COMPLETION_DATE, COLUMN_DOING_NOW, COLUMN_GENRES, COLUMN_ID, COLUMN_IMPORTANCE_LEVEL, COLUMN_NAME, COLUMN_ORDER_IN_SECTION, COLUMN_OWNED, COLUMN_RELEASE_DATE, COLUMN_TIMES_COMPLETED
Constructor and Description |
---|
TVShow() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCreatedBy()
Getter
|
java.lang.String |
getCreator()
Getter
|
MediaItem.Duration |
getDuration(Context context)
Getter
|
static java.lang.String |
getDurationMeasureUnitName(Context context)
Getter
|
int |
getEpisodeRuntimeMin()
Getter
|
int |
getEpisodesNumber()
Getter
|
java.util.Date |
getNextEpisodeAirDate()
Getter
|
int |
getSeasonsNumber()
Getter
|
boolean |
isInProduction()
Getter
|
void |
setCreatedBy(java.lang.String createdBy)
Setter
|
void |
setEpisodeRuntimeMin(int episodeRuntimeMin)
Setter
|
void |
setEpisodesNumber(int episodesNumber)
Setter
|
void |
setInProduction(boolean inProduction)
Setter
|
void |
setNextEpisodeAirDate(java.util.Date nextEpisodeAirDate)
Setter
|
void |
setSeasonsNumber(int seasonsNumber)
Setter
|
equals, getCategory, getCompletionDate, getDescription, getExternalServiceId, getGenres, getImageUrl, getImportanceLevel, getOrderInSection, getReleaseDate, getSection, getTimesCompleted, getTitle, getUserComment, isCompleted, isDoingNow, isOwned, isUpcoming, setCategory, setCompletionDate, setDescription, setDoingNow, setExternalServiceId, setGenres, setImageUrl, setImportanceLevel, setOrderInSection, setOwned, setReleaseDate, setTimesCompleted, setTitle, setUserComment
count, count, count, delete, delete, deleteAll, deleteAll, deleteInTx, deleteInTx, executeQuery, find, find, findAll, findAsIterator, findAsIterator, findById, findById, findById, findWithQuery, findWithQueryAsIterator, first, getId, isSugarEntity, last, listAll, listAll, save, save, saveInTx, saveInTx, setId
public static final java.lang.String COLUMN_EPISODE_RUNTIME
public static final java.lang.String COLUMN_EPISODES_NUMBER
public static final java.lang.String COLUMN_SEASONS_NUMBER
public java.lang.String getCreator()
getCreator
in class MediaItem
public MediaItem.Duration getDuration(Context context)
getDuration
in class MediaItem
public static java.lang.String getDurationMeasureUnitName(Context context)
context
- the contextpublic int getEpisodeRuntimeMin()
public java.lang.String getCreatedBy()
public int getEpisodesNumber()
public int getSeasonsNumber()
public boolean isInProduction()
public java.util.Date getNextEpisodeAirDate()
public void setEpisodeRuntimeMin(int episodeRuntimeMin)
episodeRuntimeMin
- the TV show runtime in minutes for each episodepublic void setEpisodesNumber(int episodesNumber)
episodesNumber
- the TV show total number of episodespublic void setSeasonsNumber(int seasonsNumber)
seasonsNumber
- the TV show number of seasonspublic void setInProduction(boolean inProduction)
inProduction
- true if the TV show is currently in productionpublic void setCreatedBy(java.lang.String createdBy)
createdBy
- the TV show creatorspublic void setNextEpisodeAirDate(java.util.Date nextEpisodeAirDate)
nextEpisodeAirDate
- the TV show next episode (meaningful only if the TV show is in production)