java.lang.Object
dev.katsute.mal4j.user.User
Documentation: https://myanimelist.net/apiconfig/references/api/v2#operation/users_user_id_get
Represents a user.
Represents a user.
- Since:
- 1.0.0
- Version:
- 2.3.0
- Author:
- Katsute
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract AnimeAffinity
This is a thread blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Anime affinity with authenticated user.abstract AnimeAffinity
getAnimeAffinity
(User user) This is a thread blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Anime affinity with a user.abstract void
getAnimeAffinity
(User user, Consumer<AnimeAffinity> callback) This is a non-blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Anime affinity with a user and returns it to the callback.abstract AnimeAffinity
getAnimeAffinity
(String username) This is a thread blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Anime affinity with a user.abstract void
getAnimeAffinity
(String username, Consumer<AnimeAffinity> callback) This is a non-blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Anime affinity with a user and returns it to the callback.abstract void
getAnimeAffinity
(Consumer<AnimeAffinity> callback) This is a non-blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Anime affinity with authenticated user and returns it to the callback.abstract UserAnimeStatistics
Returns the user's Anime statistics.abstract Date
Returns the user's birthday.abstract String
Returns the user's gender.abstract Date
Returns when the user first joined.abstract Long
Returns when the user first joined as milliseconds since epoch.abstract String
Returns the user's location.abstract MangaAffinity
This is a thread blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Manga affinity with authenticated user.abstract MangaAffinity
getMangaAffinity
(User user) This is a thread blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Manga affinity with a user.abstract void
getMangaAffinity
(User user, Consumer<MangaAffinity> callback) This is a non-blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Manga affinity with a user and returns it to the callback.abstract MangaAffinity
getMangaAffinity
(String username) This is a thread blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Manga affinity with a user.abstract void
getMangaAffinity
(String username, Consumer<MangaAffinity> callback) This is a non-blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Manga affinity with a user and returns it to the callback.abstract void
getMangaAffinity
(Consumer<MangaAffinity> callback) This is a non-blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Manga affinity with authenticated user and returns it to the callback.abstract String
Returns the picture URL.abstract String
Returns the user's timezone.abstract UserAnimeListQuery
Returns user Anime list.abstract UserMangaListQuery
Returns user Manga list.abstract Boolean
Returns if the user is a MyAnimeList supporter.
-
Constructor Details
-
User
public User()
-
-
Method Details
-
getPictureURL
Returns the picture URL.- Returns:
- picture URL
- Since:
- 1.0.0
-
getGender
Returns the user's gender.- Returns:
- gender
- Since:
- 1.0.0
-
getBirthday
Returns the user's birthday.- Returns:
- birthday
- Since:
- 1.0.0
-
getLocation
Returns the user's location.- Returns:
- location
- Since:
- 1.0.0
-
getJoinedAt
Returns when the user first joined.- Returns:
- joined date
- Since:
- 1.0.0
- See Also:
-
getJoinedAtEpochMillis
Returns when the user first joined as milliseconds since epoch.- Returns:
- joined date
- Since:
- 1.0.0
- See Also:
-
getAnimeStatistics
Returns the user's Anime statistics.- Returns:
- Anime statistics
- Since:
- 1.0.0
- See Also:
-
getTimeZone
Returns the user's timezone.- Returns:
- timezone
- Since:
- 1.0.0
-
isSupporter
Returns if the user is a MyAnimeList supporter.- Returns:
- supporter
- Since:
- 1.0.0
-
getUserAnimeListing
Returns user Anime list.- Returns:
- Anime listing
- Since:
- 1.2.0
- See Also:
-
getUserMangaListing
Returns user Manga list.- Returns:
- Manga listing
- Since:
- 1.2.0
- See Also:
-
getAnimeAffinity
This is a thread blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Anime affinity with authenticated user.- Returns:
- Anime affinity
- Since:
- 2.3.0
- See Also:
-
getAnimeAffinity
This is a non-blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Anime affinity with authenticated user and returns it to the callback.- Parameters:
callback
- callback method- Since:
- 2.3.0
- See Also:
-
getAnimeAffinity
This is a thread blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Anime affinity with a user.- Parameters:
username
- username- Returns:
- Anime affinity
- Since:
- 2.3.0
- See Also:
-
getAnimeAffinity
This is a non-blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Anime affinity with a user and returns it to the callback.- Parameters:
username
- usernamecallback
- callback method- Since:
- 2.3.0
- See Also:
-
getAnimeAffinity
This is a thread blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Anime affinity with a user.- Parameters:
user
- user- Returns:
- Anime affinity
- Since:
- 2.3.0
- See Also:
-
getAnimeAffinity
This is a non-blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Anime affinity with a user and returns it to the callback.- Parameters:
user
- usercallback
- callback method- Since:
- 2.3.0
- See Also:
-
getMangaAffinity
This is a thread blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Manga affinity with authenticated user.- Returns:
- Manga affinity
- Since:
- 2.3.0
- See Also:
-
getMangaAffinity
This is a non-blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Manga affinity with authenticated user and returns it to the callback.- Parameters:
callback
- callback method- Since:
- 2.3.0
- See Also:
-
getMangaAffinity
This is a thread blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Manga affinity with a user.- Parameters:
username
- username- Returns:
- Manga affinity
- Since:
- 2.3.0
- See Also:
-
getMangaAffinity
This is a non-blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Manga affinity with a user and returns it to the callback.- Parameters:
username
- usernamecallback
- callback method- Since:
- 2.3.0
- See Also:
-
getMangaAffinity
This is a thread blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Manga affinity with a user.- Parameters:
user
- user- Returns:
- Manga affinity
- Since:
- 2.3.0
- See Also:
-
getMangaAffinity
This is a non-blocking method.
This may take several minutes to complete depending on the amount of listings.
Calculates Manga affinity with a user and returns it to the callback.- Parameters:
user
- usercallback
- callback method- Since:
- 2.3.0
- See Also:
-