1#ifndef V2_NIM_STORAGE_SERVICE_H
2#define V2_NIM_STORAGE_SERVICE_H
Definition: ne_stl_continuous_container.h:15
Definition: ne_stl_smart_ptr.h:30
Definition: ne_stl_string.h:19
存储服务
Definition: v2_nim_storage_service.hpp:14
virtual void downloadFile(const nstd::string &url, const nstd::string &savePath, V2NIMSuccessCallback< nstd::string > success, V2NIMFailureCallback failure, V2NIMProgressCallback progress)=0
下载文件
virtual void getVideoCoverUrl(const nstd::shared_ptr< V2NIMMessageAttachment > &attachment, const nstd::optional< V2NIMSize > &thumbSize, const V2NIMSuccessCallback< const V2NIMGetMediaResourceInfoResult & > &success, const V2NIMFailureCallback &failure)=0
获取视频消息中的视频封面
virtual void uploadFile(V2NIMUploadFileTask fileTask, V2NIMSuccessCallback< nstd::string > success, V2NIMFailureCallback failure, V2NIMProgressCallback progress)=0
文件上传
virtual void getImageThumbUrl(const nstd::shared_ptr< V2NIMMessageAttachment > &attachment, const nstd::optional< V2NIMSize > &thumbSize, const V2NIMSuccessCallback< const V2NIMGetMediaResourceInfoResult & > &success, const V2NIMFailureCallback &failure)=0
获取图片消息中的图片缩略图
virtual V2NIMUploadFileTask createUploadFileTask(V2NIMUploadFileParams fileParams)=0
创建文件上传任务
virtual nstd::vector< V2NIMStorageScene > getStorageSceneList()=0
查询存储场景列表
virtual void addCustomStorageScene(nstd::string sceneName, uint64_t expireTime)=0
添加自定义存储场景, 需在登录前调用
virtual void cancelUploadFile(V2NIMUploadFileTask fileTask, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
取消文件上传
virtual void shortUrlToLong(const nstd::string &url, V2NIMSuccessCallback< nstd::string > success, V2NIMFailureCallback failure)=0
短链接转长链接
virtual void cancelDownloadFile(const nstd::string &url, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
取消下载任务
virtual void downloadAttachment(const V2NIMDownloadMessageAttachmentParams &downloadParam, const V2NIMSuccessCallback< const nstd::string & > &success, const V2NIMFailureCallback &failure, const V2NIMProgressCallback &progress)=0
下载消息附件
通用成功
Definition: v2_nim_def_callback.hpp:7
Definition: v2_nim_ai_service.hpp:4
Definition: ne_stl_optional.h:16
Definition: ne_stl_bind.h:132
下载消息附件资源请求参数
Definition: v2_nim_def_struct.hpp:2101
Definition: v2_nim_def_struct.hpp:2064
Definition: v2_nim_def_struct.hpp:2071