Class CommentsInfo
java.lang.Object
org.schabi.newpipe.extractor.Info
org.schabi.newpipe.extractor.ListInfo<CommentsInfoItem>
org.schabi.newpipe.extractor.comments.CommentsInfo
- All Implemented Interfaces:
Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the total number of comments.static CommentsInfostatic CommentsInfogetInfo(CommentsExtractor commentsExtractor) static CommentsInfogetInfo(StreamingService service, String url) getMoreItems(CommentsInfo commentsInfo, Page page) getMoreItems(StreamingService service, String url, Page page) getMoreItems(StreamingService service, CommentsInfo commentsInfo, Page page) booleanbooleanvoidsetCommentsCount(int commentsCount) Sets the total number of comments.voidsetCommentsDisabled(boolean commentsDisabled) voidsetCommentsExtractor(CommentsExtractor commentsExtractor) voidsetLiveChat(boolean liveChat) Methods inherited from class org.schabi.newpipe.extractor.ListInfo
getContentFilters, getNextPage, getRelatedItems, getSortFilter, hasNextPage, setNextPage, setRelatedItemsMethods inherited from class org.schabi.newpipe.extractor.Info
addAllErrors, addError, getErrors, getId, getName, getOriginalUrl, getService, getServiceId, getUrl, setOriginalUrl, toString
-
Method Details
-
getInfo
- Throws:
IOExceptionExtractionException
-
getInfo
public static CommentsInfo getInfo(StreamingService service, String url) throws ExtractionException, IOException - Throws:
ExtractionExceptionIOException
-
getInfo
public static CommentsInfo getInfo(CommentsExtractor commentsExtractor) throws IOException, ExtractionException - Throws:
IOExceptionExtractionException
-
getMoreItems
public static ListExtractor.InfoItemsPage<CommentsInfoItem> getMoreItems(CommentsInfo commentsInfo, Page page) throws ExtractionException, IOException - Throws:
ExtractionExceptionIOException
-
getMoreItems
public static ListExtractor.InfoItemsPage<CommentsInfoItem> getMoreItems(StreamingService service, CommentsInfo commentsInfo, Page page) throws IOException, ExtractionException - Throws:
IOExceptionExtractionException
-
getMoreItems
public static ListExtractor.InfoItemsPage<CommentsInfoItem> getMoreItems(StreamingService service, String url, Page page) throws IOException, ExtractionException - Throws:
IOExceptionExtractionException
-
getCommentsExtractor
-
setCommentsExtractor
-
isCommentsDisabled
public boolean isCommentsDisabled()- Returns:
trueif the comments are disabled otherwisefalse(default)- See Also:
-
setCommentsDisabled
public void setCommentsDisabled(boolean commentsDisabled) - Parameters:
commentsDisabled-trueif the comments are disabled otherwisefalse
-
isLiveChat
public boolean isLiveChat()- Returns:
trueif the comments are from a live chat otherwisefalse(default)- API Note:
- Warning: This method is experimental and may get removed in a future release.
-
setLiveChat
public void setLiveChat(boolean liveChat) - Parameters:
liveChat-trueif the comments are from a live chat otherwisefalse- API Note:
- Warning: This method is experimental and may get removed in a future release.
-
getCommentsCount
public int getCommentsCount()Returns the total number of comments.- Returns:
- the total number of comments
-
setCommentsCount
public void setCommentsCount(int commentsCount) Sets the total number of comments.- Parameters:
commentsCount- the commentsCount to set.
-