Interface FileHandler

    • Method Detail

      • uploadFileAsync

        void uploadFileAsync​(@NotNull
                             java.lang.String channelType,
                             @NotNull
                             java.lang.String channelId,
                             @NotNull
                             java.lang.String userId,
                             @Nullable
                             java.io.File file,
                             @Nullable
                             java.lang.String contentType,
                             @Nullable
                             java.util.function.Consumer<Message.MessageUploadFileResponse> onSuccess,
                             @Nullable
                             java.util.function.Consumer<StreamException> onError)
      • uploadImageAsync

        void uploadImageAsync​(@NotNull
                              java.lang.String channelType,
                              @NotNull
                              java.lang.String channelId,
                              @NotNull
                              java.lang.String userId,
                              @Nullable
                              java.io.File file,
                              @Nullable
                              java.lang.String contentType,
                              @Nullable
                              java.util.List<Message.ImageSizeRequestObject> uploadSizes,
                              @Nullable
                              java.util.function.Consumer<Message.MessageUploadImageResponse> onSuccess,
                              @Nullable
                              java.util.function.Consumer<StreamException> onError)
      • deleteFileAsync

        void deleteFileAsync​(@NotNull
                             java.lang.String channelType,
                             @NotNull
                             java.lang.String channelId,
                             @NotNull
                             java.lang.String url,
                             @Nullable
                             java.util.function.Consumer<StreamResponseObject> onSuccess,
                             @Nullable
                             java.util.function.Consumer<StreamException> onError)
      • deleteImageAsync

        void deleteImageAsync​(@NotNull
                              java.lang.String channelType,
                              @NotNull
                              java.lang.String channelId,
                              @NotNull
                              java.lang.String url,
                              @Nullable
                              java.util.function.Consumer<StreamResponseObject> onSuccess,
                              @Nullable
                              java.util.function.Consumer<StreamException> onError)