Package com.restfb.types.instagram
Class IgComment
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.FacebookType
-
- com.restfb.types.instagram.IgComment
-
- All Implemented Interfaces:
Serializable
public class IgComment extends FacebookType
Represents a Instagram Comment object- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description IgComment()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
addReply(IgComment reply)
IgFrom
getFrom()
An object containing: id — IGSID of the Instagram user who created the IG Comment.Boolean
getHidden()
Whether the comment is hiddenLong
getLikeCount()
Number of likes on the commentIgMedia
getMedia()
Media on which the comment is madeString
getParentId()
ID of the parent IG Comment if this comment was created on another IG Comment (i.e. a reply to another comment.List<IgComment>
getReplies()
String
getText()
Text of the commentDate
getTimestamp()
Timestamp of commentIgUser
getUser()
Deprecated.with Graph API 12 or December 13, 2021 for all versionsString
getUsername()
User will only be returned when queried by owner of comment.boolean
removeReply(IgComment reply)
void
setFrom(IgFrom from)
An object containing: id — IGSID of the Instagram user who created the IG Comment.void
setHidden(Boolean hidden)
Whether the comment is hiddenvoid
setLikeCount(Long likeCount)
Number of likes on the commentvoid
setMedia(IgMedia media)
Media on which the comment is madevoid
setParentId(String parentId)
ID of the parent IG Comment if this comment was created on another IG Comment (i.e. a reply to another comment.void
setText(String text)
Text of the commentvoid
setTimestamp(Date timestamp)
Timestamp of commentvoid
setUser(IgUser user)
Deprecated.with Graph API 12 or December 13, 2021 for all versionsvoid
setUsername(String username)
User will only be returned when queried by owner of comment.-
Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
IgComment
public IgComment()
-
-
Method Detail
-
getReplies
public List<IgComment> getReplies()
-
removeReply
public boolean removeReply(IgComment reply)
-
getFrom
public IgFrom getFrom()
An object containing: id — IGSID of the Instagram user who created the IG Comment. username — Username of the Instagram user who created the IG Comment.
-
setFrom
public void setFrom(IgFrom from)
An object containing: id — IGSID of the Instagram user who created the IG Comment. username — Username of the Instagram user who created the IG Comment.
-
getLikeCount
public Long getLikeCount()
Number of likes on the comment
-
setLikeCount
public void setLikeCount(Long likeCount)
Number of likes on the comment
-
getTimestamp
public Date getTimestamp()
Timestamp of comment
-
setTimestamp
public void setTimestamp(Date timestamp)
Timestamp of comment
-
getUser
@Deprecated public IgUser getUser()
Deprecated.with Graph API 12 or December 13, 2021 for all versionsUser who made the comment
-
setUser
@Deprecated public void setUser(IgUser user)
Deprecated.with Graph API 12 or December 13, 2021 for all versionsUser who made the comment
-
getUsername
public String getUsername()
User will only be returned when queried by owner of comment. Otherwise, username is the only field that will be returned.
-
setUsername
public void setUsername(String username)
User will only be returned when queried by owner of comment. Otherwise, username is the only field that will be returned.
-
getParentId
public String getParentId()
ID of the parent IG Comment if this comment was created on another IG Comment (i.e. a reply to another comment.
-
setParentId
public void setParentId(String parentId)
ID of the parent IG Comment if this comment was created on another IG Comment (i.e. a reply to another comment.
-
-