Module Mal4J

Class ListUpdate<T extends ListUpdate<T,R,S>,R extends ListStatus<?>,S extends FieldEnum>

java.lang.Object
dev.katsute.mal4j.query.ListUpdate<T,R,S>
Type Parameters:
T - this
R - response
S - status type
Direct Known Subclasses:
AnimeListUpdate, MangaListUpdate

public abstract class ListUpdate<T extends ListUpdate<T,R,S>,R extends ListStatus<?>,S extends FieldEnum> extends Object
Represents a list update.
Since:
1.0.0
Version:
2.9.0
Author:
Katsute
  • Method Details

    • status

      public final T status(S status)
      Sets the status.
      Parameters:
      status - status
      Returns:
      list update
      Since:
      1.0.0
      See Also:
    • status

      public final T status(String status)
      Sets the status.
      It is recommended to use status(FieldEnum) rather than this method. This method should only be used if the status is missing from AnimeStatus or MangaStatus.
      Parameters:
      status - raw status
      Returns:
      list status
      Since:
      2.9.0
      See Also:
    • score

      public final T score(int score)
      Sets the score.
      Parameters:
      score - score
      Returns:
      list update
      Since:
      1.0.0
    • startDate

      public final T startDate(Date date)
      Sets the start date.
      Parameters:
      date - date
      Returns:
      list update
      Since:
      1.0.0
      See Also:
    • finishDate

      public final T finishDate(Date date)
      Sets the finish date.
      Parameters:
      date - date
      Returns:
      list update
      Since:
      1.0.0
      See Also:
    • priority

      public final T priority(Priority priority)
      Sets the priority.
      Parameters:
      priority - priority
      Returns:
      list update
      Since:
      1.0.0
      See Also:
    • priority

      public final T priority(Integer priority)
      Sets the priority.
      It is recommended to use priority(Priority) rather than this method. This method should only be used if the priority is missing from Priority.
      Parameters:
      priority - raw priority
      Returns:
      list update
      Since:
      2.9.0
      See Also:
    • tags

      public final T tags(String... tags)
      Sets the tags.
      Parameters:
      tags - tags
      Returns:
      list update
      Since:
      1.0.0
    • comments

      public final T comments(String comments)
      Sets the comments.
      Parameters:
      comments - comments
      Returns:
      list update
      Since:
      1.0.0
    • update

      public abstract R update()
      Updates the list on MyAnimeList
      Returns:
      list
      Since:
      1.0.0