7#ifndef _NIM_SDK_CPP_TALKEX_HELPER_QUICK_COMMENT_H_
8#define _NIM_SDK_CPP_TALKEX_HELPER_QUICK_COMMENT_H_
52 static void FromJsonString(
const std::string& json_info,
QuickCommentInfo& info);
69 bool AddMessage(
const IMMessage& message) {
70 if (message_list.size() > 20)
72 if (std::find_if(message_list.begin(), message_list.end(), [&](
const IMMessage& it) {
73 return message.client_msg_id_.compare(it.client_msg_id_) == 0;
74 }) != message_list.end())
76 message_list.emplace_back(message);
88 std::string message_client_id;
89 std::list<QuickCommentInfo> quick_comment_list;
91 std::list<QueryQuickCommentsResponseItem> message_quick_comment_list;
Represents a JSON value.
Definition: value.h:196
Definition: nim_talk_helper.h:281