Class TdMedia

    • Constructor Detail

    • Method Detail

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

        public void setOwner​(TdProfile owner)
        Instagram user ID who created the post.
      • setUsername

        public void setUsername​(String username)
        Instagram username who created the post.
      • getText

        public String getText()
        Represents text for a Threads post.
      • setText

        public void setText​(String text)
        Represents text for a Threads 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.
      • 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<TdMediagetChildren()
        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