NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
v2_nim_storage_service.hpp
浏览该文件的文档.
1#ifndef V2_NIM_STORAGE_SERVICE_H
2#define V2_NIM_STORAGE_SERVICE_H
3#include "v2_nim_internal.hpp"
4namespace v2 {
15public:
23 virtual void addCustomStorageScene(nstd::string sceneName, uint64_t expireTime) = 0;
24
37
63 virtual void uploadFile(V2NIMUploadFileTask fileTask,
66 V2NIMProgressCallback progress) = 0;
67
86
109 virtual void downloadFile(const nstd::string& url,
110 const nstd::string& savePath,
112 V2NIMFailureCallback failure,
113 V2NIMProgressCallback progress) = 0;
114
129
137
152
177 const V2NIMFailureCallback& failure,
178 const V2NIMProgressCallback& progress) = 0;
179
194 const nstd::optional<V2NIMSize>& thumbSize,
196 const V2NIMFailureCallback& failure) = 0;
197
212 const nstd::optional<V2NIMSize>& thumbSize,
214 const V2NIMFailureCallback& failure) = 0;
215};
216
217} // namespace v2
218
219#endif
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