Interface CommentsInfoItemExtractor
-
- All Superinterfaces:
InfoItemExtractor
- All Known Implementing Classes:
BandcampCommentsInfoItemExtractor,PeertubeCommentsInfoItemExtractor,SoundcloudCommentsInfoItemExtractor,YoutubeCommentsInfoItemExtractor
public interface CommentsInfoItemExtractor extends InfoItemExtractor
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.StringgetCommentId()default DescriptiongetCommentText()The text of the commentdefault intgetLikeCount()Return the like count of the comment, orCommentsInfoItem.NO_LIKE_COUNTif it is unavailable.default PagegetReplies()The continuation page which is used to get comment replies from.default intgetReplyCount()The count of comment replies.default intgetStreamPosition()The playback position of the stream to which this comment belongs.default java.lang.StringgetTextualLikeCount()The unmodified like count given by the service
It may be language dependentdefault java.lang.StringgetTextualUploadDate()The upload date given by the service, unmodifieddefault DateWrappergetUploadDate()The upload date wrapped with DateWrapper classdefault java.util.List<Image>getUploaderAvatars()default java.lang.StringgetUploaderName()default java.lang.StringgetUploaderUrl()default booleanhasCreatorReply()Whether the comment was replied to by the creator.default booleanisChannelOwner()Whether the comment was made by the channel owner.default booleanisHeartedByUploader()Whether the comment has been hearted by the uploaderdefault booleanisPinned()Whether the comment is pinneddefault booleanisUploaderVerified()Whether the uploader is verified by the service-
Methods inherited from interface org.schabi.newpipe.extractor.InfoItemExtractor
getName, getThumbnails, getUrl
-
-
-
-
Method Detail
-
getLikeCount
default int getLikeCount() throws ParsingExceptionReturn the like count of the comment, orCommentsInfoItem.NO_LIKE_COUNTif it is unavailable.
NOTE: Currently only implemented for YT
YoutubeCommentsInfoItemExtractor.getLikeCount()with limitations (only approximate like count is returned)- Returns:
- the comment's like count
or
CommentsInfoItem.NO_LIKE_COUNTif it is unavailable - Throws:
ParsingException- See Also:
StreamExtractor.getLikeCount()
-
getTextualLikeCount
default java.lang.String getTextualLikeCount() throws ParsingExceptionThe unmodified like count given by the service
It may be language dependent- Throws:
ParsingException
-
getCommentText
@Nonnull default Description getCommentText() throws ParsingException
The text of the comment- Throws:
ParsingException
-
getTextualUploadDate
default java.lang.String getTextualUploadDate() throws ParsingExceptionThe upload date given by the service, unmodified- Throws:
ParsingException- See Also:
StreamExtractor.getTextualUploadDate()
-
getUploadDate
@Nullable default DateWrapper getUploadDate() throws ParsingException
The upload date wrapped with DateWrapper class- Throws:
ParsingException- See Also:
StreamExtractor.getUploadDate()
-
getCommentId
default java.lang.String getCommentId() throws ParsingException- Throws:
ParsingException
-
getUploaderUrl
default java.lang.String getUploaderUrl() throws ParsingException- Throws:
ParsingException
-
getUploaderName
default java.lang.String getUploaderName() throws ParsingException- Throws:
ParsingException
-
getUploaderAvatars
@Nonnull default java.util.List<Image> getUploaderAvatars() throws ParsingException
- Throws:
ParsingException
-
isHeartedByUploader
default boolean isHeartedByUploader() throws ParsingExceptionWhether the comment has been hearted by the uploader- Throws:
ParsingException
-
isPinned
default boolean isPinned() throws ParsingExceptionWhether the comment is pinned- Throws:
ParsingException
-
isUploaderVerified
default boolean isUploaderVerified() throws ParsingExceptionWhether the uploader is verified by the service- Throws:
ParsingException
-
getStreamPosition
default int getStreamPosition() throws ParsingExceptionThe playback position of the stream to which this comment belongs.- Throws:
ParsingException- See Also:
CommentsInfoItem.getStreamPosition()
-
getReplyCount
default int getReplyCount() throws ParsingExceptionThe count of comment replies.- Returns:
- the count of the replies
or
CommentsInfoItem.UNKNOWN_REPLY_COUNTif replies are not supported - Throws:
ParsingException
-
getReplies
@Nullable default Page getReplies() throws ParsingException
The continuation page which is used to get comment replies from.- Returns:
- the continuation Page for the replies, or null if replies are not supported
- Throws:
ParsingException
-
isChannelOwner
default boolean isChannelOwner() throws ParsingExceptionWhether the comment was made by the channel owner.- Throws:
ParsingException
-
hasCreatorReply
default boolean hasCreatorReply() throws ParsingExceptionWhether the comment was replied to by the creator.- Throws:
ParsingException
-
-