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 int
getCommentsCount()
Returns the total number of comments.CommentsExtractor
getCommentsExtractor()
static CommentsInfo
getInfo(java.lang.String url)
static CommentsInfo
getInfo(CommentsExtractor commentsExtractor)
static CommentsInfo
getInfo(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)
boolean
isCommentsDisabled()
void
setCommentsCount(int commentsCount)
Sets the total number of comments.void
setCommentsDisabled(boolean commentsDisabled)
void
setCommentsExtractor(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.IOException
ExtractionException
-
getInfo
public static CommentsInfo getInfo(StreamingService service, java.lang.String url) throws ExtractionException, java.io.IOException
- Throws:
ExtractionException
java.io.IOException
-
getInfo
public static CommentsInfo getInfo(CommentsExtractor commentsExtractor) throws java.io.IOException, ExtractionException
- Throws:
java.io.IOException
ExtractionException
-
getMoreItems
public static ListExtractor.InfoItemsPage<CommentsInfoItem> getMoreItems(CommentsInfo commentsInfo, Page page) throws ExtractionException, java.io.IOException
- Throws:
ExtractionException
java.io.IOException
-
getMoreItems
public static ListExtractor.InfoItemsPage<CommentsInfoItem> getMoreItems(StreamingService service, CommentsInfo commentsInfo, Page page) throws java.io.IOException, ExtractionException
- Throws:
java.io.IOException
ExtractionException
-
getMoreItems
public static ListExtractor.InfoItemsPage<CommentsInfoItem> getMoreItems(StreamingService service, java.lang.String url, Page page) throws java.io.IOException, ExtractionException
- Throws:
java.io.IOException
ExtractionException
-
getCommentsExtractor
public CommentsExtractor getCommentsExtractor()
-
setCommentsExtractor
public void setCommentsExtractor(CommentsExtractor commentsExtractor)
-
isCommentsDisabled
public boolean isCommentsDisabled()
- Returns:
true
if the comments are disabled otherwisefalse
(default)- See Also:
CommentsExtractor.isCommentsDisabled()
-
setCommentsDisabled
public void setCommentsDisabled(boolean commentsDisabled)
- Parameters:
commentsDisabled
-true
if 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.
-
-