Package com.restfb.types
Class Checkin
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.FacebookType
-
- com.restfb.types.Checkin
-
- All Implemented Interfaces:
HasCreatedTime
,HasFrom
,HasMessage
,Serializable
public class Checkin extends FacebookType implements HasCreatedTime, HasFrom, HasMessage
Represents the Check-In Graph API type.- Since:
- 1.6
- Author:
- Mark Allen
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description Checkin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addComment(Comment comment)
boolean
addTag(NamedFacebookType tag)
NamedFacebookType
getApplication()
The ID and name of the application that made the check-in.List<Comment>
getComments()
The comments for the check-in.Date
getCreatedTime()
The time the check-in was created.NamedFacebookType
getFrom()
The ID and name of the user who made the check-in.String
getMessage()
The message the user added to the check-in.Place
getPlace()
The ID, name, and location of the Facebook Page that represents the location of the check-in.List<NamedFacebookType>
getTags()
Tags for the check-in.boolean
removeComment(Comment comment)
boolean
removeTag(NamedFacebookType tag)
void
setApplication(NamedFacebookType application)
The ID and name of the application that made the check-in.void
setCreatedTime(Date createdTime)
The time the check-in was created.void
setFrom(NamedFacebookType from)
The ID and name of the user who made the check-in.void
setMessage(String message)
The message the user added to the check-in.void
setPlace(Place place)
The ID, name, and location of the Facebook Page that represents the location of the check-in.-
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
-
Checkin
public Checkin()
-
-
Method Detail
-
getComments
public List<Comment> getComments()
The comments for the check-in.- Returns:
- The comments for the check-in.
-
addComment
public boolean addComment(Comment comment)
-
removeComment
public boolean removeComment(Comment comment)
-
getTags
public List<NamedFacebookType> getTags()
Tags for the check-in. I.e. Users tagged in the check-in- Returns:
- Tags for the check-in.
-
addTag
public boolean addTag(NamedFacebookType tag)
-
removeTag
public boolean removeTag(NamedFacebookType tag)
-
getMessage
public String getMessage()
The message the user added to the check-in.- Specified by:
getMessage
in interfaceHasMessage
- Returns:
- The message the user added to the check-in.
-
setMessage
public void setMessage(String message)
The message the user added to the check-in.
-
getFrom
public NamedFacebookType getFrom()
The ID and name of the user who made the check-in.
-
setFrom
public void setFrom(NamedFacebookType from)
The ID and name of the user who made the check-in.
-
getApplication
public NamedFacebookType getApplication()
The ID and name of the application that made the check-in.- Returns:
- The ID and name of the application that made the check-in.
-
setApplication
public void setApplication(NamedFacebookType application)
The ID and name of the application that made the check-in.
-
getPlace
public Place getPlace()
The ID, name, and location of the Facebook Page that represents the location of the check-in.- Returns:
- The ID, name, and location of the Facebook Page that represents the location of the check-in.
-
setPlace
public void setPlace(Place place)
The ID, name, and location of the Facebook Page that represents the location of the check-in.
-
getCreatedTime
public Date getCreatedTime()
The time the check-in was created.- Specified by:
getCreatedTime
in interfaceHasCreatedTime
- Returns:
- The time the check-in was created.
-
setCreatedTime
public void setCreatedTime(Date createdTime)
The time the check-in was created.
-
-