-
public interface FileUploaderThe FileUploader is responsible for sending and deleting files from given channel
-
-
Method Summary
Modifier and Type Method Description abstract UnitsendFile(String channelType, String channelId, String userId, String connectionId, File file, ProgressCallback callback)Sends file to given channel. abstract StringsendFile(String channelType, String channelId, String userId, String connectionId, File file)Sends file to given channel. abstract UnitsendImage(String channelType, String channelId, String userId, String connectionId, File file, ProgressCallback callback)Sends image to given channel. abstract StringsendImage(String channelType, String channelId, String userId, String connectionId, File file)Sends image to given channel abstract UnitdeleteFile(String channelType, String channelId, String userId, String connectionId, String url)Deletes file represented by url from given channel abstract UnitdeleteImage(String channelType, String channelId, String userId, String connectionId, String url)Deletes image represented by url from given channel -
-
Method Detail
-
sendFile
abstract Unit sendFile(String channelType, String channelId, String userId, String connectionId, File file, ProgressCallback callback)
Sends file to given channel. Progress can be accessed via callback
-
sendFile
abstract String sendFile(String channelType, String channelId, String userId, String connectionId, File file)
Sends file to given channel.
-
sendImage
abstract Unit sendImage(String channelType, String channelId, String userId, String connectionId, File file, ProgressCallback callback)
Sends image to given channel. Progress can be accessed via callback
-
sendImage
abstract String sendImage(String channelType, String channelId, String userId, String connectionId, File file)
Sends image to given channel
-
deleteFile
abstract Unit deleteFile(String channelType, String channelId, String userId, String connectionId, String url)
Deletes file represented by url from given channel
-
-
-
-