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.String
getCommentId()
default Description
getCommentText()
The text of the commentdefault int
getLikeCount()
Return the like count of the comment, orCommentsInfoItem.NO_LIKE_COUNT
if it is unavailable.default Page
getReplies()
The continuation page which is used to get comment replies from.default int
getReplyCount()
The count of comment replies.default int
getStreamPosition()
The playback position of the stream to which this comment belongs.default java.lang.String
getTextualLikeCount()
The unmodified like count given by the service
It may be language dependentdefault java.lang.String
getTextualUploadDate()
The upload date given by the service, unmodifieddefault DateWrapper
getUploadDate()
The upload date wrapped with DateWrapper classdefault java.util.List<Image>
getUploaderAvatars()
default java.lang.String
getUploaderName()
default java.lang.String
getUploaderUrl()
default boolean
hasCreatorReply()
Whether the comment was replied to by the creator.default boolean
isChannelOwner()
Whether the comment was made by the channel owner.default boolean
isHeartedByUploader()
Whether the comment has been hearted by the uploaderdefault boolean
isPinned()
Whether the comment is pinneddefault boolean
isUploaderVerified()
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 ParsingException
Return the like count of the comment, orCommentsInfoItem.NO_LIKE_COUNT
if 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_COUNT
if it is unavailable - Throws:
ParsingException
- See Also:
StreamExtractor.getLikeCount()
-
getTextualLikeCount
default java.lang.String getTextualLikeCount() throws ParsingException
The 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 ParsingException
The 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 ParsingException
Whether the comment has been hearted by the uploader- Throws:
ParsingException
-
isPinned
default boolean isPinned() throws ParsingException
Whether the comment is pinned- Throws:
ParsingException
-
isUploaderVerified
default boolean isUploaderVerified() throws ParsingException
Whether the uploader is verified by the service- Throws:
ParsingException
-
getStreamPosition
default int getStreamPosition() throws ParsingException
The playback position of the stream to which this comment belongs.- Throws:
ParsingException
- See Also:
CommentsInfoItem.getStreamPosition()
-
getReplyCount
default int getReplyCount() throws ParsingException
The count of comment replies.- Returns:
- the count of the replies
or
CommentsInfoItem.UNKNOWN_REPLY_COUNT
if 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 ParsingException
Whether the comment was made by the channel owner.- Throws:
ParsingException
-
hasCreatorReply
default boolean hasCreatorReply() throws ParsingException
Whether the comment was replied to by the creator.- Throws:
ParsingException
-
-