Package com.restfb.types
Class Link
- All Implemented Interfaces:
HasCreatedTime
,HasFrom
,HasMessage
,Serializable
Represents the Link Graph API type.
- Since:
- 1.5
- Author:
- Mark Allen, Patrick Alberts
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe time at which this object was created, if available.The link description.getFrom()
An object containing the name and ID of the user who posted the link.getIcon()
The link icon.getLink()
The actual URL that was shared.The link message content.The picture associated with the link.void
setCreatedTime
(Date createdTime) The time at which this object was created, if available.void
setDescription
(String description) The link description.void
setFrom
(NamedFacebookType from) An object containing the name and ID of the user who posted the link.void
The link icon.void
The actual URL that was shared.void
setMessage
(String message) The link message content.void
setPicture
(String picture) The picture associated with the link.Methods inherited from class com.restfb.types.NamedFacebookType
getName, setName
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 Details
-
Link
public Link()
-
-
Method Details
-
getFrom
An object containing the name and ID of the user who posted the link. -
setFrom
An object containing the name and ID of the user who posted the link. -
getMessage
The link message content.- Specified by:
getMessage
in interfaceHasMessage
- Returns:
- The link message content.
-
setMessage
The link message content. -
getPicture
The picture associated with the link.- Returns:
- The picture associated with the link.
-
setPicture
The picture associated with the link. -
getLink
The actual URL that was shared.- Returns:
- The actual URL that was shared.
-
setLink
The actual URL that was shared. -
getDescription
The link description.- Returns:
- The link description.
-
setDescription
The link description. -
getIcon
The link icon.- Returns:
- The link icon.
-
setIcon
The link icon. -
getCreatedTime
The time at which this object was created, if available.- Specified by:
getCreatedTime
in interfaceHasCreatedTime
- Returns:
- The time at which this object was created.
- Since:
- 1.6.3
-
setCreatedTime
The time at which this object was created, if available.- Since:
- 1.6.3
-