java.lang.Object
dev.katsute.mal4j.property.RelatedMedia
- Direct Known Subclasses:
RelatedAnime
,RelatedManga
Represents a related media.
- Since:
- 1.0.0
- Version:
- 2.9.0
- Author:
- Katsute
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
Returns the raw relation type.abstract RelationType
Returns how the media is related.abstract String
Returns how the media is related by its display name.
-
Constructor Details
-
RelatedMedia
public RelatedMedia()
-
-
Method Details
-
getRelationType
Returns how the media is related.- Returns:
- relation type
- Since:
- 1.0.0
- See Also:
-
getRawRelationType
Returns the raw relation type.
It is recommended to usegetRelationType()
rather than this method. This method should only be used if the relation type is missing fromRelationType
.- Returns:
- raw relation type
- Since:
- 2.9.0
- See Also:
-
getRelationTypeFormat
Returns how the media is related by its display name.- Returns:
- relation type
- Since:
- 1.0.0
- See Also:
-