List of usage examples for twitter4j MediaEntity getVideoVariants
Variant[] getVideoVariants();
From source file:com.github.jcustenborder.kafka.connect.twitter.StatusConverter.java
License:Apache License
static Struct convertMediaEntity(MediaEntity mediaEntity) { return new Struct(SCHEMA_MEDIA_ENTITY).put("Id", mediaEntity.getId()).put("Type", mediaEntity.getType()) .put("MediaURL", mediaEntity.getMediaURL()).put("Sizes", convertSizes(mediaEntity.getSizes())) .put("MediaURLHttps", mediaEntity.getMediaURLHttps()) .put("VideoAspectRatioWidth", mediaEntity.getVideoAspectRatioWidth()) .put("VideoAspectRatioHeight", mediaEntity.getVideoAspectRatioHeight()) .put("VideoDurationMillis", mediaEntity.getVideoDurationMillis()) .put("VideoVariants", convert(mediaEntity.getVideoVariants())) .put("ExtAltText", mediaEntity.getExtAltText()).put("URL", mediaEntity.getURL()) .put("Text", mediaEntity.getText()).put("ExpandedURL", mediaEntity.getExpandedURL()) .put("Start", mediaEntity.getStart()).put("End", mediaEntity.getEnd()) .put("DisplayURL", mediaEntity.getDisplayURL()); }