use of com.fanap.podchat.model.FileImageMetaData in project pod-chat-android-sdk by FanapSoft.
the class ChatCore method createImageMetadata.
private String createImageMetadata(File fileUri, String hashCode, long imageId, int actualHeight, int actualWidth, String mimeType, long fileSize, String path, boolean isLocation, String center) {
String originalName = fileUri.getName();
FileImageMetaData fileMetaData = new FileImageMetaData(imageId, originalName, hashCode, originalName, actualHeight, actualWidth, fileSize, mimeType);
if (!Util.isNullOrEmpty(hashCode)) {
fileMetaData.setLink(getPodSpaceImageUrl(hashCode));
} else {
fileMetaData.setLink(path);
}
String metadata = fileMetaData.getMetaData(isLocation, center);
return metadata;
}
Aggregations