Package com.restfb.types.instagram
Class IgMedia
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.FacebookType
com.restfb.types.instagram.IgMediaChild
com.restfb.types.instagram.IgMedia
- All Implemented Interfaces:
Serializable
Represents the instagram media type
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addChild(IgMediaChild child)
adds a new child to the children listboolean
addComment(IgComment comment)
returns the list of child media objects, only available if the media_type is a carousalreturns the comments of this mediaCount of comments on the media.Indicates if comments are enabled or disabled.Count of likes on the media.Surface where the media is published.Media thumbnail URL.IGTV media title.boolean
removeChild(Insight insight)
boolean
removeChild(IgMediaChild child)
removes a new child from the children listboolean
removeComment(IgComment comment)
void
setCaption(String caption)
void
setCommentsCount(Long commentsCount)
Count of comments on the media.void
setIsCommentEnabled(Boolean isCommentEnabled)
Indicates if comments are enabled or disabled.void
setLikeCount(Long likeCount)
Count of likes on the media.void
setMediaProductType(String mediaProductType)
Surface where the media is published.void
setThumbnailUrl(String thumbnailUrl)
Media thumbnail URL.void
setVideoTitle(String videoTitle)
IGTV media title.Methods inherited from class com.restfb.types.instagram.IgMediaChild
getIgId, getMediaType, getMediaUrl, getOwner, getPermalink, getShortcode, getTimestamp, getUsername, setIgId, setMediaType, setMediaUrl, setOwner, setPermalink, setShortcode, setTimestamp, setUsername
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 Details
-
IgMedia
public IgMedia()
-
-
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
adds a new child to the children list- Parameters:
child
- the child that is added- Returns:
- true if adding the child works
-
removeChild
removes a new child from the children list- Parameters:
child
- the child that is removed- Returns:
- true if removing the child works
-
getInsights
-
addChild
-
removeChild
-
getComments
returns the comments of this media- Returns:
- the comments of this media
-
addComment
-
removeComment
-
getCaption
-
setCaption
-
getCommentsCount
Count of comments on the media. Excludes comments on album child media and the media's caption. Includes replies on comments. -
setCommentsCount
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
Indicates if comments are enabled or disabled. Excludes album children. -
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
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
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 classIgMediaChild
-
setThumbnailUrl
Media thumbnail URL. Only available on VIDEO media.- Overrides:
setThumbnailUrl
in classIgMediaChild
-
getVideoTitle
IGTV media title. -
setVideoTitle
IGTV media title.
-