Package com.restfb.types
Class Review
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.FacebookType
-
- com.restfb.types.Review
-
- All Implemented Interfaces:
HasCreatedTime
,HasFrom
,HasMessage
,Serializable
public class Review extends FacebookType implements HasCreatedTime, HasFrom, HasMessage
Represents the Review Graph API Type- Since:
- 1.6.16
- Author:
- Norbert Bartels
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description Review()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getCreatedTime()
When the review was created.NamedFacebookType
getFrom()
The user that created the review.String
getMessage()
The review text, if any.int
getRating()
The review rating.NamedFacebookType
getTo()
The app to which this review applies.void
setCreatedTime(Date createdTime)
When the review was created.void
setFrom(NamedFacebookType from)
The user that created the review.void
setMessage(String message)
The review text, if any.void
setRating(int rating)
The review rating.void
setTo(NamedFacebookType to)
The app to which this review applies.-
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
-
Review
public Review()
-
-
Method Detail
-
getCreatedTime
public Date getCreatedTime()
When the review was created.- Specified by:
getCreatedTime
in interfaceHasCreatedTime
- Returns:
- when the review was created
- Since:
- 1.6.16
-
setCreatedTime
public void setCreatedTime(Date createdTime)
When the review was created.- Since:
- 1.6.16
-
getFrom
public NamedFacebookType getFrom()
The user that created the review.
-
setFrom
public void setFrom(NamedFacebookType from)
The user that created the review.- Since:
- 1.6.16
-
getMessage
public String getMessage()
The review text, if any.- Specified by:
getMessage
in interfaceHasMessage
- Returns:
- The review text, if any
- Since:
- 1.6.16
-
setMessage
public void setMessage(String message)
The review text, if any.- Since:
- 1.6.16
-
getRating
public int getRating()
The review rating.- Returns:
- The review rating
- Since:
- 1.6.16
-
setRating
public void setRating(int rating)
The review rating.- Since:
- 1.6.16
-
getTo
public NamedFacebookType getTo()
The app to which this review applies.- Returns:
- The app to which this review applies
- Since:
- 1.6.16
-
setTo
public void setTo(NamedFacebookType to)
The app to which this review applies.- Since:
- 1.6.16
-
-