NewPipeExtractor/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsExtractor.java

38 lines
1.2 KiB
Java
Raw Normal View History

2018-08-20 00:52:19 +02:00
package org.schabi.newpipe.extractor.comments;
import org.schabi.newpipe.extractor.ListExtractor;
import org.schabi.newpipe.extractor.StreamingService;
import org.schabi.newpipe.extractor.exceptions.ExtractionException;
import org.schabi.newpipe.extractor.exceptions.ParsingException;
2018-08-20 00:52:19 +02:00
import org.schabi.newpipe.extractor.linkhandler.ListLinkHandler;
import javax.annotation.Nonnull;
2018-08-20 00:52:19 +02:00
public abstract class CommentsExtractor extends ListExtractor<CommentsInfoItem> {
public CommentsExtractor(final StreamingService service, final ListLinkHandler uiHandler) {
super(service, uiHandler);
}
2021-07-07 20:41:59 +02:00
/**
* @apiNote Warning: This method is experimental and may get removed in a future release.
* @return <code>true</code> if the comments are disabled otherwise <code>false</code> (default)
*/
public boolean isCommentsDisabled() throws ExtractionException {
return false;
}
2018-08-20 00:52:19 +02:00
/**
2022-12-08 12:44:02 +01:00
* @return the total number of comments
*/
public int getCommentsCount() throws ExtractionException {
return -1;
}
@Nonnull
@Override
public String getName() throws ParsingException {
return "Comments";
}
2018-08-20 00:52:19 +02:00
}