java.lang.Object
dev.katsute.mal4j.anime.AnimePreview
- All Implemented Interfaces:
ID
,MediaItem<AnimeType,
AnimeAirStatus, AnimeListStatus>
- Direct Known Subclasses:
Anime
public abstract class AnimePreview
extends Object
implements MediaItem<AnimeType,AnimeAirStatus,AnimeListStatus>
Documentation: https://myanimelist.net/apiconfig/references/api/v2#operation/anime_get
Represents an Anime.
Represents an Anime.
- Since:
- 1.0.0
- Version:
- 2.12.0
- Author:
- Katsute
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Integer
Returns the average episode length in seconds.abstract Broadcast
Returns the broadcast time.abstract Integer
Returns the total amount of episodes.abstract AnimeRating
Returns the TV viewing rating (ex: pg13).abstract String
Returns the raw rating.abstract String
Returns the raw source material.abstract AnimeSource
Returns the source material.abstract StartSeason
Returns the start season.abstract Studio[]
Returns the studios.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.katsute.mal4j.property.MediaItem
getAlternativeTitles, getCreatedAt, getCreatedAtEpochMillis, getEndDate, getGenres, getListStatus, getMainPicture, getMeanRating, getNSFW, getPopularity, getRank, getRawNSFW, getRawStatus, getRawType, getStartDate, getStatus, getSynopsis, getTitle, getType, getUpdatedAt, getUpdatedAtEpochMillis, getUserListingCount, getUserScoringCount
-
Constructor Details
-
AnimePreview
public AnimePreview()
-
-
Method Details
-
getEpisodes
Returns the total amount of episodes.- Returns:
- total episodes
- Since:
- 1.0.0
-
getStartSeason
Returns the start season.- Returns:
- start season
- Since:
- 1.0.0
- See Also:
-
getBroadcast
Returns the broadcast time.- Returns:
- broadcast time
- Since:
- 1.0.0
- See Also:
-
getSource
Returns the source material.- Returns:
- source material
- Since:
- 1.0.0
- See Also:
-
getRawSource
Returns the raw source material.
It is recommended to usegetSource()
rather than this method. This method should only be used if the source value is missing fromAnimeSource
.- Returns:
- raw source material
- Since:
- 2.9.0
- See Also:
-
getAverageEpisodeLength
Returns the average episode length in seconds.- Returns:
- episode length
- Since:
- 1.0.0
-
getRating
Returns the TV viewing rating (ex: pg13).- Returns:
- TV viewing rating
- Since:
- 1.0.0
- See Also:
-
getRawRating
Returns the raw rating.
It is recommended to usegetRating()
rather than this method. This method should only be used if the rating value is missing fromAnimeRating
.- Returns:
- raw TV viewing rating
- Since:
- 2.9.0
- See Also:
-
getStudios
Returns the studios.- Returns:
- studios
- Since:
- 1.0.0
- See Also:
-