Package com.restfb.types
Class StoryAttachment
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.FacebookType
-
- com.restfb.types.StoryAttachment
-
- All Implemented Interfaces:
Serializable
public class StoryAttachment extends FacebookType
Represents the Story Attachment Graph API type.- Since:
- 1.12.0
- Author:
- Kevin Leturc
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StoryAttachment.Attachments
Represents the list of subattachments that are associated with this attachment.static class
StoryAttachment.Image
Image data as applicable for the attachmentstatic class
StoryAttachment.Media
Media data as applicable for the attachment.static class
StoryAttachment.Target
Target data as applicable for the attachment-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description StoryAttachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addDescriptionTag(EntityAtTextRange entityAtTextRange)
String
getDescription()
Returns text accompanying the attachment.List<EntityAtTextRange>
getDescriptionTags()
Profiles tagged in the text accompanying the attachmentStoryAttachment.Media
getMedia()
Returns media object (photo, link etc.) contained in the attachment.String
getMediaType()
Type of the media such as (photo, video, link etc)StoryAttachment.Attachments
getSubAttachments()
Returns list of subattachments that are associated with this attachment.StoryAttachment.Target
getTarget()
Returns object that the attachment links to.String
getTitle()
Returns title of the attachment.String
getUnshimmedUrl()
Unshimmed URL of the attachment.String
getUrl()
Returns URL of the attachment.boolean
removeDescriptionTag(EntityAtTextRange entityAtTextRange)
void
setDescription(String description)
Returns text accompanying the attachment.void
setMedia(StoryAttachment.Media media)
Returns media object (photo, link etc.) contained in the attachment.void
setMediaType(String mediaType)
Type of the media such as (photo, video, link etc)void
setSubAttachments(StoryAttachment.Attachments subAttachments)
Returns list of subattachments that are associated with this attachment.void
setTarget(StoryAttachment.Target target)
Returns object that the attachment links to.void
setTitle(String title)
Returns title of the attachment.void
setUnshimmedUrl(String unshimmedUrl)
Unshimmed URL of the attachment.void
setUrl(String url)
Returns URL of the attachment.-
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
-
StoryAttachment
public StoryAttachment()
-
-
Method Detail
-
getDescriptionTags
public List<EntityAtTextRange> getDescriptionTags()
Profiles tagged in the text accompanying the attachment- Returns:
- Profiles tagged in the text accompanying the attachment
-
addDescriptionTag
public boolean addDescriptionTag(EntityAtTextRange entityAtTextRange)
-
removeDescriptionTag
public boolean removeDescriptionTag(EntityAtTextRange entityAtTextRange)
-
getDescription
public String getDescription()
Returns text accompanying the attachment.- Returns:
- Text accompanying the attachment.
-
setDescription
public void setDescription(String description)
Returns text accompanying the attachment.
-
getMedia
public StoryAttachment.Media getMedia()
Returns media object (photo, link etc.) contained in the attachment.- Returns:
- Media object (photo, link etc.) contained in the attachment.
-
setMedia
public void setMedia(StoryAttachment.Media media)
Returns media object (photo, link etc.) contained in the attachment.
-
getMediaType
public String getMediaType()
Type of the media such as (photo, video, link etc)- Returns:
- Type of the media such as (photo, video, link etc)
-
setMediaType
public void setMediaType(String mediaType)
Type of the media such as (photo, video, link etc)
-
getTarget
public StoryAttachment.Target getTarget()
Returns object that the attachment links to.- Returns:
- Object that the attachment links to.
-
setTarget
public void setTarget(StoryAttachment.Target target)
Returns object that the attachment links to.
-
getTitle
public String getTitle()
Returns title of the attachment.- Returns:
- Title of the attachment.
-
getUnshimmedUrl
public String getUnshimmedUrl()
Unshimmed URL of the attachment.- Returns:
- Unshimmed URL of the attachment
-
setUnshimmedUrl
public void setUnshimmedUrl(String unshimmedUrl)
Unshimmed URL of the attachment.
-
getSubAttachments
public StoryAttachment.Attachments getSubAttachments()
Returns list of subattachments that are associated with this attachment.- Returns:
- List of subattachments that are associated with this attachment.
-
setSubAttachments
public void setSubAttachments(StoryAttachment.Attachments subAttachments)
Returns list of subattachments that are associated with this attachment.
-
-