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