Add UNKNOWN_REPLY_COUNT constant

This commit is contained in:
xz-dev 2022-09-27 01:43:43 +08:00
parent 4e5dec019f
commit b3c6f6f292
No known key found for this signature in database
GPG Key ID: A20912F811313E36
2 changed files with 5 additions and 2 deletions

View File

@ -29,6 +29,8 @@ public class CommentsInfoItem extends InfoItem {
public static final int NO_LIKE_COUNT = -1;
public static final int NO_STREAM_POSITION = -1;
public static final int UNKNOWN_REPLY_COUNT = -1;
public CommentsInfoItem(final int serviceId, final String url, final String name) {
super(InfoType.COMMENT, serviceId, url, name);
}

View File

@ -114,10 +114,11 @@ public interface CommentsInfoItemExtractor extends InfoItemExtractor {
/**
* The count of comment replies.
*
* @return the count of the replies, or -1 if replies are not supported
* @return the count of the replies
* or {@link CommentsInfoItem#UNKNOWN_REPLY_COUNT} if replies are not supported
*/
default int getReplyCount() throws ParsingException {
return -1;
return CommentsInfoItem.UNKNOWN_REPLY_COUNT;
}
/**