Class CommentsInfoItem
- java.lang.Object
-
- org.schabi.newpipe.extractor.InfoItem
-
- org.schabi.newpipe.extractor.comments.CommentsInfoItem
-
- All Implemented Interfaces:
java.io.Serializable
public class CommentsInfoItem extends InfoItem
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.schabi.newpipe.extractor.InfoItem
InfoItem.InfoType
-
-
Field Summary
Fields Modifier and Type Field Description static int
NO_LIKE_COUNT
static int
NO_STREAM_POSITION
static int
UNKNOWN_REPLY_COUNT
-
Constructor Summary
Constructors Constructor Description CommentsInfoItem(int serviceId, java.lang.String url, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCommentId()
Description
getCommentText()
int
getLikeCount()
Page
getReplies()
int
getReplyCount()
int
getStreamPosition()
Get the playback position of the stream to which this comment belongs.java.lang.String
getTextualLikeCount()
java.lang.String
getTextualUploadDate()
DateWrapper
getUploadDate()
java.util.List<Image>
getUploaderAvatars()
java.lang.String
getUploaderName()
java.lang.String
getUploaderUrl()
boolean
hasCreatorReply()
boolean
isChannelOwner()
boolean
isHeartedByUploader()
boolean
isPinned()
boolean
isUploaderVerified()
void
setChannelOwner(boolean channelOwner)
void
setCommentId(java.lang.String commentId)
void
setCommentText(Description commentText)
void
setCreatorReply(boolean creatorReply)
void
setHeartedByUploader(boolean isHeartedByUploader)
void
setLikeCount(int likeCount)
void
setPinned(boolean pinned)
void
setReplies(Page replies)
void
setReplyCount(int replyCount)
void
setStreamPosition(int streamPosition)
void
setTextualLikeCount(java.lang.String textualLikeCount)
void
setTextualUploadDate(java.lang.String textualUploadDate)
void
setUploadDate(DateWrapper uploadDate)
void
setUploaderAvatars(java.util.List<Image> uploaderAvatars)
void
setUploaderName(java.lang.String uploaderName)
void
setUploaderUrl(java.lang.String uploaderUrl)
void
setUploaderVerified(boolean uploaderVerified)
-
Methods inherited from class org.schabi.newpipe.extractor.InfoItem
getInfoType, getName, getServiceId, getThumbnails, getUrl, setThumbnails, toString
-
-
-
-
Field Detail
-
NO_LIKE_COUNT
public static final int NO_LIKE_COUNT
- See Also:
- Constant Field Values
-
NO_STREAM_POSITION
public static final int NO_STREAM_POSITION
- See Also:
- Constant Field Values
-
UNKNOWN_REPLY_COUNT
public static final int UNKNOWN_REPLY_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCommentId
public java.lang.String getCommentId()
-
setCommentId
public void setCommentId(java.lang.String commentId)
-
getCommentText
@Nonnull public Description getCommentText()
-
setCommentText
public void setCommentText(@Nonnull Description commentText)
-
getUploaderName
public java.lang.String getUploaderName()
-
setUploaderName
public void setUploaderName(java.lang.String uploaderName)
-
getUploaderAvatars
@Nonnull public java.util.List<Image> getUploaderAvatars()
-
setUploaderAvatars
public void setUploaderAvatars(@Nonnull java.util.List<Image> uploaderAvatars)
-
getUploaderUrl
public java.lang.String getUploaderUrl()
-
setUploaderUrl
public void setUploaderUrl(java.lang.String uploaderUrl)
-
getTextualUploadDate
public java.lang.String getTextualUploadDate()
-
setTextualUploadDate
public void setTextualUploadDate(java.lang.String textualUploadDate)
-
getUploadDate
@Nullable public DateWrapper getUploadDate()
-
setUploadDate
public void setUploadDate(@Nullable DateWrapper uploadDate)
-
getLikeCount
public int getLikeCount()
- Returns:
- the comment's like count or
NO_LIKE_COUNT
if it is unavailable
-
setLikeCount
public void setLikeCount(int likeCount)
-
getTextualLikeCount
public java.lang.String getTextualLikeCount()
-
setTextualLikeCount
public void setTextualLikeCount(java.lang.String textualLikeCount)
-
setHeartedByUploader
public void setHeartedByUploader(boolean isHeartedByUploader)
-
isHeartedByUploader
public boolean isHeartedByUploader()
-
isPinned
public boolean isPinned()
-
setPinned
public void setPinned(boolean pinned)
-
setUploaderVerified
public void setUploaderVerified(boolean uploaderVerified)
-
isUploaderVerified
public boolean isUploaderVerified()
-
setStreamPosition
public void setStreamPosition(int streamPosition)
-
getStreamPosition
public int getStreamPosition()
Get the playback position of the stream to which this comment belongs. This is not supported by all services.- Returns:
- the playback position in seconds or
NO_STREAM_POSITION
if not available
-
setReplyCount
public void setReplyCount(int replyCount)
-
getReplyCount
public int getReplyCount()
-
setReplies
public void setReplies(@Nullable Page replies)
-
getReplies
@Nullable public Page getReplies()
-
setChannelOwner
public void setChannelOwner(boolean channelOwner)
-
isChannelOwner
public boolean isChannelOwner()
-
setCreatorReply
public void setCreatorReply(boolean creatorReply)
-
hasCreatorReply
public boolean hasCreatorReply()
-
-