NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_qchat_system_notification_cpp_def.h
浏览该文件的文档.
1
11#ifndef __NIM_QCHAT_SYSTEM_NOTIFICATION_CPP_DEF_H__
12#define __NIM_QCHAT_SYSTEM_NOTIFICATION_CPP_DEF_H__
13
15
19
20namespace nim {
21
26
34
44
52
60
68
76
84
92
110
126
139
155
169
177
185
207
211 uint64_t server_id{0};
213 uint64_t channel_id{0};
215 std::vector<std::string> accids;
222 server_id = c_param.server_id;
223 channel_id = c_param.channel_id;
224 for (size_t i = 0; i < c_param.accids_count; i++)
225 accids.push_back(c_param.accids[i]);
226 type = c_param.type;
227 ope_type = c_param.ope_type;
228 }
229};
230
234 uint64_t server_id = 0;
236 uint64_t channel_id = 0;
238 std::string msg_sender_accid;
240 uint64_t msg_server_id{0};
242 uint64_t msg_timestamp{0};
244 uint64_t type{0};
248 std::string operator_accid;
251 server_id = c_param.server_id;
252 channel_id = c_param.channel_id;
253 msg_sender_accid = c_param.msg_sender_accid;
254 msg_server_id = c_param.msg_server_id;
255 msg_timestamp = c_param.msg_timestamp;
256 type = c_param.type;
257 operate_type = c_param.operate_type;
258 operator_accid = c_param.operator_accid;
259 }
260};
261
271
281
284
306
330
334 uint64_t server_id{0};
336 uint64_t role_id{0};
338 std::vector<std::string> accids;
341 server_id = c_param.server_id;
342 role_id = c_param.role_id;
343 for (size_t i = 0; i < c_param.accids_count; i++)
344 accids.push_back(c_param.accids[i]);
345 }
346};
347
350
354 uint64_t server_id{0};
356 uint64_t role_id{0};
358 QChatPermission permissions{};
361 server_id = c_param.server_id;
362 role_id = c_param.role_id;
363 for (size_t i = 0; i < c_param.permissions_count; i++) {
364 auto permission = c_param.permissions[i].permission;
365 auto option = c_param.permissions[i].option;
366 permissions.emplace(permission, option);
367 }
368 }
369};
370
374 uint64_t server_id{0};
376 uint64_t channel_id{0};
378 uint64_t parent_role_id{0};
380 uint64_t role_id{0};
382 QChatPermission permissions{};
385 server_id = c_param.server_id;
386 channel_id = c_param.channel_id;
387 parent_role_id = c_param.parent_role_id;
388 role_id = c_param.role_id;
389 for (size_t i = 0; i < c_param.permissions_count; i++) {
390 auto permission = c_param.permissions[i].permission;
391 auto option = c_param.permissions[i].option;
392 permissions.emplace(permission, option);
393 }
394 }
395};
396
400 uint64_t server_id{0};
402 uint64_t channel_id{0};
404 std::string accid;
406 QChatPermission permissions{};
409 server_id = c_param.server_id;
410 channel_id = c_param.channel_id;
411 accid = c_param.accid;
412 for (size_t i = 0; i < c_param.permissions_count; i++) {
413 auto permission = c_param.permissions[i].permission;
414 auto option = c_param.permissions[i].option;
415 permissions.emplace(permission, option);
416 }
417 }
418};
419
429
437
453
463
467 uint64_t server_id;
469 bool nick_changed{false};
471 std::string nick;
473 bool avatar_changed{false};
475 std::string avatar;
478 server_id = c_param.server_id;
479 if (c_param.nick) {
480 nick_changed = true;
481 nick = c_param.nick;
482 }
483 if (c_param.avatar) {
484 avatar_changed = true;
485 avatar = c_param.avatar;
486 }
487 }
488};
489
501
502template <typename CPP_TYPE, typename C_TYPE>
503static std::shared_ptr<QChatSystemNotificationDataBase> MsgDataCPPToC(void* c_msg_data) {
504 return std::make_shared<CPP_TYPE>(*(C_TYPE*)c_msg_data);
505};
506// clang-format off
507static std::map<NIMQChatSystemNotificationType, std::function<std::shared_ptr<QChatSystemNotificationDataBase>(void*)>> msg_data_transform_map_{
508 {kNIMQChatSystemNotificationTypeMemberInvite, MsgDataCPPToC<QChatSystemNotificationDataServerInvite, NIMQChatSystemNotificationDataServerInvite>},
509 {kNIMQChatSystemNotificationTypeMemberInviteReject, MsgDataCPPToC<QChatSystemNotificationDataServerInviteReject, NIMQChatSystemNotificationDataServerInviteReject>},
510 {kNIMQChatSystemNotificationTypeMemberApply, MsgDataCPPToC<QChatSystemNotificationDataServerApply, NIMQChatSystemNotificationDataServerApply>},
511 {kNIMQChatSystemNotificationTypeMemberApplyReject, MsgDataCPPToC<QChatSystemNotificationDataServerApplyReject, NIMQChatSystemNotificationDataServerApplyReject>},
512 {kNIMQChatSystemNotificationTypeServerCreate, MsgDataCPPToC<QChatSystemNotificationDataServerCreate, NIMQChatSystemNotificationDataServerCreate>},
513 {kNIMQChatSystemNotificationTypeServerUpdate, MsgDataCPPToC<QChatSystemNotificationDataServerUpdate, NIMQChatSystemNotificationDataServerUpdate>},
514 {kNIMQChatSystemNotificationTypeChannelCreate, MsgDataCPPToC<QChatSystemNotificationDataChannelCreate, NIMQChatSystemNotificationDataChannelCreate>},
515 {kNIMQChatSystemNotificationTypeChannelUpdate, MsgDataCPPToC<QChatSystemNotificationDataChannelUpdate, NIMQChatSystemNotificationDataChannelUpdate>},
516 {kNIMQChatSystemNotificationTypeMemberInviteDone, MsgDataCPPToC<QChatSystemNotificationDataMemberInviteDone, NIMQChatSystemNotificationDataMemberInviteDone>},
517 {kNIMQChatSystemNotificationTypeMemberInviteAccept, MsgDataCPPToC<QChatSystemNotificationDataMemberInviteAccept, NIMQChatSystemNotificationDataMemberInviteAccept>},
518 {kNIMQChatSystemNotificationTypeMemberApplyDone, MsgDataCPPToC<QChatSystemNotificationDataMemberApplyDone, NIMQChatSystemNotificationDataMemberApplyDone>},
519 {kNIMQChatSystemNotificationTypeMemberApplyAccept, MsgDataCPPToC<QChatSystemNotificationDataMemberApplyAccept, NIMQChatSystemNotificationDataMemberApplyAccept>},
520 {kNIMQChatSystemNotificationTypeMemberKick, MsgDataCPPToC<QChatSystemNotificationDataMemberKick, NIMQChatSystemNotificationDataMemberKick>},
521 {kNIMQChatSystemNotificationTypeMemberLeave, MsgDataCPPToC<QChatSystemNotificationDataMemberLeave, NIMQChatSystemNotificationDataMemberLeave>},
522 {kNIMQChatSystemNotificationTypeMemberUpdate, MsgDataCPPToC<QChatSystemNotificationDataMemberUpdate, NIMQChatSystemNotificationDataMemberUpdate>},
523 {kNIMQChatSystemNotificationTypeWhiteBlackRoleUpdate, MsgDataCPPToC<QChatSystemNotificationDataWhiteBlackRoleUpdate, NIMQChatSystemNotificationDataWhiteBlackRoleUpdate>},
524 {kNIMQChatSystemNotificationTypeWhiteBlackMembersUpdate, MsgDataCPPToC<QChatSystemNotificationDataWhiteBlackMembersUpdate, NIMQChatSystemNotificationDataWhiteBlackMembersUpdate>},
525 {kNIMQChatSystemNotificationTypeQuickCommentChanged, MsgDataCPPToC<QChatSystemNotificationDataQuickCommentChanged, NIMQChatSystemNotificationDataQuickCommentChanged>},
526 {kNIMQChatSystemNotificationTypeChannelCategoryCreate, MsgDataCPPToC<QChatSystemNotificationDataChannelCategoryCreate, NIMQChatSystemNotificationDataChannelCategoryCreate>},
527 {kNIMQChatSystemNotificationTypeChannelCategoryRemove, MsgDataCPPToC<QChatSystemNotificationDataChannelCategoryRemove, NIMQChatSystemNotificationDataChannelCategoryRemove>},
528 {kNIMQChatSystemNotificationTypeChannelCategoryUpdate, MsgDataCPPToC<QChatSystemNotificationDataChannelCategoryUpdate, NIMQChatSystemNotificationDataChannelCategoryUpdate>},
529 {kNIMQChatSystemNotificationTypeChannelCategoryWhiteBlackRoleUpdate, MsgDataCPPToC<QChatSystemNotificationDataChannelCategoryWhiteBlackRoleUpdate, NIMQChatSystemNotificationDataChannelCategoryWhiteBlackRoleUpdate>},
530 {kNIMQChatSystemNotificationTypeChannelCategoryWhiteBlackMembersUpdate, MsgDataCPPToC<QChatSystemNotificationDataChannelCategoryWhiteBlackMembersUpdate, NIMQChatSystemNotificationDataChannelCategoryWhiteBlackMembersUpdate>},
531 {kNIMQChatSystemNotificationTypeServerRoleAddMember, MsgDataCPPToC<QChatSystemNotificationDataServerRoleAddMember, NIMQChatSystemNotificationDataServerRoleAddMember>},
532 {kNIMQChatSystemNotificationTypeServerRoleRemoveMember, MsgDataCPPToC<QChatSystemNotificationDataServerRoleRemoveMember, NIMQChatSystemNotificationDataServerRoleRemoveMember>},
533 {kNIMQChatSystemNotificationTypeServerRolePermissionChange, MsgDataCPPToC<QChatSystemNotificationDataServerRolePermissionChange, NIMQChatSystemNotificationDataServerRolePermissionChange>},
534 {kNIMQChatSystemNotificationTypeChannelRolePermissionChange, MsgDataCPPToC<QChatSystemNotificationDataChannelRolePermissionChange, NIMQChatSystemNotificationDataChannelRolePermissionChange>},
535 {kNIMQChatSystemNotificationTypeMemberRolePermissionChange, MsgDataCPPToC<QChatSystemNotificationDataMemberRolePermissionChange, NIMQChatSystemNotificationDataMemberRolePermissionChange>},
536 {kNIMQChatSystemNotificationTypeChannelVisibilityChange, MsgDataCPPToC<QChatSystemNotificationDataChannelVisibilityChange, NIMQChatSystemNotificationDataChannelVisibilityChange>},
537 {kNIMQChatSystemNotificationTypeServerEnterLeave, MsgDataCPPToC<QChatSystemNotificationDataServerEnterLeave, NIMQChatSystemNotificationDataServerEnterLeave>},
538 {kNIMQChatSystemNotificationTypeServerJoinByInviteCode, MsgDataCPPToC<QChatSystemNotificationDataServerJoinByInviteCode, NIMQChatSystemNotificationDataServerJoinByInviteCode>},
539 {kNIMQChatSystemNotificationTypeChannelVisitorVisibilityChange, MsgDataCPPToC<QChatSystemNotificationDataChannelVisitorVisibilityChange, NIMQChatSystemNotificationDataChannelVisitorVisibilityChange>},
540 {kNIMQChatSystemNotificationTypeMyMemberInfoUpdated, MsgDataCPPToC<QChatSystemNotificationDataMyMemberInfoUpdated, NIMQChatSystemNotificationDataMyMemberInfoUpdated>},
541};
542// clang-format on
543
547 uint64_t server_id{0};
549 uint64_t channel_id{0};
551 std::string msg_id{""};
555 std::string msg_body{""};
557 std::string msg_attach{""};
559 std::string msg_ext{""};
561 bool resend_flag{false};
563 std::vector<std::string> to_accids{};
565 bool history_enable{false};
567 std::string push_payload{""};
569 std::string push_content{""};
571 bool push_enable{false};
573 bool need_badge{true};
575 bool need_push_nick{true};
577 bool route_enable{true};
579 std::string env{""};
580 // 以下字段仅在收到消息时有效
586 uint64_t msg_server_id{0};
588 std::string from_accid{""};
590 uint32_t from_client_type{0};
592 std::string from_device_id{""};
594 std::string from_nick{""};
596 uint64_t timestamp{0};
598 uint64_t update_timestamp{0};
600 std::shared_ptr<QChatSystemNotificationDataBase> msg_data{nullptr};
602 std::string callback_ext{""};
605 to_type = c_param.to_type;
606 server_id = c_param.server_id;
607 channel_id = c_param.channel_id;
608 msg_id = c_param.msg_id ? c_param.msg_id : "";
609 msg_type = c_param.msg_type;
610 msg_body = c_param.msg_body ? c_param.msg_body : "";
611 msg_attach = c_param.msg_attach ? c_param.msg_attach : "";
612 msg_ext = c_param.msg_ext ? c_param.msg_ext : "";
613 resend_flag = c_param.resend_flag;
614 if (c_param.to_accids)
615 nim::JsonArrayStringToList(c_param.to_accids, to_accids);
616 route_enable = c_param.route_enable;
617 env = c_param.env ? c_param.env : "";
618 // fill by server
619 status = c_param.status;
620 history_enable = c_param.history_enable;
621 push_payload = c_param.push_payload ? c_param.push_payload : "";
622 push_content = c_param.push_content ? c_param.push_content : "";
623 push_enable = c_param.push_enable;
624 need_badge = c_param.need_badge;
625 need_push_nick = c_param.need_push_nick;
626 msg_server_id = c_param.msg_server_id;
627 from_accid = c_param.from_accid ? c_param.from_accid : "";
628 from_client_type = c_param.from_client_type;
629 from_device_id = c_param.from_device_id ? c_param.from_device_id : "";
630 from_nick = c_param.from_nick ? c_param.from_nick : "";
631 timestamp = c_param.timestamp;
632 update_timestamp = c_param.update_timestamp;
633 if (c_param.msg_data) {
634 auto iter = msg_data_transform_map_.find(msg_type);
635 if (iter != msg_data_transform_map_.end()) {
636 msg_data = iter->second(c_param.msg_data);
637 }
638 }
639 callback_ext = c_param.callback_ext ? c_param.callback_ext : "";
640 }
642 nim::StrListToJsonString(to_accids, to_accids_json_array);
643 NIMQChatSystemNotification c_param = {};
644 c_param.to_type = to_type;
645 c_param.server_id = server_id;
646 c_param.channel_id = channel_id;
647 c_param.msg_id = const_cast<char*>(msg_id.c_str());
648 c_param.msg_type = msg_type;
649 c_param.msg_body = const_cast<char*>(msg_body.c_str());
650 c_param.msg_attach = const_cast<char*>(msg_attach.c_str());
651 c_param.msg_ext = const_cast<char*>(msg_ext.c_str());
652 c_param.resend_flag = resend_flag;
653 c_param.to_accids = const_cast<char*>(to_accids_json_array.c_str());
654 c_param.history_enable = history_enable;
655 c_param.push_payload = const_cast<char*>(push_payload.c_str());
656 c_param.push_content = const_cast<char*>(push_content.c_str());
657 c_param.push_enable = push_enable;
658 c_param.need_badge = need_badge;
659 c_param.need_push_nick = need_push_nick;
660 c_param.route_enable = route_enable;
661 c_param.env = const_cast<char*>(env.c_str());
662 // fill by server
663 c_param.status = status;
664 c_param.msg_server_id = msg_server_id;
665 c_param.from_accid = const_cast<char*>(from_accid.c_str());
666 c_param.from_client_type = from_client_type;
667 c_param.from_device_id = const_cast<char*>(from_device_id.c_str());
668 c_param.from_nick = const_cast<char*>(from_nick.c_str());
669 c_param.timestamp = timestamp;
670 c_param.update_timestamp = update_timestamp;
671 c_param.callback_ext = const_cast<char*>(callback_ext.c_str());
672 return c_param;
673 }
674 void AdaptToType() {
675 if (!to_accids.empty()) {
676 if (channel_id != 0) {
678 } else if (server_id != 0) {
680 } else {
682 }
683 } else {
684 if (channel_id != 0) {
686 } else if (server_id != 0) {
688 }
689 }
690 }
691
692protected:
693 // 以下字段为内部使用
694 mutable std::string to_accids_json_array;
695};
696
700 uint64_t server_id{0};
702 uint64_t channel_id{0};
704 std::string extension{""};
705 // 以下字段仅在收到事件时有效
707 std::string from_accid{""};
709 std::string from_nick{""};
711 uint64_t timestamp{0};
712 QChatTypingEvent() = default;
714 server_id = c_param.server_id;
715 channel_id = c_param.channel_id;
716 extension = c_param.extension ? c_param.extension : "";
717 from_accid = c_param.from_accid ? c_param.from_accid : "";
718 from_nick = c_param.from_nick ? c_param.from_nick : "";
719 timestamp = c_param.timestamp;
720 }
722 NIMQChatTypingEvent c_param = {};
723 c_param.server_id = server_id;
724 c_param.channel_id = channel_id;
725 c_param.extension = const_cast<char*>(extension.c_str());
726 c_param.from_accid = const_cast<char*>(from_accid.c_str());
727 c_param.from_nick = const_cast<char*>(from_nick.c_str());
728 c_param.timestamp = timestamp;
729 return c_param;
730 }
731};
732
745
760
764 uint32_t res_code{0};
769 res_code = c_resp.res_code;
770 if (c_resp.res_code != kNIMResSuccess)
771 return;
772 notification = c_resp.notification;
773 }
776 c_resp.res_code = res_code;
777 c_resp.notification = notification.ToCParam();
778 return c_resp;
779 }
780};
781
785 uint32_t res_code{0};
790 res_code = c_resp.res_code;
791 if (c_resp.res_code != kNIMResSuccess)
792 return;
793 notification = c_resp.notification;
794 }
797 c_resp.res_code = res_code;
798 c_resp.notification = notification.ToCParam();
799 return c_resp;
800 }
801};
802
805
808
816
820 uint32_t res_code{0};
822 QChatTypingEvent typing_event{};
825 res_code = c_resp.res_code;
826 if (c_resp.res_code != kNIMResSuccess)
827 return;
828 typing_event = c_resp.typing_event;
829 }
831 NIMQChatSendTypingEventResp c_resp = {};
832 c_resp.res_code = res_code;
833 c_resp.typing_event = typing_event.ToCParam();
834 return c_resp;
835 }
836};
837
849typedef std::function<void(const QChatRecvTypingEventResp&)> RecvTypingEventCallback;
851typedef std::function<void(const QChatSendTypingEventResp&)> SendTypingEventCallback;
852
858 static RecvSystemNotificationCallback cb_holder = nullptr;
859 cb_holder = cb;
861 param.cb = [](const NIMQChatRecvSystemNotificationResp* resp) {
862 if (cb_holder)
863 cb_holder(*resp);
864 };
865 return param;
866 }
867};
868
874 static SystemNotificationUpdatedCallback cb_holder = nullptr;
875 cb_holder = cb;
877 param.cb = [](const NIMQChatSystemNotificationUpdatedResp* resp) {
878 if (cb_holder)
879 cb_holder(*resp);
880 };
881 return param;
882 }
883};
884
893 notification = c_param.notification;
894 cb = [c_param](const QChatSendSystemNotificationResp& response) {
895 auto c_response = response.ToCParam();
896 c_response.user_data = c_param.user_data;
897 c_param.cb(&c_response);
898 };
899 }
901 auto cb_holder = new SendSystemNotificationCallback(cb);
903 param.user_data = cb_holder;
904 param.cb = [](const NIMQChatSendSystemNotificationResp* resp) {
905 InvokeCallback<SendSystemNotificationCallback, NIMQChatSendSystemNotificationResp>(resp);
906 };
907 param.notification = notification.ToCParam();
908 return param;
909 }
910};
911
917 uint64_t msg_server_id{0};
923 std::string msg_body;
925 std::string msg_ext;
930 msg_server_id = c_param.msg_server_id;
931 msg_type = c_param.msg_type;
932 status = c_param.status;
933 msg_body = c_param.msg_body;
934 msg_ext = c_param.msg_ext;
935 update_info = c_param.update_info;
936 cb = [c_param](const QChatUpdateSystemNotificationResp& response) {
937 auto c_response = response.ToCParam();
938 c_response.user_data = c_param.user_data;
939 c_param.cb(&c_response);
940 };
941 }
943 auto cb_holder = new UpdateSystemNotificationCallback(cb);
945 param.user_data = cb_holder;
946 param.cb = [](const NIMQChatUpdateSystemNotificationResp* resp) {
947 InvokeCallback<UpdateSystemNotificationCallback, NIMQChatUpdateSystemNotificationResp>(resp);
948 };
949 param.msg_server_id = msg_server_id;
950 param.msg_type = msg_type;
951 param.status = status;
952 param.msg_body = const_cast<char*>(msg_body.c_str());
953 param.msg_ext = const_cast<char*>(msg_ext.c_str());
954 param.update_info = update_info.ToCParam();
955 return param;
956 }
957};
958
962 std::vector<NIMQChatSystemNotificationMarkReadInfo> mark_read_infos{};
965 for (size_t i = 0; i < c_param.mark_read_infos_count; i++) {
966 mark_read_infos.push_back(c_param.mark_read_infos[i]);
967 }
968 cb = [c_param](const QChatMarkSystemNotificationsReadResp& response) {
969 auto c_response = response.ToCParam();
970 c_response.user_data = c_param.user_data;
971 c_param.cb(&c_response);
972 };
973 }
975 auto cb_holder = new MarkReadSystemNotificationCallback(cb);
977 param.user_data = cb_holder;
978 param.cb = [](const NIMQChatMarkReadSystemNotificationResp* resp) {
979 InvokeCallback<MarkReadSystemNotificationCallback, NIMQChatMarkReadSystemNotificationResp>(resp);
980 };
981 param.mark_read_infos_count = mark_read_infos.size();
982 param.mark_read_infos = const_cast<NIMQChatSystemNotificationMarkReadInfo*>(mark_read_infos.data());
983 return param;
984 }
985};
986
992 static RecvTypingEventCallback cb_holder = nullptr;
993 cb_holder = cb;
995 param.cb = [](const NIMQChatRecvTypingEventResp* resp) {
996 if (cb_holder)
997 cb_holder(*resp);
998 };
999 return param;
1000 }
1001};
1002
1008 QChatTypingEvent typing_event{};
1011 typing_event = c_param.typing_event;
1012 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatSendTypingEventResp& resp) {
1013 NIMQChatSendTypingEventResp c_response = resp.ToCParam();
1014 c_response.user_data = user_data;
1015 c_callback(&c_response);
1016 };
1017 }
1019 auto cb_holder = new SendTypingEventCallback(cb);
1021 param.user_data = cb_holder;
1022 param.cb = [](const NIMQChatSendTypingEventResp* resp) {
1023 InvokeCallback<SendTypingEventCallback, NIMQChatSendTypingEventResp>(resp);
1024 };
1025 param.typing_event = typing_event.ToCParam();
1026 return param;
1027 }
1028};
1029
1030} // namespace nim
1031
1032#endif // __NIM_QCHAT_SYSTEM_NOTIFICATION_CPP_DEF_H__
namespace nim
std::function< void(const QChatRecvTypingEventResp &) RecvTypingEventCallback)
接收圈组正在输入事件回调
Definition nim_qchat_system_notification_cpp_def.h:849
bool StrListToJsonString(const std::list< std::string > &list, std::string &out)
将一个string类型的list组装成一个Json Array
Definition nim_json_util.cpp:12
std::map< uint32_t, NIMQChatPermissionsOption > QChatPermission
Definition nim_qchat_role_cpp_def.h:21
std::function< void(const QChatSendTypingEventResp &) SendTypingEventCallback)
发送圈组正在输入事件回调
Definition nim_qchat_system_notification_cpp_def.h:851
bool JsonArrayStringToList(const std::string &array_str, std::list< std::string > &out)
将一个string类型的Json Array解析成一个string类型的list
Definition nim_json_util.cpp:54
std::function< void(const QChatUpdateSystemNotificationResp &) UpdateSystemNotificationCallback)
更新系统通知回调
Definition nim_qchat_system_notification_cpp_def.h:845
static std::shared_ptr< QChatSystemNotificationDataBase > MsgDataCPPToC(void *c_msg_data)
Definition nim_qchat_system_notification_cpp_def.h:503
std::function< void(const QChatSendSystemNotificationResp &) SendSystemNotificationCallback)
发送系统消息回调
Definition nim_qchat_system_notification_cpp_def.h:841
std::function< void(const QChatSystemNotificationUpdatedResp &) SystemNotificationUpdatedCallback)
消息更新回调
Definition nim_qchat_system_notification_cpp_def.h:843
std::function< void(const QChatRecvSystemNotificationResp &) RecvSystemNotificationCallback)
接收系统消息回调
Definition nim_qchat_system_notification_cpp_def.h:839
std::function< void(const QChatMarkSystemNotificationsReadResp &) MarkReadSystemNotificationCallback)
标记系统通知消息已读回调函数
Definition nim_qchat_system_notification_cpp_def.h:847
static std::map< NIMQChatSystemNotificationType, std::function< std::shared_ptr< QChatSystemNotificationDataBase >(void *)> msg_data_transform_map_)
Definition nim_qchat_system_notification_cpp_def.h:507
NIMQChatChannelWhiteBlackOpeType
Definition nim_qchat_channel_def.h:52
NIMQChatChannelWhiteBlackType
Definition nim_qchat_channel_def.h:46
NIMQChatQuickCommentOperation
Definition nim_qchat_message_def.h:70
#define NIM_QCHAT_SDK_CPPWRAPPER_DLL_API
Definition nim_qchat_sdk_cpp_wrapper.h:38
NIMQChatSystemNotificationType
Definition nim_qchat_system_notification_def.h:34
@ kNIMQChatSystemNotificationTypeMemberInvite
服务器成员邀请 msg_data: NULL
Definition nim_qchat_system_notification_def.h:38
@ kNIMQChatSystemNotificationTypeChannelCategoryRemove
删除频道分组 msg_data: NIMQChatSystemNotificationDataChannelCategoryRemove
Definition nim_qchat_system_notification_def.h:80
@ kNIMQChatSystemNotificationTypeChannelCreate
频道创建 msg_data: NIMQChatSystemNotificationDataChannelCreate
Definition nim_qchat_system_notification_def.h:66
@ kNIMQChatSystemNotificationTypeMemberRolePermissionChange
频道个人定制权限变更 msg_data: NIMQChatSystemNotificationDataMemberRolePermissionChange
Definition nim_qchat_system_notification_def.h:96
@ kNIMQChatSystemNotificationTypeServerRoleRemoveMember
服务器身份组移出成员 msg_data: NIMQChatSystemNotificationDataServerRoleRemoveMember
Definition nim_qchat_system_notification_def.h:90
@ kNIMQChatSystemNotificationTypeServerUpdate
服务器更新 msg_data: NIMQChatSystemNotificationDataServerUpdate
Definition nim_qchat_system_notification_def.h:50
@ kNIMQChatSystemNotificationTypeMemberUpdate
服务器成员更新 msg_data: NIMQChatSystemNotificationDataMemberUpdate
Definition nim_qchat_system_notification_def.h:64
@ kNIMQChatSystemNotificationTypeMemberApplyReject
服务器成员申请被拒绝 msg_data: NULL
Definition nim_qchat_system_notification_def.h:44
@ kNIMQChatSystemNotificationTypeMemberApplyDone
服务器成员申请完成 msg_data: NIMQChatSystemNotificationDataMemberApplyDone
Definition nim_qchat_system_notification_def.h:56
@ kNIMQChatSystemNotificationTypeWhiteBlackRoleUpdate
频道白/黑名单身份组更新 msg_data: NIMQChatSystemNotificationDataWhiteBlackRoleUpdate
Definition nim_qchat_system_notification_def.h:72
@ kNIMQChatSystemNotificationTypeChannelVisitorVisibilityChange
频道对游客可见性变更 msg_data: NIMQChatSystemNotificationDataChannelVisitorVisibilityChange
Definition nim_qchat_system_notification_def.h:104
@ kNIMQChatSystemNotificationTypeChannelCategoryUpdate
更新频道分组 msg_data: NIMQChatSystemNotificationDataChannelCategoryUpdate
Definition nim_qchat_system_notification_def.h:82
@ kNIMQChatSystemNotificationTypeMemberInviteDone
服务器成员邀请完成 msg_data: NIMQChatSystemNotificationDataMemberInviteDone
Definition nim_qchat_system_notification_def.h:52
@ kNIMQChatSystemNotificationTypeServerRolePermissionChange
服务器身份组权限变更 msg_data: NIMQChatSystemNotificationDataServerRolePermissionChange
Definition nim_qchat_system_notification_def.h:92
@ kNIMQChatSystemNotificationTypeServerCreate
服务器创建 msg_data: NIMQChatSystemNotificationDataServerCreate
Definition nim_qchat_system_notification_def.h:46
@ kNIMQChatSystemNotificationTypeChannelUpdate
频道更新 msg_data: NIMQChatSystemNotificationDataChannelUpdate
Definition nim_qchat_system_notification_def.h:70
@ kNIMQChatSystemNotificationTypeChannelVisibilityChange
频道对当前用户可见性变更 msg_data: NIMQChatSystemNotificationDataChannelVisibilityChange
Definition nim_qchat_system_notification_def.h:98
@ kNIMQChatSystemNotificationTypeMemberKick
服务器成员被踢出 msg_data: NIMQChatSystemNotificationDataMemberKick
Definition nim_qchat_system_notification_def.h:60
@ kNIMQChatSystemNotificationTypeServerEnterLeave
当前用户进入/离开服务器 msg_data: NIMQChatSystemNotificationDataServerEnterLeave
Definition nim_qchat_system_notification_def.h:100
@ kNIMQChatSystemNotificationTypeMemberInviteReject
服务器成员邀请被拒绝 msg_data: NULL
Definition nim_qchat_system_notification_def.h:40
@ kNIMQChatSystemNotificationTypeWhiteBlackMembersUpdate
频道白/黑名单成员更新 msg_data: NIMQChatSystemNotificationDataWhiteBlackMembersUpdate
Definition nim_qchat_system_notification_def.h:74
@ kNIMQChatSystemNotificationTypeChannelCategoryWhiteBlackRoleUpdate
频道分组白/黑名单身份组更新 msg_data: NIMQChatSystemNotificationDataChannelCategoryWhiteBlackRoleUpdate
Definition nim_qchat_system_notification_def.h:84
@ kNIMQChatSystemNotificationTypeMemberInviteAccept
服务器成员邀请被接受 msg_data: NIMQChatSystemNotificationDataMemberInviteAccept
Definition nim_qchat_system_notification_def.h:54
@ kNIMQChatSystemNotificationTypeChannelCategoryCreate
创建频道分组 msg_data: NIMQChatSystemNotificationDataChannelCategoryCreate
Definition nim_qchat_system_notification_def.h:78
@ kNIMQChatSystemNotificationTypeChannelRolePermissionChange
频道定制身份组权限变更 msg_data: NIMQChatSystemNotificationDataChannelRolePermissionChange
Definition nim_qchat_system_notification_def.h:94
@ kNIMQChatSystemNotificationTypeServerRoleAddMember
服务器身份组加入成员 msg_data: NIMQChatSystemNotificationDataServerRoleAddMember
Definition nim_qchat_system_notification_def.h:88
@ kNIMQChatSystemNotificationTypeMyMemberInfoUpdated
当前用户服务器成员信息对IM资料的联动变更 msg_data: NIMQChatSystemNotificationDataMyMemberInfoUpdated
Definition nim_qchat_system_notification_def.h:106
@ kNIMQChatSystemNotificationTypeMemberLeave
服务器成员离开 msg_data: NIMQChatSystemNotificationDataMemberLeave
Definition nim_qchat_system_notification_def.h:62
@ kNIMQChatSystemNotificationTypeMemberApply
服务器成员申请 msg_data: NULL
Definition nim_qchat_system_notification_def.h:42
@ kNIMQChatSystemNotificationTypeChannelCategoryWhiteBlackMembersUpdate
频道分组白/黑名单成员更新 msg_data: NIMQChatSystemNotificationDataChannelCategoryWhiteBlackMembersUpdate
Definition nim_qchat_system_notification_def.h:86
@ kNIMQChatSystemNotificationTypeUnkonwn
未知类型系统通知
Definition nim_qchat_system_notification_def.h:36
@ kNIMQChatSystemNotificationTypeServerJoinByInviteCode
用户通过邀请码加入服务器 msg_data: NIMQChatSystemNotificationDataServerJoinByInviteCode
Definition nim_qchat_system_notification_def.h:102
@ kNIMQChatSystemNotificationTypeMemberApplyAccept
服务器成员申请被接受 msg_data: NIMQChatSystemNotificationDataMemberApplyAccept
Definition nim_qchat_system_notification_def.h:58
@ kNIMQChatSystemNotificationTypeQuickCommentChanged
添加或删除快捷评论通知 msg_data: NIMQChatSystemNotificationQuickCommentChanged
Definition nim_qchat_system_notification_def.h:76
NIMQChatSystemNotificationToType
Definition nim_qchat_system_notification_def.h:24
@ kNIMQChatSystemNotificationToTypeUnknown
默认值,需要由用户修改,否则报错 10414 参数错误
Definition nim_qchat_system_notification_def.h:25
@ kNIMQChatSystemNotificationToTypeChannel
发送到 Channel,server_id 和 channel_id 必填
Definition nim_qchat_system_notification_def.h:27
@ kNIMQChatSystemNotificationToTypeServerAccids
发送到 Server 中的指定用户,server_id 和 to_accids 必填
Definition nim_qchat_system_notification_def.h:28
@ kNIMQChatSystemNotificationToTypeServer
发送到 Server,server_id 必填
Definition nim_qchat_system_notification_def.h:26
@ kNIMQChatSystemNotificationToTypeAccids
发送给指定用户,to_accids 必填
Definition nim_qchat_system_notification_def.h:30
@ kNIMQChatSystemNotificationToTypeChannelAccids
发送到 Channel 中的指定用户,server_id、channel_id 和 to_accids 必填
Definition nim_qchat_system_notification_def.h:29
NIMQChatSystemNotificationStatus
Definition nim_qchat_system_notification_def.h:120
@ kNIMQChatSystemNotificationNormal
普通状态
Definition nim_qchat_system_notification_def.h:122
@ kNIMResSuccess
没有错误,一切正常
Definition public_defines.h:26
Definition nim_qchat_system_notification_def.h:635
size_t mark_read_infos_count
标记已读系统通知消息列表长度
Definition nim_qchat_system_notification_def.h:641
void * user_data
自定义用户数据
Definition nim_qchat_system_notification_def.h:639
NIMQChatSystemNotificationMarkReadInfo * mark_read_infos
标记已读系统通知消息列表
Definition nim_qchat_system_notification_def.h:643
nim_qchat_mark_read_notification_cb_func cb
标记消息系统通知消息已读异步回调
Definition nim_qchat_system_notification_def.h:637
uint32_t permission
权限, 见 NIMQChatPermissions 以及自定义权限
Definition nim_qchat_role_def.h:88
NIMQChatPermissionsOption option
开关
Definition nim_qchat_role_def.h:90
Definition nim_qchat_system_notification_def.h:509
bool is_leave
是否为离线通知
Definition nim_qchat_system_notification_def.h:515
NIMQChatSystemNotification notification
系统通知
Definition nim_qchat_system_notification_def.h:513
Definition nim_qchat_system_notification_def.h:552
NIMQChatTypingEvent typing_event
正在输入事件
Definition nim_qchat_system_notification_def.h:556
Definition nim_qchat_system_notification_def.h:589
nim_qchat_recv_notification_cb_func cb
接收系统通知异步回调
Definition nim_qchat_system_notification_def.h:591
Definition nim_qchat_system_notification_def.h:647
nim_qchat_recv_typing_event_cb_func cb
接收正在输入事件异步回调
Definition nim_qchat_system_notification_def.h:649
Definition nim_qchat_system_notification_def.h:597
nim_qchat_notification_updated_cb_func cb
系统通知更新异步回调
Definition nim_qchat_system_notification_def.h:599
Definition nim_qchat_system_notification_def.h:605
nim_qchat_send_notification_cb_func cb
发送系统通知异步回调
Definition nim_qchat_system_notification_def.h:607
void * user_data
自定义用户数据
Definition nim_qchat_system_notification_def.h:609
NIMQChatSystemNotification notification
系统通知体
Definition nim_qchat_system_notification_def.h:611
Definition nim_qchat_system_notification_def.h:529
NIMQChatSystemNotification notification
系统通知
Definition nim_qchat_system_notification_def.h:535
uint32_t res_code
操作结果, 参考NIMResCode
Definition nim_qchat_system_notification_def.h:531
Definition nim_qchat_system_notification_def.h:655
void * user_data
自定义用户数据
Definition nim_qchat_system_notification_def.h:659
nim_qchat_send_typing_event_cb_func cb
发送正在输入事件异步回调
Definition nim_qchat_system_notification_def.h:657
NIMQChatTypingEvent typing_event
正在输入事件
Definition nim_qchat_system_notification_def.h:661
Definition nim_qchat_system_notification_def.h:560
void * user_data
自定义用户数据
Definition nim_qchat_system_notification_def.h:564
uint32_t res_code
操作结果, 参考NIMResCode
Definition nim_qchat_system_notification_def.h:562
NIMQChatTypingEvent typing_event
正在输入事件
Definition nim_qchat_system_notification_def.h:566
Definition nim_qchat_system_notification_def.h:361
NIMQChatChannelCategoryInfo category_info
频道分组信息
Definition nim_qchat_system_notification_def.h:363
Definition nim_qchat_system_notification_def.h:367
uint64_t category_id
频道分组id
Definition nim_qchat_system_notification_def.h:369
Definition nim_qchat_system_notification_def.h:390
uint64_t server_id
服务器ID
Definition nim_qchat_system_notification_def.h:392
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition nim_qchat_system_notification_def.h:400
NIMQChatChannelWhiteBlackOpeType ope_type
操作类型
Definition nim_qchat_system_notification_def.h:402
size_t accids_count
被踢人id列表长度
Definition nim_qchat_system_notification_def.h:398
uint64_t category_id
频道分组ID
Definition nim_qchat_system_notification_def.h:394
char ** accids
被踢人id列表
Definition nim_qchat_system_notification_def.h:396
Definition nim_qchat_system_notification_def.h:376
uint64_t server_id
服务器ID
Definition nim_qchat_system_notification_def.h:378
uint64_t category_id
频道分组ID
Definition nim_qchat_system_notification_def.h:380
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition nim_qchat_system_notification_def.h:384
uint64_t role_id
身份组id
Definition nim_qchat_system_notification_def.h:382
NIMQChatChannelWhiteBlackOpeType ope_type
操作类型
Definition nim_qchat_system_notification_def.h:386
Definition nim_qchat_system_notification_def.h:241
NIMQChatChannelInfo channel_info
圈组频道信息
Definition nim_qchat_system_notification_def.h:243
Definition nim_qchat_system_notification_def.h:433
size_t permissions_count
变更的权限列表长度
Definition nim_qchat_system_notification_def.h:445
uint64_t channel_id
频道id
Definition nim_qchat_system_notification_def.h:437
uint64_t server_id
服务器id
Definition nim_qchat_system_notification_def.h:435
uint64_t role_id
身份组id
Definition nim_qchat_system_notification_def.h:441
NIMQChatPermissionGroup * permissions
变更的权限列表
Definition nim_qchat_system_notification_def.h:443
uint64_t parent_role_id
继承的服务器身份组 ID
Definition nim_qchat_system_notification_def.h:439
Definition nim_qchat_system_notification_def.h:247
NIMQChatChannelInfo channel_info
圈组频道信息
Definition nim_qchat_system_notification_def.h:249
Definition nim_qchat_system_notification_def.h:463
bool visible
频道可见性
Definition nim_qchat_system_notification_def.h:465
Definition nim_qchat_system_notification_def.h:485
bool visible
频道游客可见性
Definition nim_qchat_system_notification_def.h:487
Definition nim_qchat_system_notification_def.h:281
uint64_t request_id
请求ID
Definition nim_qchat_system_notification_def.h:287
NIMQChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_def.h:283
char * apply_accid
申请的accid
Definition nim_qchat_system_notification_def.h:285
Definition nim_qchat_system_notification_def.h:273
uint64_t request_id
请求ID
Definition nim_qchat_system_notification_def.h:277
NIMQChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_def.h:275
Definition nim_qchat_system_notification_def.h:263
char * invite_accid
邀请的accid
Definition nim_qchat_system_notification_def.h:267
uint64_t request_id
请求ID
Definition nim_qchat_system_notification_def.h:269
NIMQChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_def.h:265
Definition nim_qchat_system_notification_def.h:253
uint64_t request_id
请求ID
Definition nim_qchat_system_notification_def.h:259
NIMQChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_def.h:255
char * invite_accids
邀请的accid列表 json array
Definition nim_qchat_system_notification_def.h:257
Definition nim_qchat_system_notification_def.h:291
NIMQChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_def.h:293
char * kick_accids
被踢的accid列表 json array
Definition nim_qchat_system_notification_def.h:295
Definition nim_qchat_system_notification_def.h:299
NIMQChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_def.h:301
Definition nim_qchat_system_notification_def.h:449
size_t permissions_count
变更的权限列表长度
Definition nim_qchat_system_notification_def.h:459
char * accid
accid
Definition nim_qchat_system_notification_def.h:455
uint64_t server_id
服务器id
Definition nim_qchat_system_notification_def.h:451
NIMQChatPermissionGroup * permissions
变更的权限列表
Definition nim_qchat_system_notification_def.h:457
uint64_t channel_id
频道id
Definition nim_qchat_system_notification_def.h:453
Definition nim_qchat_system_notification_def.h:305
NIMQChatMemberInfo member_info
圈组成员信息
Definition nim_qchat_system_notification_def.h:307
Definition nim_qchat_system_notification_def.h:501
size_t updated_infos_count
当前用户成员信息发生变更的信息列表长度
Definition nim_qchat_system_notification_def.h:505
NIMQChatUpdatedMyMemberInfo * updated_infos
当前用户成员信息发生变更的信息列表
Definition nim_qchat_system_notification_def.h:503
Definition nim_qchat_system_notification_def.h:341
NIMQChatQuickCommentOperation operate_type
操作类型
Definition nim_qchat_system_notification_def.h:355
uint64_t msg_server_id
消息id
Definition nim_qchat_system_notification_def.h:349
char * msg_sender_accid
发送者accid
Definition nim_qchat_system_notification_def.h:347
uint64_t server_id
服务器ID
Definition nim_qchat_system_notification_def.h:343
uint64_t msg_timestamp
消息时间戳
Definition nim_qchat_system_notification_def.h:351
uint64_t channel_id
频道ID
Definition nim_qchat_system_notification_def.h:345
uint64_t type
消息类型
Definition nim_qchat_system_notification_def.h:353
char * operator_accid
操作者
Definition nim_qchat_system_notification_def.h:357
Definition nim_qchat_system_notification_def.h:217
uint64_t request_id
请求ID
Definition nim_qchat_system_notification_def.h:219
Definition nim_qchat_system_notification_def.h:223
uint64_t request_id
请求ID
Definition nim_qchat_system_notification_def.h:225
Definition nim_qchat_system_notification_def.h:229
NIMQChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_def.h:231
Definition nim_qchat_system_notification_def.h:469
bool is_enter
进入/离开
Definition nim_qchat_system_notification_def.h:471
Definition nim_qchat_system_notification_def.h:205
uint64_t request_id
请求ID
Definition nim_qchat_system_notification_def.h:207
Definition nim_qchat_system_notification_def.h:211
uint64_t request_id
请求ID
Definition nim_qchat_system_notification_def.h:213
Definition nim_qchat_system_notification_def.h:475
NIMQChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_def.h:477
uint64_t request_id
请求id
Definition nim_qchat_system_notification_def.h:479
char * invite_code
邀请码
Definition nim_qchat_system_notification_def.h:481
Definition nim_qchat_system_notification_def.h:406
uint64_t server_id
服务器id
Definition nim_qchat_system_notification_def.h:408
size_t accids_count
accid列表长度
Definition nim_qchat_system_notification_def.h:414
uint64_t role_id
身份组id
Definition nim_qchat_system_notification_def.h:410
char ** accids
accid列表
Definition nim_qchat_system_notification_def.h:412
Definition nim_qchat_system_notification_def.h:421
uint64_t role_id
身份组id
Definition nim_qchat_system_notification_def.h:425
size_t permissions_count
变更的权限列表长度
Definition nim_qchat_system_notification_def.h:429
uint64_t server_id
服务器id
Definition nim_qchat_system_notification_def.h:423
NIMQChatPermissionGroup * permissions
变更的权限列表
Definition nim_qchat_system_notification_def.h:427
Definition nim_qchat_system_notification_def.h:235
NIMQChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_def.h:237
Definition nim_qchat_system_notification_def.h:325
uint64_t channel_id
频道ID
Definition nim_qchat_system_notification_def.h:329
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition nim_qchat_system_notification_def.h:335
char ** accids
被踢人id列表
Definition nim_qchat_system_notification_def.h:331
NIMQChatChannelWhiteBlackOpeType ope_type
操作类型
Definition nim_qchat_system_notification_def.h:337
size_t accids_count
被踢人id列表长度
Definition nim_qchat_system_notification_def.h:333
uint64_t server_id
服务器ID
Definition nim_qchat_system_notification_def.h:327
Definition nim_qchat_system_notification_def.h:311
uint64_t server_id
服务器ID
Definition nim_qchat_system_notification_def.h:313
uint64_t role_id
身份组id
Definition nim_qchat_system_notification_def.h:317
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition nim_qchat_system_notification_def.h:319
NIMQChatChannelWhiteBlackOpeType ope_type
操作类型
Definition nim_qchat_system_notification_def.h:321
uint64_t channel_id
频道ID
Definition nim_qchat_system_notification_def.h:315
Definition nim_qchat_system_notification_def.h:127
char * msg_attach
消息附件
Definition nim_qchat_system_notification_def.h:139
bool history_enable
false 或者 true, 是否存离线,只有 to_accids 不为空,才能设置为存离线,默认 false
Definition nim_qchat_system_notification_def.h:147
NIMQChatSystemNotificationType msg_type
系统通知类型
Definition nim_qchat_system_notification_def.h:135
char * from_device_id
消息发送者的设备id
Definition nim_qchat_system_notification_def.h:174
char * to_accids
通知接受者账号列表, json array
Definition nim_qchat_system_notification_def.h:145
char * from_accid
消息发送者的accid
Definition nim_qchat_system_notification_def.h:170
bool resend_flag
重发标记,false:不是重发,true:是重发
Definition nim_qchat_system_notification_def.h:143
char * msg_ext
消息扩展字段
Definition nim_qchat_system_notification_def.h:141
bool need_push_nick
是否需要推送昵称, false: 不需要, true: 需要, 默认 true
Definition nim_qchat_system_notification_def.h:157
uint64_t timestamp
消息发送时间戳
Definition nim_qchat_system_notification_def.h:178
NIMQChatSystemNotificationToType to_type
消息通知目标
Definition nim_qchat_system_notification_def.h:129
char * push_payload
自定义的推送属性,限制json
Definition nim_qchat_system_notification_def.h:149
char * callback_ext
回调扩展字段
Definition nim_qchat_system_notification_def.h:184
char * msg_id
消息id
Definition nim_qchat_system_notification_def.h:166
uint64_t channel_id
消息所属的channel id
Definition nim_qchat_system_notification_def.h:133
NIMQChatSystemNotificationStatus status
消息状态
Definition nim_qchat_system_notification_def.h:164
uint32_t from_client_type
消息发送者的客户端类型
Definition nim_qchat_system_notification_def.h:172
bool need_badge
是否需要消息计数, false: 不需要, true: 需要, 默认 true
Definition nim_qchat_system_notification_def.h:155
uint64_t update_timestamp
消息更新时间戳
Definition nim_qchat_system_notification_def.h:180
char * msg_body
消息内容
Definition nim_qchat_system_notification_def.h:137
char * from_nick
消息发送者的昵称
Definition nim_qchat_system_notification_def.h:176
char * env
环境变量,用户可以根据不同的env配置不同的抄送和回调地址
Definition nim_qchat_system_notification_def.h:161
bool route_enable
是否需要抄送, false: 不需要, true: 需要, 默认 true
Definition nim_qchat_system_notification_def.h:159
bool push_enable
是否需要推送, false: 不需要, true: 需要, 默认 false
Definition nim_qchat_system_notification_def.h:153
uint64_t msg_server_id
消息服务器 id
Definition nim_qchat_system_notification_def.h:168
uint64_t server_id
消息所属的server id
Definition nim_qchat_system_notification_def.h:131
void * msg_data
系统通知数据, 根据不同的系统通知类型,数据结构不同
Definition nim_qchat_system_notification_def.h:182
char * push_content
自定义的推送内容
Definition nim_qchat_system_notification_def.h:151
Definition nim_qchat_system_notification_def.h:112
Definition nim_qchat_system_notification_def.h:519
NIMQChatSystemNotification notification
系统通知
Definition nim_qchat_system_notification_def.h:525
NIMQChatMessageUpdateInfo update_info
消息更新信息
Definition nim_qchat_system_notification_def.h:523
Definition nim_qchat_system_notification_def.h:188
char * from_nick
事件发送者的昵称
Definition nim_qchat_system_notification_def.h:199
char * extension
事件扩展字段
Definition nim_qchat_system_notification_def.h:194
uint64_t channel_id
事件所属的channel id
Definition nim_qchat_system_notification_def.h:192
uint64_t timestamp
事件发送时间戳
Definition nim_qchat_system_notification_def.h:201
uint64_t server_id
事件所属的server id
Definition nim_qchat_system_notification_def.h:190
char * from_accid
事件发送者的accid
Definition nim_qchat_system_notification_def.h:197
Definition nim_qchat_system_notification_def.h:615
NIMQChatSystemNotificationType msg_type
系统通知类型
Definition nim_qchat_system_notification_def.h:623
void * user_data
自定义用户数据
Definition nim_qchat_system_notification_def.h:619
NIMQChatSystemNotificationStatus status
消息状态
Definition nim_qchat_system_notification_def.h:625
nim_qchat_update_notification_cb_func cb
发送系统通知异步回调
Definition nim_qchat_system_notification_def.h:617
char * msg_body
消息内容
Definition nim_qchat_system_notification_def.h:627
NIMQChatMessageUpdateInfo update_info
更新信息
Definition nim_qchat_system_notification_def.h:631
uint64_t msg_server_id
系统通知服务器ID
Definition nim_qchat_system_notification_def.h:621
char * msg_ext
消息扩展字段
Definition nim_qchat_system_notification_def.h:629
Definition nim_qchat_system_notification_def.h:539
NIMQChatSystemNotification notification
系统通知
Definition nim_qchat_system_notification_def.h:545
uint32_t res_code
操作结果, 参考NIMResCode
Definition nim_qchat_system_notification_def.h:541
Definition nim_qchat_system_notification_def.h:491
char * nick
变更后的昵称
Definition nim_qchat_system_notification_def.h:495
uint64_t server_id
服务器id
Definition nim_qchat_system_notification_def.h:493
char * avatar
变更后的头像
Definition nim_qchat_system_notification_def.h:497
Definition nim_qchat_public_cpp_def.h:49
Definition nim_qchat_channel_cpp_def.h:159
Definition nim_qchat_channel_cpp_def.h:23
Definition nim_qchat_system_notification_cpp_def.h:960
QChatMarkSystemNotificationsReadParam(const NIMQChatMarkSystemNotificationsReadParam &c_param)
Definition nim_qchat_system_notification_cpp_def.h:964
NIMQChatMarkSystemNotificationsReadParam ToCParam() const
Definition nim_qchat_system_notification_cpp_def.h:974
Definition nim_qchat_member_cpp_def.h:19
Definition nim_qchat_message_cpp_def.h:341
NIMQChatMessageUpdateInfo ToCParam() const
Definition nim_qchat_message_cpp_def.h:368
Definition nim_qchat_system_notification_cpp_def.h:734
QChatRecvSystemNotificationResp(const NIMQChatRecvSystemNotificationResp &c_resp)
Definition nim_qchat_system_notification_cpp_def.h:740
Definition nim_qchat_system_notification_cpp_def.h:810
QChatRecvTypingEventResp(const NIMQChatRecvTypingEventResp &c_resp)
Definition nim_qchat_system_notification_cpp_def.h:814
Definition nim_qchat_system_notification_cpp_def.h:854
NIMQChatRegRecvSystemNotificationCbParam ToCParam() const
Definition nim_qchat_system_notification_cpp_def.h:857
Definition nim_qchat_system_notification_cpp_def.h:988
NIMQChatRegRecvTypingEventCbParam ToCParam() const
Definition nim_qchat_system_notification_cpp_def.h:991
Definition nim_qchat_system_notification_cpp_def.h:870
NIMQChatRegSystemNotificationUpdatedCbParam ToCParam() const
Definition nim_qchat_system_notification_cpp_def.h:873
Definition nim_qchat_system_notification_cpp_def.h:886
QChatSendSystemNotificationParam(const NIMQChatSendSystemNotificationParam &c_param)
Definition nim_qchat_system_notification_cpp_def.h:892
NIMQChatSendSystemNotificationParam ToCParam() const
Definition nim_qchat_system_notification_cpp_def.h:900
Definition nim_qchat_system_notification_cpp_def.h:762
NIMQChatSendSystemNotificationResp ToCParam() const
Definition nim_qchat_system_notification_cpp_def.h:774
QChatSendSystemNotificationResp(const NIMQChatSendSystemNotificationResp &c_resp)
Definition nim_qchat_system_notification_cpp_def.h:768
Definition nim_qchat_system_notification_cpp_def.h:1004
NIMQChatSendTypingEventParam ToCParam() const
Definition nim_qchat_system_notification_cpp_def.h:1018
QChatSendTypingEventParam(const NIMQChatSendTypingEventParam &c_param)
Definition nim_qchat_system_notification_cpp_def.h:1010
Definition nim_qchat_system_notification_cpp_def.h:818
NIMQChatSendTypingEventResp ToCParam() const
Definition nim_qchat_system_notification_cpp_def.h:830
QChatSendTypingEventResp(const NIMQChatSendTypingEventResp &c_resp)
Definition nim_qchat_system_notification_cpp_def.h:824
Definition nim_qchat_server_cpp_def.h:21
Definition nim_qchat_system_notification_cpp_def.h:23
virtual ~QChatSystemNotificationDataBase()
Definition nim_qchat_system_notification_cpp_def.h:24
Definition nim_qchat_system_notification_cpp_def.h:263
QChatChannelCategoryInfo category_info
圈组频道分组信息
Definition nim_qchat_system_notification_cpp_def.h:265
QChatSystemNotificationDataChannelCategoryCreate(const NIMQChatSystemNotificationDataChannelCategoryCreate &c_param)
Definition nim_qchat_system_notification_cpp_def.h:267
Definition nim_qchat_system_notification_cpp_def.h:273
QChatSystemNotificationDataChannelCategoryRemove(const NIMQChatSystemNotificationDataChannelCategoryRemove &c_param)
Definition nim_qchat_system_notification_cpp_def.h:277
Definition nim_qchat_system_notification_cpp_def.h:308
NIMQChatChannelWhiteBlackOpeType ope_type
操作类型
Definition nim_qchat_system_notification_cpp_def.h:318
std::vector< std::string > accids
成员列表
Definition nim_qchat_system_notification_cpp_def.h:314
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition nim_qchat_system_notification_cpp_def.h:316
QChatSystemNotificationDataChannelCategoryWhiteBlackMembersUpdate(const NIMQChatSystemNotificationDataChannelCategoryWhiteBlackMembersUpdate &c_param)
Definition nim_qchat_system_notification_cpp_def.h:320
Definition nim_qchat_system_notification_cpp_def.h:286
QChatSystemNotificationDataChannelCategoryWhiteBlackRoleUpdate(const NIMQChatSystemNotificationDataChannelCategoryWhiteBlackRoleUpdate &c_param)
Definition nim_qchat_system_notification_cpp_def.h:298
NIMQChatChannelWhiteBlackOpeType ope_type
操作类型
Definition nim_qchat_system_notification_cpp_def.h:296
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition nim_qchat_system_notification_cpp_def.h:294
Definition nim_qchat_system_notification_cpp_def.h:78
QChatChannelInfo channel_info
圈组频道信息
Definition nim_qchat_system_notification_cpp_def.h:80
QChatSystemNotificationDataChannelCreate(const NIMQChatSystemNotificationDataChannelCreate &c_param)
Definition nim_qchat_system_notification_cpp_def.h:82
Definition nim_qchat_system_notification_cpp_def.h:372
QChatSystemNotificationDataChannelRolePermissionChange(const NIMQChatSystemNotificationDataChannelRolePermissionChange &c_param)
Definition nim_qchat_system_notification_cpp_def.h:384
Definition nim_qchat_system_notification_cpp_def.h:86
QChatSystemNotificationDataChannelUpdate(const NIMQChatSystemNotificationDataChannelUpdate &c_param)
Definition nim_qchat_system_notification_cpp_def.h:90
QChatChannelInfo channel_info
圈组频道信息
Definition nim_qchat_system_notification_cpp_def.h:88
Definition nim_qchat_system_notification_cpp_def.h:421
QChatSystemNotificationDataChannelVisibilityChange(const NIMQChatSystemNotificationDataChannelVisibilityChange &c_param)
Definition nim_qchat_system_notification_cpp_def.h:425
Definition nim_qchat_system_notification_cpp_def.h:455
QChatSystemNotificationDataChannelVisitorVisibilityChange(const NIMQChatSystemNotificationDataChannelVisitorVisibilityChange &c_param)
Definition nim_qchat_system_notification_cpp_def.h:459
Definition nim_qchat_system_notification_cpp_def.h:141
QChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_cpp_def.h:143
QChatSystemNotificationDataMemberApplyAccept(const NIMQChatSystemNotificationDataMemberApplyAccept &c_param)
Definition nim_qchat_system_notification_cpp_def.h:149
std::string apply_accid
申请的accid
Definition nim_qchat_system_notification_cpp_def.h:145
Definition nim_qchat_system_notification_cpp_def.h:128
QChatSystemNotificationDataMemberApplyDone(const NIMQChatSystemNotificationDataMemberApplyDone &c_param)
Definition nim_qchat_system_notification_cpp_def.h:134
QChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_cpp_def.h:130
Definition nim_qchat_system_notification_cpp_def.h:112
std::string invite_accid
邀请的accid
Definition nim_qchat_system_notification_cpp_def.h:116
QChatSystemNotificationDataMemberInviteAccept(const NIMQChatSystemNotificationDataMemberInviteAccept &c_param)
Definition nim_qchat_system_notification_cpp_def.h:120
QChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_cpp_def.h:114
Definition nim_qchat_system_notification_cpp_def.h:94
std::vector< std::string > invite_accids
邀请的accid列表
Definition nim_qchat_system_notification_cpp_def.h:98
QChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_cpp_def.h:96
QChatSystemNotificationDataMemberInviteDone(const NIMQChatSystemNotificationDataMemberInviteDone &c_param)
Definition nim_qchat_system_notification_cpp_def.h:102
Definition nim_qchat_system_notification_cpp_def.h:157
std::vector< std::string > kick_accids
被踢的accid列表
Definition nim_qchat_system_notification_cpp_def.h:161
QChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_cpp_def.h:159
QChatSystemNotificationDataMemberKick(const NIMQChatSystemNotificationDataMemberKick &c_param)
Definition nim_qchat_system_notification_cpp_def.h:163
Definition nim_qchat_system_notification_cpp_def.h:171
QChatSystemNotificationDataMemberLeave(const NIMQChatSystemNotificationDataMemberLeave &c_param)
Definition nim_qchat_system_notification_cpp_def.h:175
QChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_cpp_def.h:173
Definition nim_qchat_system_notification_cpp_def.h:398
std::string accid
accid
Definition nim_qchat_system_notification_cpp_def.h:404
QChatSystemNotificationDataMemberRolePermissionChange(const NIMQChatSystemNotificationDataMemberRolePermissionChange &c_param)
Definition nim_qchat_system_notification_cpp_def.h:408
Definition nim_qchat_system_notification_cpp_def.h:179
QChatMemberInfo member_info
圈组成员信息
Definition nim_qchat_system_notification_cpp_def.h:181
QChatSystemNotificationDataMemberUpdate(const NIMQChatSystemNotificationDataMemberUpdate &c_param)
Definition nim_qchat_system_notification_cpp_def.h:183
Definition nim_qchat_system_notification_cpp_def.h:491
QChatSystemNotificationDataMyMemberInfoUpdated(const NIMQChatSystemNotificationDataMyMemberInfoUpdated &c_param)
Definition nim_qchat_system_notification_cpp_def.h:495
std::vector< QChatUpdatedMyMemberInfo > updated_infos
服务器id列表
Definition nim_qchat_system_notification_cpp_def.h:493
Definition nim_qchat_system_notification_cpp_def.h:232
NIMQChatQuickCommentOperation operate_type
操作类型
Definition nim_qchat_system_notification_cpp_def.h:246
std::string msg_sender_accid
发送者accid
Definition nim_qchat_system_notification_cpp_def.h:238
QChatSystemNotificationDataQuickCommentChanged(const NIMQChatSystemNotificationDataQuickCommentChanged &c_param)
Definition nim_qchat_system_notification_cpp_def.h:250
std::string operator_accid
操作者
Definition nim_qchat_system_notification_cpp_def.h:248
Definition nim_qchat_system_notification_cpp_def.h:46
QChatSystemNotificationDataServerApply(const NIMQChatSystemNotificationDataServerApply &c_param)
Definition nim_qchat_system_notification_cpp_def.h:50
Definition nim_qchat_system_notification_cpp_def.h:54
QChatSystemNotificationDataServerApplyReject(const NIMQChatSystemNotificationDataServerApplyReject &c_param)
Definition nim_qchat_system_notification_cpp_def.h:58
Definition nim_qchat_system_notification_cpp_def.h:62
QChatSystemNotificationDataServerCreate(const NIMQChatSystemNotificationDataServerCreate &c_param)
Definition nim_qchat_system_notification_cpp_def.h:66
QChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_cpp_def.h:64
Definition nim_qchat_system_notification_cpp_def.h:431
QChatSystemNotificationDataServerEnterLeave(const NIMQChatSystemNotificationDataServerEnterLeave &c_param)
Definition nim_qchat_system_notification_cpp_def.h:435
Definition nim_qchat_system_notification_cpp_def.h:28
QChatSystemNotificationDataServerInvite(const NIMQChatSystemNotificationDataServerInvite &c_param)
Definition nim_qchat_system_notification_cpp_def.h:32
Definition nim_qchat_system_notification_cpp_def.h:36
QChatSystemNotificationDataServerInviteReject(const NIMQChatSystemNotificationDataServerInviteReject &c_param)
Definition nim_qchat_system_notification_cpp_def.h:40
Definition nim_qchat_system_notification_cpp_def.h:439
QChatSystemNotificationDataServerJoinByInviteCode(const NIMQChatSystemNotificationDataServerJoinByInviteCode &c_param)
Definition nim_qchat_system_notification_cpp_def.h:447
std::string invite_code
邀请码
Definition nim_qchat_system_notification_cpp_def.h:445
Definition nim_qchat_system_notification_cpp_def.h:332
QChatSystemNotificationDataServerRoleAddMember(const NIMQChatSystemNotificationDataServerRoleAddMember &c_param)
Definition nim_qchat_system_notification_cpp_def.h:340
std::vector< std::string > accids
accid列表
Definition nim_qchat_system_notification_cpp_def.h:338
Definition nim_qchat_system_notification_cpp_def.h:352
QChatSystemNotificationDataServerRolePermissionChange(const NIMQChatSystemNotificationDataServerRolePermissionChange &c_param)
Definition nim_qchat_system_notification_cpp_def.h:360
Definition nim_qchat_system_notification_cpp_def.h:70
QChatSystemNotificationDataServerUpdate(const NIMQChatSystemNotificationDataServerUpdate &c_param)
Definition nim_qchat_system_notification_cpp_def.h:74
QChatServerInfo server_info
圈组服务器信息
Definition nim_qchat_system_notification_cpp_def.h:72
Definition nim_qchat_system_notification_cpp_def.h:209
std::vector< std::string > accids
成员列表
Definition nim_qchat_system_notification_cpp_def.h:215
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition nim_qchat_system_notification_cpp_def.h:217
NIMQChatChannelWhiteBlackOpeType ope_type
操作类型
Definition nim_qchat_system_notification_cpp_def.h:219
QChatSystemNotificationDataWhiteBlackMembersUpdate(const NIMQChatSystemNotificationDataWhiteBlackMembersUpdate &c_param)
Definition nim_qchat_system_notification_cpp_def.h:221
Definition nim_qchat_system_notification_cpp_def.h:187
NIMQChatChannelWhiteBlackOpeType ope_type
操作类型
Definition nim_qchat_system_notification_cpp_def.h:197
QChatSystemNotificationDataWhiteBlackRoleUpdate(const NIMQChatSystemNotificationDataWhiteBlackRoleUpdate &c_param)
Definition nim_qchat_system_notification_cpp_def.h:199
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition nim_qchat_system_notification_cpp_def.h:195
Definition nim_qchat_system_notification_cpp_def.h:545
QChatSystemNotification(const NIMQChatSystemNotification &c_param)
Definition nim_qchat_system_notification_cpp_def.h:604
std::string to_accids_json_array
Definition nim_qchat_system_notification_cpp_def.h:694
NIMQChatSystemNotification ToCParam() const
Definition nim_qchat_system_notification_cpp_def.h:641
void AdaptToType()
Definition nim_qchat_system_notification_cpp_def.h:674
Definition nim_qchat_system_notification_cpp_def.h:747
QChatSystemNotificationUpdatedResp(const NIMQChatSystemNotificationUpdatedResp &c_resp)
Definition nim_qchat_system_notification_cpp_def.h:755
Definition nim_qchat_system_notification_cpp_def.h:698
QChatTypingEvent()=default
QChatTypingEvent(const NIMQChatTypingEvent &c_param)
Definition nim_qchat_system_notification_cpp_def.h:713
NIMQChatTypingEvent ToCParam() const
Definition nim_qchat_system_notification_cpp_def.h:721
Definition nim_qchat_system_notification_cpp_def.h:913
QChatUpdateSystemNotificationParam(const NIMQChatUpdateSystemNotificationParam &c_param)
Definition nim_qchat_system_notification_cpp_def.h:929
std::string msg_ext
消息扩展字段
Definition nim_qchat_system_notification_cpp_def.h:925
std::string msg_body
消息内容
Definition nim_qchat_system_notification_cpp_def.h:923
QChatMessageUpdateInfo update_info
更新信息
Definition nim_qchat_system_notification_cpp_def.h:927
NIMQChatUpdateSystemNotificationParam ToCParam() const
Definition nim_qchat_system_notification_cpp_def.h:942
Definition nim_qchat_system_notification_cpp_def.h:783
NIMQChatUpdateSystemNotificationResp ToCParam() const
Definition nim_qchat_system_notification_cpp_def.h:795
QChatUpdateSystemNotificationResp(const NIMQChatUpdateSystemNotificationResp &c_resp)
Definition nim_qchat_system_notification_cpp_def.h:789
Definition nim_qchat_system_notification_cpp_def.h:465
std::string nick
变更后的昵称
Definition nim_qchat_system_notification_cpp_def.h:471
QChatUpdatedMyMemberInfo(const NIMQChatUpdatedMyMemberInfo &c_param)
Definition nim_qchat_system_notification_cpp_def.h:477
uint64_t server_id
服务器id
Definition nim_qchat_system_notification_cpp_def.h:467
std::string avatar
变更后的头像
Definition nim_qchat_system_notification_cpp_def.h:475