public class Videogame extends MediaItem
MediaItem.Duration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COLUMN_AVERAGE_LENGTH |
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 |
---|
Videogame() |
Modifier and Type | Method and Description |
---|---|
int |
getAverageLengthHours()
Getter
|
java.lang.String |
getCreator()
Getter
|
java.lang.String |
getDeveloper()
Getter
|
MediaItem.Duration |
getDuration(Context context)
Getter
|
static java.lang.String |
getDurationMeasureUnitName(Context context)
Getter
|
java.lang.String |
getPlatforms()
Getter
|
java.lang.String |
getPublisher()
Getter
|
void |
setAverageLengthHours(int averageLengthHours)
Setter
|
void |
setDeveloper(java.lang.String developer)
Setter
|
void |
setPlatforms(java.lang.String platforms)
Setter
|
void |
setPublisher(java.lang.String publisher)
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_AVERAGE_LENGTH
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 getDeveloper()
public java.lang.String getPublisher()
public java.lang.String getPlatforms()
public int getAverageLengthHours()
public void setAverageLengthHours(int averageLengthHours)
averageLengthHours
- the videogame average length in hourspublic void setDeveloper(java.lang.String developer)
developer
- the videogame developerpublic void setPublisher(java.lang.String publisher)
publisher
- the videogame publisherpublic void setPlatforms(java.lang.String platforms)
platforms
- the videogame platforms