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