パッケージ twitter4j.v1
インタフェース MediaEntity
- すべてのスーパーインタフェース:
Serializable
,TweetEntity
,URLEntity
- 導入されたバージョン:
- Twitter4J 2.2.3
-
ネストされたクラスの概要
ネストされたクラス修飾子とタイプインタフェース説明static interface
sizestatic interface
Variant -
メソッドの概要
インタフェースから継承されたメソッド twitter4j.v1.URLEntity
getDisplayURL, getEnd, getExpandedURL, getStart, getText, getURL
-
メソッドの詳細
-
getId
long getId()Returns the id of the media.- 戻り値:
- the id of the media
-
getMediaURL
String getMediaURL()Returns the media URL.- 戻り値:
- the media URL
-
getMediaURLHttps
String getMediaURLHttps()Returns the media secure URL.- 戻り値:
- the media secure URL
-
getSizes
Map<Integer,MediaEntity.Size> getSizes()Returns size variations of the media.- 戻り値:
- size variations of the media
-
getType
String getType()Returns the media type ("photo", "video", "animated_gif").- 戻り値:
- the media type ("photo", "video", "animated_gif").
-
getVideoAspectRatioWidth
int getVideoAspectRatioWidth()- 戻り値:
- video aspect ratio width
-
getVideoAspectRatioHeight
int getVideoAspectRatioHeight()- 戻り値:
- video aspect ratio height
-
getVideoDurationMillis
long getVideoDurationMillis()- 戻り値:
- video duration in milliseconds
-
getVideoVariants
MediaEntity.Variant[] getVideoVariants()- 戻り値:
- array of video variants
-
getExtAltText
String getExtAltText()- 戻り値:
- alt text
-