public class Book extends MediaItem
MediaItem.Duration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COLUMN_PAGES_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 |
---|
Book() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthor()
Getter
|
java.lang.String |
getCreator()
Getter
|
MediaItem.Duration |
getDuration(Context context)
Getter
|
static java.lang.String |
getDurationMeasureUnitName(Context context)
Getter
|
int |
getPagesNumber()
Getter
|
void |
setAuthor(java.lang.String author)
Setter
|
void |
setPagesNumber(int pagesNumber)
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_PAGES_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 java.lang.String getAuthor()
public int getPagesNumber()
public void setAuthor(java.lang.String author)
author
- the book authorpublic void setPagesNumber(int pagesNumber)
pagesNumber
- the number of pages in the book