Package com.restfb.types
Class Likes
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.Likes
- All Implemented Interfaces:
Serializable
Represents the Video Likes Graph API
type and the Post Likes Graph API
type
- Author:
- Mark Allen
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addData
(Likes.LikeItem like) returns if the user can like the objectgetData()
The likes.returns if the user has liked the objectThe number of likes.boolean
removeData
(Likes.LikeItem like) void
setCanLike
(Boolean canLike) returns if the user can like the objectvoid
setHasLiked
(Boolean hasLiked) returns if the user has liked the objectvoid
setTotalCount
(Long totalCount) The number of likes.Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
Likes
public Likes()
-
-
Method Details
-
getData
The likes.- Returns:
- The likes.
-
addData
-
removeData
-
getTotalCount
The number of likes.- Returns:
- The number of likes.
-
setTotalCount
The number of likes. -
getCanLike
returns if the user can like the object- Returns:
- if the user can like the object
-
setCanLike
returns if the user can like the object -
getHasLiked
returns if the user has liked the object- Returns:
- if the user has liked the object
-
setHasLiked
returns if the user has liked the object
-