パッケージ twitter4j.v1

インタフェース MediaEntity

すべてのスーパーインタフェース:
Serializable, TweetEntity, URLEntity

public interface MediaEntity extends URLEntity
導入されたバージョン:
Twitter4J 2.2.3
  • メソッドの詳細

    • 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

      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