public class MediaEntityJSONImpl extends java.lang.Object implements MediaEntity
MediaEntity.Variant, MediaEntity.VideoInfo| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(twitter4jads.internal.json.EntityIndex that) |
boolean |
equals(java.lang.Object o) |
java.lang.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.
|
java.lang.String |
getExpandedURL()
Returns the expanded URL if mentioned URL is shorten.
|
long |
getId()
Returns the id of the media.
|
java.lang.String |
getMediaURL()
Returns the media URL.
|
java.lang.String |
getMediaURLHttps()
Returns the media secure URL.
|
java.util.Map<java.lang.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.
|
java.lang.String |
getType()
Returns the media type ("photo").
|
java.lang.String |
getURL()
Returns the URL mentioned in the tweet.
|
MediaEntity.VideoInfo |
getVideoInfo() |
int |
hashCode() |
java.lang.String |
toString() |
public long getId()
getId in interface MediaEntitypublic java.lang.String getMediaURL()
getMediaURL in interface MediaEntitypublic java.lang.String getMediaURLHttps()
getMediaURLHttps in interface MediaEntitypublic java.lang.String getURL()
public java.lang.String getDisplayURL()
getDisplayURL in interface URLEntitypublic java.lang.String getExpandedURL()
getExpandedURL in interface URLEntitypublic java.util.Map<java.lang.Integer,MediaEntity.Size> getSizes()
MediaEntitygetSizes in interface MediaEntitypublic MediaEntity.VideoInfo getVideoInfo()
getVideoInfo in interface MediaEntitypublic java.lang.String getType()
getType in interface MediaEntitypublic int getStart()
public int getEnd()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(twitter4jads.internal.json.EntityIndex that)
compareTo in interface java.lang.Comparable<twitter4jads.internal.json.EntityIndex>