38 lines
1.2 KiB
Java
38 lines
1.2 KiB
Java
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<CommentsInfoItem> {
|
|
|
|
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 <code>true</code> if the comments are disabled otherwise <code>false</code> (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";
|
|
}
|
|
}
|