use of io.swagger.client.model.PostImageResize in project android-client by GenesisVision.
the class MediaPostShortView method setImage.
private void setImage(MediaPost post) {
String logoUrl = post.getImage().getResizes().get(post.getImage().getResizes().size() - 1).getLogoUrl();
for (PostImageResize resize : post.getImage().getResizes()) {
if (resize.getQuality().equals(ImageQuality.HIGH)) {
logoUrl = resize.getLogoUrl();
}
}
this.image.setImageURI(ImageUtils.getImageUri(logoUrl));
}
Aggregations