Package com.restfb.types.threads
Class TdReply
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.FacebookType
-
- com.restfb.types.threads.TdReply
-
- All Implemented Interfaces:
Serializable
public class TdReply extends FacebookType
Represents the Reply or Conversation type- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TdReply.TdHideStatus
static class
TdReply.TdReplyAudience
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description TdReply()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TdReply>
getChildren()
List of child posts.Boolean
getHasReplies()
true if the Threads post or reply has replies that you can see.TdReply.TdHideStatus
getHideStatus()
Whether or not the reply is hidden.Boolean
getIsQuotePost()
Indicates if the media is a quoted reply made by another user.Boolean
getIsReply()
true if the Threads media is a reply. false if the Threads media is a top-level post.Boolean
getIsReplyOwnedByMe()
true
if your user is the owner of the Threads reply.String
getMediaProductType()
Surface where the media is published.TdMediaType
getMediaType()
The media type for a Threads reply.String
getMediaUrl()
The post’s media URL.String
getPermalink()
Permanent link to the post.TdReply
getRepliedTo()
Media ID of the immediate parent of the reply.TdReply.TdReplyAudience
getReplyAudience()
Who can reply to your post.TdReply
getRootPost()
Media ID of the top-level post or original thread in the reply tree.String
getShortcode()
Shortcode of the media.String
getText()
Represents text for a Threads reply.String
getThumbnailUrl()
URL of thumbnail.Date
getTimestamp()
The publish date and time of the post in ISO 8601 format.String
getUsername()
Instagram username who created the post.void
setChildren(List<TdReply> children)
List of child posts.void
setHasReplies(Boolean hasReplies)
true if the Threads post or reply has replies that you can see.void
setHideStatus(TdReply.TdHideStatus hideStatus)
Whether or not the reply is hidden.void
setIsQuotePost(Boolean isQuotePost)
Indicates if the media is a quoted reply made by another user.void
setIsReply(Boolean isReply)
true if the Threads media is a reply. false if the Threads media is a top-level post.void
setIsReplyOwnedByMe(Boolean isReplyOwnedByMe)
true
if your user is the owner of the Threads reply.void
setMediaProductType(String mediaProductType)
Surface where the media is published.void
setMediaType(TdMediaType mediaType)
The media type for a Threads reply.void
setMediaUrl(String mediaUrl)
The post’s media URL.void
setPermalink(String permalink)
Permanent link to the post.void
setRepliedTo(TdReply repliedTo)
Media ID of the immediate parent of the reply.void
setReplyAudience(TdReply.TdReplyAudience replyAudience)
Who can reply to your post.void
setRootPost(TdReply rootPost)
Media ID of the top-level post or original thread in the reply tree.void
setShortcode(String shortcode)
Shortcode of the media.void
setText(String text)
Represents text for a Threads reply.void
setThumbnailUrl(String thumbnailUrl)
URL of thumbnail.void
setTimestamp(Date timestamp)
The publish date and time of the post in ISO 8601 format.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
-
TdReply
public TdReply()
-
-
Method Detail
-
getText
public String getText()
Represents text for a Threads reply. This is optional on image, video, and carousel replies.
-
setText
public void setText(String text)
Represents text for a Threads reply. This is optional on image, video, and carousel replies.
-
getUsername
public String getUsername()
Instagram username who created the post. Note: This only works for public users or your own user.
-
setUsername
public void setUsername(String username)
Instagram username who created the post. Note: This only works for public users or your own user.
-
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. Note: This only works for public users or your own user.
-
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. Note: This only works for public users or your own user.
-
getTimestamp
public Date getTimestamp()
The publish date and time of the post in ISO 8601 format.
-
setTimestamp
public void setTimestamp(Date timestamp)
The publish date and time of the post in ISO 8601 format.
-
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 reply. Values: TEXT_POST, IMAGE, VIDEO, CAROUSEL_ALBUM
-
setMediaType
public void setMediaType(TdMediaType mediaType)
The media type for a Threads reply. Values: TEXT_POST, IMAGE, VIDEO, CAROUSEL_ALBUM
-
getMediaUrl
public String getMediaUrl()
The post’s media URL. This only shows for image, video, and carousel replies.
-
setMediaUrl
public void setMediaUrl(String mediaUrl)
The post’s media URL. This only shows for image, video, and carousel replies.
-
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 for Threads replies with video.
-
setThumbnailUrl
public void setThumbnailUrl(String thumbnailUrl)
URL of thumbnail. This only shows for Threads replies with video.
-
getChildren
public List<TdReply> getChildren()
List of child posts. This only shows for carousel replies.
-
setChildren
public void setChildren(List<TdReply> children)
List of child posts. This only shows for carousel replies.
-
getIsQuotePost
public Boolean getIsQuotePost()
Indicates if the media is a quoted reply made by another user.
-
setIsQuotePost
public void setIsQuotePost(Boolean isQuotePost)
Indicates if the media is a quoted reply made by another user.
-
getHasReplies
public Boolean getHasReplies()
true if the Threads post or reply has replies that you can see.
-
setHasReplies
public void setHasReplies(Boolean hasReplies)
true if the Threads post or reply has replies that you can see.
-
getRootPost
public TdReply getRootPost()
Media ID of the top-level post or original thread in the reply tree. Note: This only appears on replies.
-
setRootPost
public void setRootPost(TdReply rootPost)
Media ID of the top-level post or original thread in the reply tree. Note: This only appears on replies.
-
getRepliedTo
public TdReply getRepliedTo()
Media ID of the immediate parent of the reply. Note: This only appears on replies.
-
setRepliedTo
public void setRepliedTo(TdReply repliedTo)
Media ID of the immediate parent of the reply. Note: This only appears on replies.
-
getIsReply
public Boolean getIsReply()
true if the Threads media is a reply. false if the Threads media is a top-level post.
-
setIsReply
public void setIsReply(Boolean isReply)
true if the Threads media is a reply. false if the Threads media is a top-level post.
-
getIsReplyOwnedByMe
public Boolean getIsReplyOwnedByMe()
true
if your user is the owner of the Threads reply.
false
if another user is the owner of the Threads reply.
-
setIsReplyOwnedByMe
public void setIsReplyOwnedByMe(Boolean isReplyOwnedByMe)
true
if your user is the owner of the Threads reply.
false
if another user is the owner of the Threads reply.
-
getHideStatus
public TdReply.TdHideStatus getHideStatus()
Whether or not the reply is hidden. Values: NOT_HUSHED, UNHUSHED, HIDDEN, COVERED, BLOCKED, RESTRICTED
-
setHideStatus
public void setHideStatus(TdReply.TdHideStatus hideStatus)
Whether or not the reply is hidden. Values: NOT_HUSHED, UNHUSHED, HIDDEN, COVERED, BLOCKED, RESTRICTED
-
getReplyAudience
public TdReply.TdReplyAudience getReplyAudience()
Who can reply to your post.
-
setReplyAudience
public void setReplyAudience(TdReply.TdReplyAudience replyAudience)
Who can reply to your post.
-
-