Interface CommentsInfoItemExtractor
- All Superinterfaces:
InfoItemExtractor
- All Known Implementing Classes:
BandcampCommentsInfoItemExtractor,PeertubeCommentsInfoItemExtractor,SoundcloudCommentsInfoItemExtractor,YoutubeCommentsInfoItemExtractor,YoutubeLiveChatInfoItemExtractor
-
Method Summary
Modifier and TypeMethodDescriptiondefault Stringdefault DescriptionThe text of the commentdefault intReturn the like count of the comment, orCommentsInfoItem.NO_LIKE_COUNTif it is unavailable.default PageThe continuation page which is used to get comment replies from.default intThe count of comment replies.default intThe playback position of the stream to which this comment belongs.default StringThe unmodified like count given by the service
It may be language dependentdefault StringThe upload date given by the service, unmodifieddefault DateWrapperThe upload date wrapped with DateWrapper classdefault Stringdefault Stringdefault booleanWhether the comment was replied to by the creator.default booleanWhether the comment was made by the channel owner.default booleanisEdited()Whether the comment is edited.default booleanWhether the comment has been hearted by the uploaderdefault booleanisPinned()Whether the comment is pinneddefault booleanWhether the uploader is verified by the serviceMethods inherited from interface org.schabi.newpipe.extractor.InfoItemExtractor
getName, getThumbnails, getUrl
-
Method Details
-
getLikeCount
Return 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:
-
getTextualLikeCount
The unmodified like count given by the service
It may be language dependent- Throws:
ParsingException
-
getCommentText
The text of the comment- Throws:
ParsingException
-
getTextualUploadDate
The upload date given by the service, unmodified- Throws:
ParsingException- See Also:
-
getUploadDate
The upload date wrapped with DateWrapper class- Throws:
ParsingException- See Also:
-
getCommentId
- Throws:
ParsingException
-
getUploaderUrl
- Throws:
ParsingException
-
getUploaderName
- Throws:
ParsingException
-
getUploaderAvatars
- Throws:
ParsingException
-
isHeartedByUploader
Whether the comment has been hearted by the uploader- Throws:
ParsingException
-
isPinned
Whether the comment is pinned- Throws:
ParsingException
-
isUploaderVerified
Whether the uploader is verified by the service- Throws:
ParsingException
-
getStreamPosition
The playback position of the stream to which this comment belongs.- Throws:
ParsingException- See Also:
-
getReplyCount
The count of comment replies.- Returns:
- the count of the replies
or
CommentsInfoItem.UNKNOWN_REPLY_COUNTif replies are not supported - Throws:
ParsingException
-
getReplies
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
Whether the comment was made by the channel owner.- Throws:
ParsingException
-
hasCreatorReply
Whether the comment was replied to by the creator.- Throws:
ParsingException
-
isEdited
Whether the comment is edited.- Throws:
ParsingException
-