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:
java.io.Serializable
public final class CommentsInfo extends ListInfo<CommentsInfoItem>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCommentsCount()Returns the total number of comments.CommentsExtractorgetCommentsExtractor()static CommentsInfogetInfo(java.lang.String url)static CommentsInfogetInfo(CommentsExtractor commentsExtractor)static CommentsInfogetInfo(StreamingService service, java.lang.String url)static ListExtractor.InfoItemsPage<CommentsInfoItem>getMoreItems(CommentsInfo commentsInfo, Page page)static ListExtractor.InfoItemsPage<CommentsInfoItem>getMoreItems(StreamingService service, java.lang.String url, Page page)static ListExtractor.InfoItemsPage<CommentsInfoItem>getMoreItems(StreamingService service, CommentsInfo commentsInfo, Page page)booleanisCommentsDisabled()voidsetCommentsCount(int commentsCount)Sets the total number of comments.voidsetCommentsDisabled(boolean commentsDisabled)voidsetCommentsExtractor(CommentsExtractor commentsExtractor)-
Methods inherited from class org.schabi.newpipe.extractor.ListInfo
getContentFilters, getNextPage, getRelatedItems, getSortFilter, hasNextPage, setNextPage, setRelatedItems
-
Methods inherited from class org.schabi.newpipe.extractor.Info
addAllErrors, addError, getErrors, getId, getName, getOriginalUrl, getService, getServiceId, getUrl, setOriginalUrl, toString
-
-
-
-
Method Detail
-
getInfo
public static CommentsInfo getInfo(java.lang.String url) throws java.io.IOException, ExtractionException
- Throws:
java.io.IOExceptionExtractionException
-
getInfo
public static CommentsInfo getInfo(StreamingService service, java.lang.String url) throws ExtractionException, java.io.IOException
- Throws:
ExtractionExceptionjava.io.IOException
-
getInfo
public static CommentsInfo getInfo(CommentsExtractor commentsExtractor) throws java.io.IOException, ExtractionException
- Throws:
java.io.IOExceptionExtractionException
-
getMoreItems
public static ListExtractor.InfoItemsPage<CommentsInfoItem> getMoreItems(CommentsInfo commentsInfo, Page page) throws ExtractionException, java.io.IOException
- Throws:
ExtractionExceptionjava.io.IOException
-
getMoreItems
public static ListExtractor.InfoItemsPage<CommentsInfoItem> getMoreItems(StreamingService service, CommentsInfo commentsInfo, Page page) throws java.io.IOException, ExtractionException
- Throws:
java.io.IOExceptionExtractionException
-
getMoreItems
public static ListExtractor.InfoItemsPage<CommentsInfoItem> getMoreItems(StreamingService service, java.lang.String url, Page page) throws java.io.IOException, ExtractionException
- Throws:
java.io.IOExceptionExtractionException
-
getCommentsExtractor
public CommentsExtractor getCommentsExtractor()
-
setCommentsExtractor
public void setCommentsExtractor(CommentsExtractor commentsExtractor)
-
isCommentsDisabled
public boolean isCommentsDisabled()
- Returns:
trueif the comments are disabled otherwisefalse(default)- See Also:
CommentsExtractor.isCommentsDisabled()
-
setCommentsDisabled
public void setCommentsDisabled(boolean commentsDisabled)
- Parameters:
commentsDisabled-trueif the comments are disabled otherwisefalse
-
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.
-
-