Class IgMedia

All Implemented Interfaces:
Serializable

public class IgMedia extends IgMediaChild
Represents the instagram media type
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • getChildren

      returns the list of child media objects, only available if the media_type is a carousal
      Returns:
      the list of children as unmodifiable list
    • addChild

      public boolean addChild(IgMediaChild child)
      adds a new child to the children list
      Parameters:
      child - the child that is added
      Returns:
      true if adding the child works
    • removeChild

      public boolean removeChild(IgMediaChild child)
      removes a new child from the children list
      Parameters:
      child - the child that is removed
      Returns:
      true if removing the child works
    • getInsights

    • addChild

      public boolean addChild(Insight insight)
    • removeChild

      public boolean removeChild(Insight insight)
    • getComments

      returns the comments of this media
      Returns:
      the comments of this media
    • addComment

      public boolean addComment(IgComment comment)
    • removeComment

      public boolean removeComment(IgComment comment)
    • getCaption

      public String getCaption()
    • setCaption

      public void setCaption(String caption)
    • getCommentsCount

      Count of comments on the media. Excludes comments on album child media and the media's caption. Includes replies on comments.
    • setCommentsCount

      public void setCommentsCount(Long commentsCount)
      Count of comments on the media. Excludes comments on album child media and the media's caption. Includes replies on comments.
    • getIsCommentEnabled

      Indicates if comments are enabled or disabled. Excludes album children.
    • setIsCommentEnabled

      public void setIsCommentEnabled(Boolean isCommentEnabled)
      Indicates if comments are enabled or disabled. Excludes album children.
    • getLikeCount

      public Long getLikeCount()
      Count of likes on the media. Excludes likes on album child media and likes on promoted posts created from the media. Includes replies on comments.
    • setLikeCount

      public void setLikeCount(Long likeCount)
      Count of likes on the media. Excludes likes on album child media and likes on promoted posts created from the media. Includes replies on comments.
    • getMediaProductType

      Surface where the media is published. Can be AD, FEED, IGTV, or STORY.
    • setMediaProductType

      public void setMediaProductType(String mediaProductType)
      Surface where the media is published. Can be AD, FEED, IGTV, or STORY.
    • getThumbnailUrl

      Media thumbnail URL. Only available on VIDEO media.
      Overrides:
      getThumbnailUrl in class IgMediaChild
    • setThumbnailUrl

      public void setThumbnailUrl(String thumbnailUrl)
      Media thumbnail URL. Only available on VIDEO media.
      Overrides:
      setThumbnailUrl in class IgMediaChild
    • getVideoTitle

      IGTV media title.
    • setVideoTitle

      public void setVideoTitle(String videoTitle)
      IGTV media title.