Package com.restfb.types.threads
Class TdMedia
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.FacebookType
-
- com.restfb.types.threads.TdMedia
-
- All Implemented Interfaces:
Serializable
public class TdMedia extends FacebookType
Represents the Threads Media type- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description TdMedia()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getAllowlistedCountryCodes()
List<Locale>
getAllowlistedCountryCodesAsLocales()
String
getAltText()
The accessibility text label or description for an image or video in a Threads postList<TdMedia>
getChildren()
List of child posts.Boolean
getIsQuotePost()
Indicates if the media is a quoted post made by another userString
getLinkAttachmentUrl()
link attachment URL of the URL that is attachment with highlight.String
getMediaProductType()
Surface where the media is published.TdMediaType
getMediaType()
The media type for a Threads post will be one of these values: TEXT_POST, IMAGE, VIDEO, CAROUSEL_ALBUM, or REPOST_FACADE.String
getMediaUrl()
The post’s media URL.TdProfile
getOwner()
Instagram user ID who created the post.String
getPermalink()
Permanent link to the post.String
getShortcode()
Shortcode of the media.String
getText()
Represents text for a Threads post.String
getThumbnailUrl()
URL of thumbnail.Date
getTimestamp()
Post time.String
getUsername()
Instagram username who created the post.void
setAllowlistedCountryCodes(List<String> allowlistedCountryCodes)
void
setAltText(String altText)
The accessibility text label or description for an image or video in a Threads postvoid
setChildren(List<TdMedia> children)
List of child posts.void
setIsQuotePost(Boolean isQuotePost)
Indicates if the media is a quoted post made by another uservoid
setLinkAttachmentUrl(String linkAttachmentUrl)
link attachment URL of the URL that is attachment with highlight.void
setMediaProductType(String mediaProductType)
Surface where the media is published.void
setMediaType(TdMediaType mediaType)
The media type for a Threads post will be one of these values: TEXT_POST, IMAGE, VIDEO, CAROUSEL_ALBUM, or REPOST_FACADE.void
setMediaUrl(String mediaUrl)
The post’s media URL.void
setOwner(TdProfile owner)
Instagram user ID who created the post.void
setPermalink(String permalink)
Permanent link to the post.void
setShortcode(String shortcode)
Shortcode of the media.void
setText(String text)
Represents text for a Threads post.void
setThumbnailUrl(String thumbnailUrl)
URL of thumbnail.void
setTimestamp(Date timestamp)
Post time.void
setUsername(String username)
Instagram username who created the post.-
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
-
TdMedia
public TdMedia()
-
-
Method Detail
-
getAllowlistedCountryCodesAsLocales
public List<Locale> getAllowlistedCountryCodesAsLocales()
-
getMediaProductType
public String getMediaProductType()
Surface where the media is published. In the case of Threads, the value is THREADS.
-
setMediaProductType
public void setMediaProductType(String mediaProductType)
Surface where the media is published. In the case of Threads, the value is THREADS.
-
getMediaType
public TdMediaType getMediaType()
The media type for a Threads post will be one of these values: TEXT_POST, IMAGE, VIDEO, CAROUSEL_ALBUM, or REPOST_FACADE.
-
setMediaType
public void setMediaType(TdMediaType mediaType)
The media type for a Threads post will be one of these values: TEXT_POST, IMAGE, VIDEO, CAROUSEL_ALBUM, or REPOST_FACADE.
-
getMediaUrl
public String getMediaUrl()
The post’s media URL.
-
setMediaUrl
public void setMediaUrl(String mediaUrl)
The post’s media URL.
-
getPermalink
public String getPermalink()
Permanent link to the post. Will be omitted if the media contains copyrighted material or has been flagged for a copyright violation.
-
setPermalink
public void setPermalink(String permalink)
Permanent link to the post. Will be omitted if the media contains copyrighted material or has been flagged for a copyright violation.
-
getUsername
public String getUsername()
Instagram username who created the post.
-
setUsername
public void setUsername(String username)
Instagram username who created the post.
-
getTimestamp
public Date getTimestamp()
Post time. The publish date in ISO 8601 format.
-
setTimestamp
public void setTimestamp(Date timestamp)
Post time. The publish date in ISO 8601 format.
-
getShortcode
public String getShortcode()
Shortcode of the media.
-
setShortcode
public void setShortcode(String shortcode)
Shortcode of the media.
-
getThumbnailUrl
public String getThumbnailUrl()
URL of thumbnail. This only shows up for Threads media with video.
-
setThumbnailUrl
public void setThumbnailUrl(String thumbnailUrl)
URL of thumbnail. This only shows up for Threads media with video.
-
getChildren
public List<TdMedia> getChildren()
List of child posts. This only shows up for carousel posts.
-
setChildren
public void setChildren(List<TdMedia> children)
List of child posts. This only shows up for carousel posts.
-
getIsQuotePost
public Boolean getIsQuotePost()
Indicates if the media is a quoted post made by another user
-
setIsQuotePost
public void setIsQuotePost(Boolean isQuotePost)
Indicates if the media is a quoted post made by another user
-
getAltText
public String getAltText()
The accessibility text label or description for an image or video in a Threads post
-
setAltText
public void setAltText(String altText)
The accessibility text label or description for an image or video in a Threads post
-
getAllowlistedCountryCodes
public List<String> getAllowlistedCountryCodes()
-
setAllowlistedCountryCodes
public void setAllowlistedCountryCodes(List<String> allowlistedCountryCodes)
-
getLinkAttachmentUrl
public String getLinkAttachmentUrl()
link attachment URL of the URL that is attachment with highlight. See here: https://developers.facebook.com/docs/threads/posts#tags-and-links-in-posts
-
setLinkAttachmentUrl
public void setLinkAttachmentUrl(String linkAttachmentUrl)
link attachment URL of the URL that is attachment with highlight. See here: https://developers.facebook.com/docs/threads/posts#tags-and-links-in-posts
-
-