| | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import cc.shinichi.library.ImagePreview; |
| | | import cc.shinichi.library.bean.ImageInfo; |
| | | import cc.shinichi.library.bean.Type; |
| | | |
| | |
| | | for (ImageResult imageResult:t.getContent().getImages()){ |
| | | ImageBean imageBean = new ImageBean(); |
| | | imageBean.setId(imageResult.getId()); |
| | | imageBean.setWebPath(imageResult.getWebPath()); |
| | | imageBean.setWebPath(imageResult.getWebPathZip()); |
| | | imageBean.setType(UplodFileState.IMG_TYPE); |
| | | images.add(imageBean); |
| | | ImageInfo info = new ImageInfo(); |
| | | info.setOriginUrl(imageResult.getWebPath()); |
| | | info.setType(Type.IMAGE); |
| | | info.setThumbnailUrl(imageResult.getWebPathZip()); |
| | | if (imageResult.getWebPathZip()!=null){ |
| | | info.setThumbnailUrl(imageResult.getWebPathZip()); |
| | | } |
| | | |
| | | imageInfoList.add(info); |
| | | } |
| | | } |
| | |
| | | for (ImageResult imageResult:t.getContent().getVideos()){ |
| | | ImageBean imageBean = new ImageBean(); |
| | | imageBean.setId(imageResult.getId()); |
| | | imageBean.setWebPath(imageResult.getWebPath()); |
| | | imageBean.setWebPath(imageResult.getWebPathZip()); |
| | | imageBean.setType(UplodFileState.VIDEO_TYPE); |
| | | images.add(imageBean); |
| | | ImageInfo info = new ImageInfo(); |
| | | info.setOriginUrl(imageResult.getWebPath()); |
| | | info.setThumbnailUrl(imageResult.getWebPath()); |
| | | info.setThumbnailUrl(imageResult.getWebPathZip()); |
| | | if (imageResult.getWebPathZip()!=null){ |
| | | info.setThumbnailUrl(imageResult.getWebPathZip()); |
| | | } |
| | | info.setType(Type.VIDEO); |
| | | imageInfoList.add(info); |
| | | } |