public class MediaEntityJSONImpl extends Object implements MediaEntity
Modifier and Type | Method and Description |
---|---|
int |
compareTo(twitter4j.EntityIndex that) |
boolean |
equals(Object o) |
String |
getDisplayURL()
Returns the display URL if mentioned URL is shorten.
|
int |
getEnd()
Returns the index of the end character of the URL mentioned in the tweet.
|
String |
getExpandedURL()
Returns the expanded URL if mentioned URL is shorten.
|
String |
getExtAltText() |
long |
getId()
Returns the id of the media.
|
String |
getMediaURL()
Returns the media URL.
|
String |
getMediaURLHttps()
Returns the media secure URL.
|
Map<Integer,MediaEntity.Size> |
getSizes()
Returns size variations of the media.
|
int |
getStart()
Returns the index of the start character of the URL mentioned in the tweet.
|
String |
getText()
Returns the URL mentioned in the tweet.
This method implementation is to meet TweetEntity interface and the behavior is equivalent to URLEntity.getURL() |
String |
getType()
Returns the media type ("photo", "video", "animated_gif").
|
String |
getURL()
Returns the URL mentioned in the tweet.
|
int |
getVideoAspectRatioHeight() |
int |
getVideoAspectRatioWidth() |
long |
getVideoDurationMillis() |
MediaEntity.Variant[] |
getVideoVariants() |
int |
hashCode() |
String |
toString() |
public long getId()
MediaEntity
getId
in interface MediaEntity
public String getMediaURL()
MediaEntity
getMediaURL
in interface MediaEntity
public String getMediaURLHttps()
MediaEntity
getMediaURLHttps
in interface MediaEntity
public String getText()
URLEntity
URLEntity.getURL()
getText
in interface TweetEntity
getText
in interface URLEntity
public String getURL()
URLEntity
public String getDisplayURL()
URLEntity
getDisplayURL
in interface URLEntity
public String getExpandedURL()
URLEntity
getExpandedURL
in interface URLEntity
public Map<Integer,MediaEntity.Size> getSizes()
MediaEntity
getSizes
in interface MediaEntity
public String getType()
MediaEntity
getType
in interface MediaEntity
public int getStart()
URLEntity
getStart
in interface TweetEntity
getStart
in interface URLEntity
public int getEnd()
URLEntity
getEnd
in interface TweetEntity
getEnd
in interface URLEntity
public int getVideoAspectRatioWidth()
getVideoAspectRatioWidth
in interface MediaEntity
public int getVideoAspectRatioHeight()
getVideoAspectRatioHeight
in interface MediaEntity
public long getVideoDurationMillis()
getVideoDurationMillis
in interface MediaEntity
public String getExtAltText()
getExtAltText
in interface MediaEntity
public MediaEntity.Variant[] getVideoVariants()
getVideoVariants
in interface MediaEntity
public int compareTo(twitter4j.EntityIndex that)
compareTo
in interface Comparable<twitter4j.EntityIndex>
Copyright © 2018. All rights reserved.