-
public interface FileUploaderThe FileUploader is responsible for sending and deleting files from given channel
-
-
Method Summary
Modifier and Type Method Description abstract Result<String>sendFile(String channelType, String channelId, String userId, String connectionId, File file, ProgressCallback callback)Uploads a file for the given channel. abstract Result<String>sendFile(String channelType, String channelId, String userId, String connectionId, File file)Uploads a file for the given channel. abstract Result<String>sendImage(String channelType, String channelId, String userId, String connectionId, File file, ProgressCallback callback)Uploads an image for the given channel. abstract Result<String>sendImage(String channelType, String channelId, String userId, String connectionId, File file)Uploads an image for the given channel. abstract Result<Unit>deleteFile(String channelType, String channelId, String userId, String connectionId, String url)Deletes the file represented by url from the given channel. abstract Result<Unit>deleteImage(String channelType, String channelId, String userId, String connectionId, String url)Deletes the image represented by url from the given channel. -
-
Method Detail
-
sendFile
abstract Result<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 Result<String> sendFile(String channelType, String channelId, String userId, String connectionId, File file)
Uploads a file for the given channel.
-
sendImage
abstract Result<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 Result<String> sendImage(String channelType, String channelId, String userId, String connectionId, File file)
Uploads an image for the given channel.
-
deleteFile
abstract Result<Unit> deleteFile(String channelType, String channelId, String userId, String connectionId, String url)
Deletes the file represented by url from the given channel.
-
-
-
-