Package com.restfb.types
Class Likes
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.Likes
-
- All Implemented Interfaces:
Serializable
public class Likes extends AbstractFacebookType
Represents the Video Likes Graph API type and the Post Likes Graph API type- Author:
- Mark Allen
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Likes.LikeItem
-
Constructor Summary
Constructors Constructor Description Likes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addData(Likes.LikeItem like)
Boolean
getCanLike()
returns if the user can like the objectList<Likes.LikeItem>
getData()
The likes.Boolean
getHasLiked()
returns if the user has liked the objectLong
getTotalCount()
The 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 Detail
-
Likes
public Likes()
-
-
Method Detail
-
getData
public List<Likes.LikeItem> getData()
The likes.- Returns:
- The likes.
-
addData
public boolean addData(Likes.LikeItem like)
-
removeData
public boolean removeData(Likes.LikeItem like)
-
getTotalCount
public Long getTotalCount()
The number of likes.- Returns:
- The number of likes.
-
setTotalCount
public void setTotalCount(Long totalCount)
The number of likes.
-
getCanLike
public Boolean getCanLike()
returns if the user can like the object- Returns:
- if the user can like the object
-
setCanLike
public void setCanLike(Boolean canLike)
returns if the user can like the object
-
getHasLiked
public Boolean getHasLiked()
returns if the user has liked the object- Returns:
- if the user has liked the object
-
setHasLiked
public void setHasLiked(Boolean hasLiked)
returns if the user has liked the object
-
-