Interface FileHandler
- All Known Implementing Classes:
DefaultFileHandler
public interface FileHandler
-
Method Summary
Modifier and TypeMethodDescriptiondeleteFile(String channelType, String channelId, String url) voiddeleteFileAsync(String channelType, String channelId, String url, Consumer<StreamResponseObject> onSuccess, Consumer<StreamException> onError) deleteImage(String channelType, String channelId, String url) voiddeleteImageAsync(String channelType, String channelId, String url, Consumer<StreamResponseObject> onSuccess, Consumer<StreamException> onError) voiduploadFileAsync(String channelType, String channelId, String userId, File file, String contentType, Consumer<Message.MessageUploadFileResponse> onSuccess, Consumer<StreamException> onError) uploadImage(String channelType, String channelId, String userId, File file, String contentType, List<Message.ImageSizeRequestObject> uploadSizes) voiduploadImageAsync(String channelType, String channelId, String userId, File file, String contentType, List<Message.ImageSizeRequestObject> uploadSizes, Consumer<Message.MessageUploadImageResponse> onSuccess, Consumer<StreamException> onError)
-
Method Details
-
uploadFile
Message.MessageUploadFileResponse uploadFile(@NotNull String channelType, @NotNull String channelId, @NotNull String userId, @Nullable File file, @Nullable String contentType) throws StreamException - Throws:
StreamException
-
uploadImage
Message.MessageUploadImageResponse uploadImage(@NotNull String channelType, @NotNull String channelId, @NotNull String userId, @Nullable File file, @Nullable String contentType, @Nullable List<Message.ImageSizeRequestObject> uploadSizes) throws StreamException - Throws:
StreamException
-
deleteFile
StreamResponseObject deleteFile(@NotNull String channelType, @NotNull String channelId, @NotNull String url) throws StreamException - Throws:
StreamException
-
deleteImage
StreamResponseObject deleteImage(@NotNull String channelType, @NotNull String channelId, @NotNull String url) throws StreamException - Throws:
StreamException
-
uploadFileAsync
void uploadFileAsync(@NotNull String channelType, @NotNull String channelId, @NotNull String userId, @Nullable File file, @Nullable String contentType, @Nullable Consumer<Message.MessageUploadFileResponse> onSuccess, @Nullable Consumer<StreamException> onError) -
uploadImageAsync
void uploadImageAsync(@NotNull String channelType, @NotNull String channelId, @NotNull String userId, @Nullable File file, @Nullable String contentType, @Nullable List<Message.ImageSizeRequestObject> uploadSizes, @Nullable Consumer<Message.MessageUploadImageResponse> onSuccess, @Nullable Consumer<StreamException> onError) -
deleteFileAsync
void deleteFileAsync(@NotNull String channelType, @NotNull String channelId, @NotNull String url, @Nullable Consumer<StreamResponseObject> onSuccess, @Nullable Consumer<StreamException> onError) -
deleteImageAsync
void deleteImageAsync(@NotNull String channelType, @NotNull String channelId, @NotNull String url, @Nullable Consumer<StreamResponseObject> onSuccess, @Nullable Consumer<StreamException> onError)
-