Package com.restfb.types.webhook
Class FeedLikeValue
- java.lang.Object
-
- com.restfb.types.webhook.ChangeValue
-
- com.restfb.types.webhook.base.BaseChangeValue
-
- com.restfb.types.webhook.base.AbstractFeedPostValue
-
- com.restfb.types.webhook.FeedLikeValue
-
public class FeedLikeValue extends AbstractFeedPostValue
change value of the feed like
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.webhook.ChangeValue
ChangeValue.Verb
-
-
Constructor Summary
Constructors Constructor Description FeedLikeValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCommentId()
String
getParentId()
String
getUserId()
boolean
isCommentLike()
returns true if the liked item is a commentboolean
isPageLike()
returns if the page is liked or a post.boolean
isPostLike()
returns true if the liked item is a postvoid
setCommentId(String commentId)
void
setParentId(String parentId)
void
setUserId(String userId)
-
Methods inherited from class com.restfb.types.webhook.base.AbstractFeedPostValue
getFrom, getPostId, setPostId
-
Methods inherited from class com.restfb.types.webhook.base.BaseChangeValue
getCreatedTime, getItem, getVerb, getVerbAsString, setCreatedTime, setItem, setVerb, setVerbAsString
-
Methods inherited from class com.restfb.types.webhook.ChangeValue
convertChangeValue, equals, hashCode, isWhatsapp, toString
-
-
-
-
Constructor Detail
-
FeedLikeValue
public FeedLikeValue()
-
-
Method Detail
-
isPageLike
public boolean isPageLike()
returns if the page is liked or a post. if this is a page like you can only fetch theuserId
of the liking user. Otherwise you can fetch fields likeparentId
,postId
,senderId
and so on- Returns:
- if this is a page like
-
isCommentLike
public boolean isCommentLike()
returns true if the liked item is a comment- Returns:
- true if the liked item is a comment
-
isPostLike
public boolean isPostLike()
returns true if the liked item is a post- Returns:
- true if the liked item is a post
-
getParentId
public String getParentId()
-
setParentId
public void setParentId(String parentId)
-
getCommentId
public String getCommentId()
-
setCommentId
public void setCommentId(String commentId)
-
-