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()
MediaEntitygetId in interface MediaEntitypublic String getMediaURL()
MediaEntitygetMediaURL in interface MediaEntitypublic String getMediaURLHttps()
MediaEntitygetMediaURLHttps in interface MediaEntitypublic String getText()
URLEntityURLEntity.getURL()getText in interface TweetEntitygetText in interface URLEntitypublic String getURL()
URLEntitypublic String getDisplayURL()
URLEntitygetDisplayURL in interface URLEntitypublic String getExpandedURL()
URLEntitygetExpandedURL in interface URLEntitypublic Map<Integer,MediaEntity.Size> getSizes()
MediaEntitygetSizes in interface MediaEntitypublic String getType()
MediaEntitygetType in interface MediaEntitypublic int getStart()
URLEntitygetStart in interface TweetEntitygetStart in interface URLEntitypublic int getEnd()
URLEntitygetEnd in interface TweetEntitygetEnd in interface URLEntitypublic int getVideoAspectRatioWidth()
getVideoAspectRatioWidth in interface MediaEntitypublic int getVideoAspectRatioHeight()
getVideoAspectRatioHeight in interface MediaEntitypublic long getVideoDurationMillis()
getVideoDurationMillis in interface MediaEntitypublic String getExtAltText()
getExtAltText in interface MediaEntitypublic MediaEntity.Variant[] getVideoVariants()
getVideoVariants in interface MediaEntitypublic int compareTo(twitter4j.EntityIndex that)
compareTo in interface Comparable<twitter4j.EntityIndex>Copyright © 2018. All rights reserved.