All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hn.im.easemob.api.FileAPI Maven / Gradle / Ivy

There is a newer version: 1.0.18
Show newest version
package com.hn.im.easemob.api;

/**
 * This interface is created for RestAPI of File Upload and Download, it should
 * be synchronized with the API list.
 * 
 * @author Eric23 2016-01-05
 */
public interface FileAPI {

	/**
	 * 上传文件 
* POST * * @param file * 上传的文件对象,可以是地址、流等,以实现类为准 * @return Object */ Object uploadFile(Object file); /** * 下载文件
* POST * * @param fileUUID * 文件唯一标识,从上传Response-entities-uuid中获取 * @param shareSecret * 文件访问秘钥,从上传Response-entities-share-secret中获取 * @param isThumbnail * ,如果下载图片,是否为缩略图 * @return Object */ Object downloadFile(String fileUUID, String shareSecret, Boolean isThumbnail); /** * 功能描述:下载文件 * @param url 地址 * @return Object */ Object downloadFile(String url); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy