Class TdReply

    • Constructor Detail

    • 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.
      • 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.
      • 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.
      • setHideStatus

        public void setHideStatus​(TdReply.TdHideStatus hideStatus)
        Whether or not the reply is hidden. Values: NOT_HUSHED, UNHUSHED, HIDDEN, COVERED, BLOCKED, RESTRICTED