public class YoutubeCommentsInfoItemExtractor extends Object implements CommentsInfoItemExtractor
Constructor and Description |
---|
YoutubeCommentsInfoItemExtractor(com.grack.nanojson.JsonObject json,
String url,
TimeAgoParser timeAgoParser) |
Modifier and Type | Method and Description |
---|---|
String |
getCommentId() |
String |
getCommentText()
The text of the comment
|
int |
getLikeCount()
Return the like count of the comment,
or
CommentsInfoItem.NO_LIKE_COUNT if it is unavailable. |
String |
getName() |
Page |
getReplies()
The continuation page which is used to get comment replies from.
|
String |
getTextualLikeCount()
The unmodified like count given by the service
It may be language dependent |
String |
getTextualUploadDate()
The upload date given by the service, unmodified
|
String |
getThumbnailUrl() |
DateWrapper |
getUploadDate()
The upload date wrapped with DateWrapper class
|
String |
getUploaderAvatarUrl() |
String |
getUploaderName() |
String |
getUploaderUrl() |
String |
getUrl() |
boolean |
isHeartedByUploader()
Whether the comment has been hearted by the uploader
|
boolean |
isPinned()
Whether the comment is pinned
|
boolean |
isUploaderVerified()
Whether the uploader is verified by the service
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStreamPosition
public YoutubeCommentsInfoItemExtractor(com.grack.nanojson.JsonObject json, String url, TimeAgoParser timeAgoParser)
public String getUrl() throws ParsingException
getUrl
in interface InfoItemExtractor
ParsingException
public String getThumbnailUrl() throws ParsingException
getThumbnailUrl
in interface InfoItemExtractor
ParsingException
public String getName() throws ParsingException
getName
in interface InfoItemExtractor
ParsingException
public String getTextualUploadDate() throws ParsingException
CommentsInfoItemExtractor
getTextualUploadDate
in interface CommentsInfoItemExtractor
ParsingException
StreamExtractor.getTextualUploadDate()
@Nullable public DateWrapper getUploadDate() throws ParsingException
CommentsInfoItemExtractor
getUploadDate
in interface CommentsInfoItemExtractor
ParsingException
StreamExtractor.getUploadDate()
public int getLikeCount() throws ParsingException
CommentsInfoItemExtractor
CommentsInfoItem.NO_LIKE_COUNT
if it is unavailable.
getLikeCount()
with limitations (only approximate like count is returned)getLikeCount
in interface CommentsInfoItemExtractor
CommentsInfoItem.NO_LIKE_COUNT
if it is unavailableParsingException
StreamExtractor.getLikeCount()
YoutubeService.getSupportedLocalizations()
)
, everything will work fine.getTextualLikeCount()
public String getTextualLikeCount() throws ParsingException
CommentsInfoItemExtractor
getTextualLikeCount
in interface CommentsInfoItemExtractor
ParsingException
public String getCommentText() throws ParsingException
CommentsInfoItemExtractor
getCommentText
in interface CommentsInfoItemExtractor
ParsingException
public String getCommentId() throws ParsingException
getCommentId
in interface CommentsInfoItemExtractor
ParsingException
public String getUploaderAvatarUrl() throws ParsingException
getUploaderAvatarUrl
in interface CommentsInfoItemExtractor
ParsingException
public boolean isHeartedByUploader() throws ParsingException
CommentsInfoItemExtractor
isHeartedByUploader
in interface CommentsInfoItemExtractor
ParsingException
public boolean isPinned() throws ParsingException
CommentsInfoItemExtractor
isPinned
in interface CommentsInfoItemExtractor
ParsingException
public boolean isUploaderVerified() throws ParsingException
CommentsInfoItemExtractor
isUploaderVerified
in interface CommentsInfoItemExtractor
ParsingException
public String getUploaderName() throws ParsingException
getUploaderName
in interface CommentsInfoItemExtractor
ParsingException
public String getUploaderUrl() throws ParsingException
getUploaderUrl
in interface CommentsInfoItemExtractor
ParsingException
public Page getReplies() throws ParsingException
CommentsInfoItemExtractor
getReplies
in interface CommentsInfoItemExtractor
ParsingException