Package com.restfb.types
Class Page.Engagement
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.Page.Engagement
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Page
public static class Page.Engagement extends AbstractFacebookType
Represents the Page Engagement Graph API type. The social sentence and like count used to render the like plugin- Since:
- 1.10.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Engagement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getCount()
Number of people who like this.String
getCountString()
Abbreviated string representation of count.String
getCountStringWithLike()
Abbreviated string representation of count if the viewer likes the object.String
getCountStringWithoutLike()
Abbreviated string representation of count if the viewer does not like the object.String
getSocialSentence()
Text that the like button would currently display.String
getSocialSentenceWithLike()
Text that the like button would display if the viewer likes the object.String
getSocialSentenceWithoutLike()
Text that the like button would display if the viewer does not like the object.void
setCount(Long count)
Number of people who like this.void
setCountString(String countString)
Abbreviated string representation of count.void
setCountStringWithLike(String countStringWithLike)
Abbreviated string representation of count if the viewer likes the object.void
setCountStringWithoutLike(String countStringWithoutLike)
Abbreviated string representation of count if the viewer does not like the object.void
setSocialSentence(String socialSentence)
Text that the like button would currently display.void
setSocialSentenceWithLike(String socialSentenceWithLike)
Text that the like button would display if the viewer likes the object.void
setSocialSentenceWithoutLike(String socialSentenceWithoutLike)
Text that the like button would display if the viewer does not like the object.-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
Engagement
public Engagement()
-
-
Method Detail
-
getCount
public Long getCount()
Number of people who like this.- Returns:
- Number of people who like this
-
getCountString
public String getCountString()
Abbreviated string representation of count.- Returns:
- Abbreviated string representation of count
-
setCountString
public void setCountString(String countString)
Abbreviated string representation of count.
-
getCountStringWithLike
public String getCountStringWithLike()
Abbreviated string representation of count if the viewer likes the object.- Returns:
- Abbreviated string representation of count if the viewer likes the object
-
setCountStringWithLike
public void setCountStringWithLike(String countStringWithLike)
Abbreviated string representation of count if the viewer likes the object.
-
getCountStringWithoutLike
public String getCountStringWithoutLike()
Abbreviated string representation of count if the viewer does not like the object.- Returns:
- Abbreviated string representation of count if the viewer does not like the object
-
setCountStringWithoutLike
public void setCountStringWithoutLike(String countStringWithoutLike)
Abbreviated string representation of count if the viewer does not like the object.
-
getSocialSentence
public String getSocialSentence()
Text that the like button would currently display.- Returns:
- Text that the like button would currently display
-
setSocialSentence
public void setSocialSentence(String socialSentence)
Text that the like button would currently display.
-
getSocialSentenceWithLike
public String getSocialSentenceWithLike()
Text that the like button would display if the viewer likes the object.- Returns:
- Text that the like button would display if the viewer likes the object
-
setSocialSentenceWithLike
public void setSocialSentenceWithLike(String socialSentenceWithLike)
Text that the like button would display if the viewer likes the object.
-
getSocialSentenceWithoutLike
public String getSocialSentenceWithoutLike()
Text that the like button would display if the viewer does not like the object.- Returns:
- Text that the like button would display if the viewer does not like the object
-
setSocialSentenceWithoutLike
public void setSocialSentenceWithoutLike(String socialSentenceWithoutLike)
Text that the like button would display if the viewer does not like the object.
-
-