public class Post extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Post.TypeName |
| Constructor and Description |
|---|
Post() |
| Modifier and Type | Method and Description |
|---|---|
void |
addComments(Comment comment) |
void |
addComments(List<Comment> comments) |
String |
getCaption()
get caption of post
|
int |
getComment()
get comment count of post
|
List<Comment> |
getComments() |
Dimension |
getDimensions()
get dimensions of media
|
String |
getDisplayUrl()
get display image link of post that shown when you in list of posts and don't select the post
|
String |
getId()
get String id of post on instagram to use in other method
|
int |
getLike()
get like count of post
|
Location |
getLocation()
get location id of post
if location id is 0 then means not set and if location id is -1 then there is no location id founded for his post at all.
|
String |
getOwnerId()
get owner id of post
|
String |
getShortcode()
get short code of post that see in https://www.instagram.com/p/{ShortCode}/ and use in other method
|
Post[] |
getSidecars()
get sidecars for post with multi video or image
|
int |
getTimestamp()
get time of post in timestamp format
|
Post.TypeName |
getTypename()
get type name of post like "GraphVideo" and "GraphImage"
|
String |
getVideoUrl()
get video url with mp4 extention
|
int |
getVideoViewCount()
get view count of video.
|
boolean |
isCommentsDisabled()
is disable comments in this post
|
boolean |
isVideo()
get type of post that is video or not
|
void |
setCaption(String caption) |
void |
setComment(int comment) |
void |
setCommentsDisabled(boolean commentsDisabled) |
void |
setDimensions(int width,
int height) |
void |
setDisplayUrl(String displayUrl) |
void |
setId(String id) |
void |
setIsVideo(boolean isVideo) |
void |
setLike(int like) |
void |
setLocation(Location location) |
void |
setOwnerId(String ownerId) |
void |
setShortcode(String shortcode) |
void |
setSidecars(Post[] sidecars) |
void |
setTimestamp(int timestamp) |
void |
setTypename(Post.TypeName typename) |
void |
setTypename(String typename) |
void |
setVideoUrl(String videoUrl) |
void |
setVideoViewCount(int videoViewCount) |
public String getId()
public void setId(String id)
public Post.TypeName getTypename()
public void setTypename(Post.TypeName typename)
public void setTypename(String typename)
public String getCaption()
public void setCaption(String caption)
public String getShortcode()
public void setShortcode(String shortcode)
public int getComment()
public void setComment(int comment)
public boolean isCommentsDisabled()
public void setCommentsDisabled(boolean commentsDisabled)
public int getTimestamp()
public void setTimestamp(int timestamp)
public Dimension getDimensions()
public void setDimensions(int width,
int height)
public String getDisplayUrl()
public void setDisplayUrl(String displayUrl)
public int getLike()
public void setLike(int like)
public String getOwnerId()
public void setOwnerId(String ownerId)
public boolean isVideo()
public void setIsVideo(boolean isVideo)
public int getVideoViewCount()
public void setVideoViewCount(int videoViewCount)
public Location getLocation()
public void setLocation(Location location)
public String getVideoUrl()
public void setVideoUrl(String videoUrl)
public Post[] getSidecars()
public void setSidecars(Post[] sidecars)
public void addComments(Comment comment)
Copyright © 2018. All rights reserved.