Module Mal4J
Package dev.katsute.mal4j.property
Interface MediaItem<MediaType extends Enum<?>,Status extends Enum<?>,ListStatus extends ListStatus<?>>
- Type Parameters:
MediaType
- media type enumStatus
- status type enumListStatus
- list status object
- All Superinterfaces:
ID
- All Known Subinterfaces:
FullMediaItem<MediaType,
Status, ListStatus, Recommendation, Statistics>
- All Known Implementing Classes:
Anime
,AnimePreview
,Manga
,MangaPreview
public interface MediaItem<MediaType extends Enum<?>,Status extends Enum<?>,ListStatus extends ListStatus<?>>
extends ID
Indicates that the object contains these media fields.
- Since:
- 1.0.0
- Version:
- 3.0.0
- Author:
- Katsute
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the alternative titles.Returns the creation date.Returns the creation date as milliseconds since epoch.Returns the end date.Genre[]
Returns the genres.Returns the user's list status.Returns the main picture.Returns the average user rating.getNSFW()
Returns the NSFW rating.Returns the popularity.getRank()
Returns the overall rank.Returns the raw NSFW rating.Returns the raw status.Returns the raw media type.Returns the start date.Returns the status.Returns the synopsis.getTitle()
Returns the title.getType()
Returns the media type.Returns when this was last updated.Returns when this was last updated as milliseconds since epoch.Returns how many users have this item on their list.Returns how many users have this item scored on their list.
-
Method Details
-
getTitle
String getTitle()Returns the title.- Returns:
- title
- Since:
- 1.0.0
-
getMainPicture
Picture getMainPicture()Returns the main picture.- Returns:
- main picture
- Since:
- 1.0.0
- See Also:
-
getAlternativeTitles
AlternativeTitles getAlternativeTitles()Returns the alternative titles.- Returns:
- alternative titles
- Since:
- 1.0.0
- See Also:
-
getStartDate
NullableDate getStartDate()Returns the start date.- Returns:
- start date
- See Also:
-
getEndDate
NullableDate getEndDate()Returns the end date.- Returns:
- end date
- Since:
- 1.0.0
- See Also:
-
getSynopsis
String getSynopsis()Returns the synopsis.- Returns:
- synopsis
- Since:
- 1.0.0
-
getMeanRating
Float getMeanRating()Returns the average user rating.- Returns:
- mean rating
- Since:
- 1.0.0
-
getRank
Integer getRank()Returns the overall rank.- Returns:
- rank
- Since:
- 1.0.0
-
getPopularity
Integer getPopularity()Returns the popularity.- Returns:
- popularity
- Since:
- 1.0.0
-
getUserListingCount
Integer getUserListingCount()Returns how many users have this item on their list.- Returns:
- user list count
- Since:
- 1.0.0
-
getUserScoringCount
Integer getUserScoringCount()Returns how many users have this item scored on their list.- Returns:
- user scoring count
- Since:
- 1.0.0
-
getNSFW
NSFW getNSFW()Returns the NSFW rating.- Returns:
- NSFW
- Since:
- 1.0.0
- See Also:
-
getRawNSFW
String getRawNSFW()Returns the raw NSFW rating.
It is recommended to usegetNSFW()
rather than this method. This method should only be used if the NSFW value is missing fromNSFW
.- Returns:
- raw NSFW
- Since:
- 2.9.0
- See Also:
-
getGenres
Genre[] getGenres()Returns the genres.- Returns:
- genres
- Since:
- 1.0.0
-
getCreatedAt
Date getCreatedAt()Returns the creation date.- Returns:
- creation date
- Since:
- 1.0.0
- See Also:
-
getCreatedAtEpochMillis
Long getCreatedAtEpochMillis()Returns the creation date as milliseconds since epoch.- Returns:
- creation time
- Since:
- 1.0.0
- See Also:
-
getUpdatedAt
Date getUpdatedAt()Returns when this was last updated.- Returns:
- updated time
- Since:
- 1.0.0
- See Also:
-
getUpdatedAtEpochMillis
Long getUpdatedAtEpochMillis()Returns when this was last updated as milliseconds since epoch.- Returns:
- updated time
- Since:
- 1.0.0
- See Also:
-
getType
MediaType getType()Returns the media type.- Returns:
- media type
- Since:
- 1.0.0
- See Also:
-
getRawType
String getRawType()Returns the raw media type.
It is recommended to usegetType()
rather than this method. This method should only be used if the type value is missing fromAnimeType
orMangaType
.- Returns:
- raw media type
- Since:
- 2.9.0
- See Also:
-
getStatus
Status getStatus()Returns the status.- Returns:
- status
- Since:
- 1.0.0
- See Also:
-
getRawStatus
String getRawStatus()Returns the raw status.
It is recommended to usegetStatus()
rather than this method. This method should only be used if the status is missing fromAnimeAirStatus
orMangaPublishStatus
.- Returns:
- raw status
- Since:
- 2.9.0
- See Also:
-
getListStatus
ListStatus getListStatus()Returns the user's list status.- Returns:
- list status
- Since:
- 1.0.0
- See Also:
-