Go to the documentation of this file.
7 #ifndef _NIM_SDK_CPP_NOS_HELPER_H_
8 #define _NIM_SDK_CPP_NOS_HELPER_H_
14 #include "nim_define_include.h"
31 void AddTag(
const std::string& tag, int32_t survival_time) {
32 tag_list_[tag] = ((survival_time == 0) ? (0) : (survival_time > kMINSURVIVALTIME ? survival_time : kMINSURVIVALTIME));
38 void RemoveTag(
const std::string& tag) { tag_list_.erase(tag); }
42 std::map<std::string, int32_t>
GetTagList()
const {
return tag_list_; }
47 void SetGetExtension(
const std::string& json_extension) { json_extension_ = json_extension; }
56 std::map<std::string, int32_t> tag_list_;
57 std::string json_extension_;
66 void FromJsonString(
const std::string& json_data);
104 NIM_SDK_CPPWRAPPER_DLL_API
bool ParseUploadResult(
const std::string& url,
const std::string& json, UploadMediaResult& res);
116 const std::string& call_id,
117 const std::string& res_id,
118 DownloadMediaResult& res);
126 NIM_SDK_CPPWRAPPER_DLL_API
bool ParseProgressData(
const std::string& json, ProgressData& res);
130 #endif //_NIM_SDK_CPP_NOS_HELPER_H_
std::list< std::string > ignore_req_tags_
Definition: nim_nos_helper.h:65
std::string GetExtension() const
Definition: nim_nos_helper.h:51
NIMNosInitConfigResultType result_
Definition: nim_nos_helper.h:62
NIM_SDK_CPPWRAPPER_DLL_API bool ParseDownloadResult(const std::string &file_path, const std::string &call_id, const std::string &res_id, DownloadMediaResult &res)
解析NOS上传过程数据
初始化结果
Definition: nim_nos_helper.h:61
std::map< std::string, int32_t > GetTagList() const
Definition: nim_nos_helper.h:42
InitNosConfigParam()
Definition: nim_nos_helper.h:25
ProgressData()
Definition: nim_nos_helper.h:94
NIM_SDK_CPPWRAPPER_DLL_API bool ParseUploadResult(const std::string &url, const std::string &json, UploadMediaResult &res)
解析NOS上传结果
void AddTag(const std::string &tag, int32_t survival_time)
Definition: nim_nos_helper.h:31
static const int32_t kMINSURVIVALTIME
Definition: nim_nos_helper.h:53
NIM_SDK_CPPWRAPPER_DLL_API bool ParseProgressData(const std::string &json, ProgressData &res)
解析NOS上传过程数据
传输过程中的数据
Definition: nim_nos_helper.h:90
初始化nos参数
Definition: nim_nos_helper.h:23
std::map< std::string, int > failure_req_tags_
Definition: nim_nos_helper.h:64
void SetGetExtension(const std::string &json_extension)
Definition: nim_nos_helper.h:47
std::list< std::string > success_req_tags_
Definition: nim_nos_helper.h:63
std::string res_id_
Definition: nim_nos_helper.h:91
void RemoveTag(const std::string &tag)
Definition: nim_nos_helper.h:38