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
Constructors -
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.voidsetCreatedTime(Date createdTime) The time at which this object was created, if available.voidsetDescription(String description) The link description.voidsetFrom(NamedFacebookType from) An object containing the name and ID of the user who posted the link.voidThe link icon.voidThe actual URL that was shared.voidsetMessage(String message) The link message content.voidsetPicture(String picture) The picture associated with the link.Methods inherited from class com.restfb.types.NamedFacebookType
getName, setNameMethods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setTypeMethods 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:
getMessagein 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:
getCreatedTimein 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
-