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
Represents the Story
Attachment Graph API type.
- Since:
- 1.12.0
- Author:
- Kevin Leturc
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the list of subattachments that are associated with this attachment.static class
Image data as applicable for the attachmentstatic class
Media data as applicable for the attachment.static class
Target data as applicable for the attachmentNested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addDescriptionTag
(EntityAtTextRange entityAtTextRange) Returns text accompanying the attachment.Profiles tagged in the text accompanying the attachmentgetMedia()
Returns media object (photo, link etc.) contained in the attachment.Type of the media such as (photo, video, link etc)Returns list of subattachments that are associated with this attachment.Returns object that the attachment links to.getTitle()
Returns title of the attachment.Unshimmed URL of the attachment.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
Returns title of the attachment.void
setUnshimmedUrl
(String unshimmedUrl) Unshimmed URL of the attachment.void
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 Details
-
StoryAttachment
public StoryAttachment()
-
-
Method Details
-
getDescriptionTags
Profiles tagged in the text accompanying the attachment- Returns:
- Profiles tagged in the text accompanying the attachment
-
addDescriptionTag
-
removeDescriptionTag
-
getDescription
Returns text accompanying the attachment.- Returns:
- Text accompanying the attachment.
-
setDescription
Returns text accompanying the attachment. -
getMedia
Returns media object (photo, link etc.) contained in the attachment.- Returns:
- Media object (photo, link etc.) contained in the attachment.
-
setMedia
Returns media object (photo, link etc.) contained in the attachment. -
getMediaType
Type of the media such as (photo, video, link etc)- Returns:
- Type of the media such as (photo, video, link etc)
-
setMediaType
Type of the media such as (photo, video, link etc) -
getTarget
Returns object that the attachment links to.- Returns:
- Object that the attachment links to.
-
setTarget
Returns object that the attachment links to. -
getTitle
Returns title of the attachment.- Returns:
- Title of the attachment.
-
setTitle
Returns title of the attachment. -
getUrl
Returns URL of the attachment.- Returns:
- URL of the attachment.
-
setUrl
Returns URL of the attachment. -
getUnshimmedUrl
Unshimmed URL of the attachment.- Returns:
- Unshimmed URL of the attachment
-
setUnshimmedUrl
Unshimmed URL of the attachment. -
getSubAttachments
Returns list of subattachments that are associated with this attachment.- Returns:
- List of subattachments that are associated with this attachment.
-
setSubAttachments
Returns list of subattachments that are associated with this attachment.
-