public class Movie extends MediaItem
MediaItem.Duration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COLUMN_DURATION |
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 |
---|
Movie() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCreator()
Getter
|
java.lang.String |
getDirector()
Getter
|
MediaItem.Duration |
getDuration(Context context)
Getter
|
static java.lang.String |
getDurationMeasureUnitName(Context context)
Getter
|
int |
getDurationMin()
Getter
|
void |
setDirector(java.lang.String director)
Setter
|
void |
setDurationMin(int durationMin)
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_DURATION
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 java.lang.String getDirector()
public int getDurationMin()
public void setDirector(java.lang.String director)
director
- the movie directorpublic void setDurationMin(int durationMin)
durationMin
- the movie duration in minutes