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; import org.schabi.newpipe.extractor.linkhandler.ListLinkHandler; import javax.annotation.Nonnull; public abstract class CommentsExtractor extends ListExtractor { public CommentsExtractor(final StreamingService service, final ListLinkHandler uiHandler) { super(service, uiHandler); } /** * @apiNote Warning: This method is experimental and may get removed in a future release. * @return true if the comments are disabled otherwise false (default) */ public boolean isCommentsDisabled() throws ExtractionException { return false; } /** * @return the total number of comments */ public int getCommentsCount() throws ExtractionException { return -1; } @Nonnull @Override public String getName() throws ParsingException { return "Comments"; } }