Package twitter4j.v1
Interface MediaEntity
- All Superinterfaces:
Serializable
,TweetEntity
,URLEntity
- Since:
- Twitter4J 2.2.3
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
sizestatic interface
Variant -
Method Summary
Methods inherited from interface twitter4j.v1.URLEntity
getDisplayURL, getEnd, getExpandedURL, getStart, getText, getURL
-
Method Details
-
getId
long getId()Returns the id of the media.- Returns:
- the id of the media
-
getMediaURL
String getMediaURL()Returns the media URL.- Returns:
- the media URL
-
getMediaURLHttps
String getMediaURLHttps()Returns the media secure URL.- Returns:
- the media secure URL
-
getSizes
Map<Integer,MediaEntity.Size> getSizes()Returns size variations of the media.- Returns:
- size variations of the media
-
getType
String getType()Returns the media type ("photo", "video", "animated_gif").- Returns:
- the media type ("photo", "video", "animated_gif").
-
getVideoAspectRatioWidth
int getVideoAspectRatioWidth()- Returns:
- video aspect ratio width
-
getVideoAspectRatioHeight
int getVideoAspectRatioHeight()- Returns:
- video aspect ratio height
-
getVideoDurationMillis
long getVideoDurationMillis()- Returns:
- video duration in milliseconds
-
getVideoVariants
MediaEntity.Variant[] getVideoVariants()- Returns:
- array of video variants
-
getExtAltText
String getExtAltText()- Returns:
- alt text
-