From fee5781fdbca99ee8efcc5391e6392e7a68f4aca Mon Sep 17 00:00:00 2001 From: Newbe36524 <472158246@qq.com> Date: Sun, 13 Oct 2019 19:50:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20CleverQQ=20=E7=9A=84?= =?UTF-8?q?=E6=94=AF=E6=8C=81=20(#92)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 更新 release-drafter.yml * 移除 Readme 中 CleverQQ 的内容。 * 添加 华为云 作为nuget镜像 * 移除 CleverQQ 相关内容 --- .github/release-drafter.yml | 40 +- README.md | 22 +- .../.idea.Newbe.Mahua.Native/.idea/.name | 1 + .../.idea/indexLayout.xml | 8 + .../.idea/modules.xml | 8 + .../.idea/projectSettingsUpdater.xml | 6 + .../.idea.Newbe.Mahua.Native/.idea/vcs.xml | 6 + .../.idea.Newbe.Mahua.Native/riderModule.iml | 7 + .../.idea/projectSettingsUpdater.xml | 6 + src/Directory.Build.props | 2 +- .../CleverQQApi.cs | 2370 ----------- .../MahuaModule.cs | 22 - .../Newbe.Mahua.CleverQQ.Native.csproj | 145 - .../PluginApiExporter.cs | 121 - .../PluginInfoProvider.cs | 25 - .../PluginInstanceManager.cs | 19 - .../Properties/AssemblyInfo.cs | 35 - .../packages.config | 4 - src/Newbe.Mahua.CleverQQ/AssemblyInfo.cs | 3 - src/Newbe.Mahua.CleverQQ/CleverQQApiOutput.cs | 11 - .../CleverQQEventOutput.cs | 11 - .../CleverQQMahuaApiHandler.cs | 1209 ------ .../MahuaEventOutputs/Create.cs | 7 - .../MahuaEventOutputs/DestroyPlugin.cs | 7 - .../MahuaEventOutputs/Event.cs | 18 - .../MahuaEventOutputs/Message.cs | 13 - src/Newbe.Mahua.CleverQQ/MahuaModule.cs | 24 - .../Newbe.Mahua.CleverQQ.csproj | 32 - .../Newbe.Mahua.CleverQQ.ruleset | 74 - .../HttpApiInputControllers/CleverQQJob.cs | 36 - .../Jobs/PlatformApIHandlers/CleverQQJob.cs | 38 - .../Newbe.Mahua.DevJobs.csproj | 2 - .../Services/Impl/NativeApiInfoProvider.cs | 4 - .../Controllers/CleverQQController.cs | 3791 ----------------- .../Nuspec/Newbe.Mahua.CleverQQ.Asset.nuspec | 21 - src/Newbe.Mahua.Plugin.Agent/build.ps1 | 23 +- src/Newbe.Mahua.Plugin.Agent/packages.config | 7 - src/Newbe.Mahua.sln | 17 - .../Internals/MahuaPlatformValueProvider.cs | 25 - src/Newbe.Mahua/MahuaPlatform.cs | 6 +- src/Newbe.Mahua/NativeApi/ICleverQQApi.cs | 1056 ----- src/NuGet.config | 4 + 42 files changed, 91 insertions(+), 9195 deletions(-) create mode 100644 src/.idea/.idea.Newbe.Mahua.Native/.idea/.name create mode 100644 src/.idea/.idea.Newbe.Mahua.Native/.idea/indexLayout.xml create mode 100644 src/.idea/.idea.Newbe.Mahua.Native/.idea/modules.xml create mode 100644 src/.idea/.idea.Newbe.Mahua.Native/.idea/projectSettingsUpdater.xml create mode 100644 src/.idea/.idea.Newbe.Mahua.Native/.idea/vcs.xml create mode 100644 src/.idea/.idea.Newbe.Mahua.Native/riderModule.iml create mode 100644 src/.idea/.idea.Newbe.Mahua/.idea/projectSettingsUpdater.xml delete mode 100644 src/Newbe.Mahua.CleverQQ.Native/CleverQQApi.cs delete mode 100644 src/Newbe.Mahua.CleverQQ.Native/MahuaModule.cs delete mode 100644 src/Newbe.Mahua.CleverQQ.Native/Newbe.Mahua.CleverQQ.Native.csproj delete mode 100644 src/Newbe.Mahua.CleverQQ.Native/PluginApiExporter.cs delete mode 100644 src/Newbe.Mahua.CleverQQ.Native/PluginInfoProvider.cs delete mode 100644 src/Newbe.Mahua.CleverQQ.Native/PluginInstanceManager.cs delete mode 100644 src/Newbe.Mahua.CleverQQ.Native/Properties/AssemblyInfo.cs delete mode 100644 src/Newbe.Mahua.CleverQQ.Native/packages.config delete mode 100644 src/Newbe.Mahua.CleverQQ/AssemblyInfo.cs delete mode 100644 src/Newbe.Mahua.CleverQQ/CleverQQApiOutput.cs delete mode 100644 src/Newbe.Mahua.CleverQQ/CleverQQEventOutput.cs delete mode 100644 src/Newbe.Mahua.CleverQQ/CleverQQMahuaApiHandler.cs delete mode 100644 src/Newbe.Mahua.CleverQQ/MahuaEventOutputs/Create.cs delete mode 100644 src/Newbe.Mahua.CleverQQ/MahuaEventOutputs/DestroyPlugin.cs delete mode 100644 src/Newbe.Mahua.CleverQQ/MahuaEventOutputs/Event.cs delete mode 100644 src/Newbe.Mahua.CleverQQ/MahuaEventOutputs/Message.cs delete mode 100644 src/Newbe.Mahua.CleverQQ/MahuaModule.cs delete mode 100644 src/Newbe.Mahua.CleverQQ/Newbe.Mahua.CleverQQ.csproj delete mode 100644 src/Newbe.Mahua.CleverQQ/Newbe.Mahua.CleverQQ.ruleset delete mode 100644 src/Newbe.Mahua.DevJobs/Jobs/HttpApiInputControllers/CleverQQJob.cs delete mode 100644 src/Newbe.Mahua.DevJobs/Jobs/PlatformApIHandlers/CleverQQJob.cs delete mode 100644 src/Newbe.Mahua.InputReceivers.HttpApi/Services/Controllers/CleverQQController.cs delete mode 100644 src/Newbe.Mahua.Plugin.Agent/Nuspec/Newbe.Mahua.CleverQQ.Asset.nuspec delete mode 100644 src/Newbe.Mahua.Plugin.Agent/packages.config delete mode 100644 src/Newbe.Mahua/NativeApi/ICleverQQApi.cs diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index c27d995..5bbf6b4 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,14 +1,30 @@ -name-template: v$NEXT_PATCH_VERSION 🌈 -tag-template: v$NEXT_PATCH_VERSION +# Configuration for Release Drafter - https://github.com/toolmantim/release-drafter + +name-template: 'v$NEXT_MINOR_VERSION' +tag-template: 'v$NEXT_MINOR_VERSION' categories: - - title: 🚀 Features - label: feature - - title: 🐛 Bug Fixes - label: fix - - title: 🧰 Maintenance - label: chore -change-template: '- $TITLE @$AUTHOR (#$NUMBER)' -template: | - ## What’s Changed + - title: '💥 Breaking Changes' + label: '💥 Breaking Change' + + - title: '🌟 New Features' + label: '🌟 New Feature' + + - title: '⭐ Features' + label: '⭐ Feature' - $CHANGES \ No newline at end of file + - title: '🐞 Bug Fixes' + label: '🐞 Bug Fix' + + - title: '🛠 Improvements' + label: '🛠 Improvement' + + - title: '📖 Documentation' + label: '📖 Docs' + +change-template: '- $TITLE (#$NUMBER)' +no-changes-template: '- No changes' +template: | + $CHANGES + *** +exclude-labels: + - 'Skip Release' \ No newline at end of file diff --git a/README.md b/README.md index ffb4838..ac35229 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ 先点击一下右上角的Star,开启隐藏功能。 -[![](https://img.shields.io/appveyor/tests/Newbe36524/newbe-mahua-framework.svg?style=flat-square)](https://ci.appveyor.com/project/Newbe36524/newbe-mahua-framework) [![](https://img.shields.io/appveyor/ci/Newbe36524/newbe-mahua-framework.svg?style=flat-square)](https://ci.appveyor.com/project/Newbe36524/newbe-mahua-framework) [![GitHub last commit](https://img.shields.io/github/last-commit/Newbe36524/Newbe.Mahua.Framework.svg?style=flat-square)]() +[![GitHub last commit](https://img.shields.io/github/last-commit/Newbe36524/Newbe.Mahua.Framework.svg?style=flat-square)]() [![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors) ## 入坑提示 @@ -23,12 +23,9 @@ ### 论坛其他SDK的链接 -| 平台 | 链接 | -| -------- | --------------------------------------------------------- | -| CQP | | -| MPQ | | -| CleverQQ | | -| QQLight | | +- [CQP](https://d.oo14.com/b7oy?target=cqp) +- [MPQ](https://d.oo14.com/b7oy?target=mpq) +- [QQLight](https://d.oo14.com/b7oy?target=qqlight) ## 开篇一张图,功能全靠编 @@ -63,12 +60,9 @@ SDK提供多种可用的跨进程通信方案,开发者可以从中灵活选 ## 支持的平台 -| 名称 | 地址 | -| -------- | ------------------------------------------ | -| CQP | | -| MPQ | | -| CleverQQ | | -| QQLight | | +- [CQP](https://d.oo14.com/b7oy?target=cqp) +- [MPQ](https://d.oo14.com/b7oy?target=mpq) +- [QQLight](https://d.oo14.com/b7oy?target=qqlight) ## 立马开始 @@ -131,7 +125,7 @@ This project follows the [all-contributors](https://github.com/kentcdodds/all-co **最后,但是最重要的,一定要Star一下!** -[借一步说话](http://www.newbe.pro/donate.html) +[借一步说话](http://www.newbe.pro/donate/) 特别感谢 Jetbrain 公司提供的 License 以支持该项目 diff --git a/src/.idea/.idea.Newbe.Mahua.Native/.idea/.name b/src/.idea/.idea.Newbe.Mahua.Native/.idea/.name new file mode 100644 index 0000000..45e1549 --- /dev/null +++ b/src/.idea/.idea.Newbe.Mahua.Native/.idea/.name @@ -0,0 +1 @@ +Newbe.Mahua.Native \ No newline at end of file diff --git a/src/.idea/.idea.Newbe.Mahua.Native/.idea/indexLayout.xml b/src/.idea/.idea.Newbe.Mahua.Native/.idea/indexLayout.xml new file mode 100644 index 0000000..27ba142 --- /dev/null +++ b/src/.idea/.idea.Newbe.Mahua.Native/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/src/.idea/.idea.Newbe.Mahua.Native/.idea/modules.xml b/src/.idea/.idea.Newbe.Mahua.Native/.idea/modules.xml new file mode 100644 index 0000000..ea18206 --- /dev/null +++ b/src/.idea/.idea.Newbe.Mahua.Native/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/src/.idea/.idea.Newbe.Mahua.Native/.idea/projectSettingsUpdater.xml b/src/.idea/.idea.Newbe.Mahua.Native/.idea/projectSettingsUpdater.xml new file mode 100644 index 0000000..7515e76 --- /dev/null +++ b/src/.idea/.idea.Newbe.Mahua.Native/.idea/projectSettingsUpdater.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/src/.idea/.idea.Newbe.Mahua.Native/.idea/vcs.xml b/src/.idea/.idea.Newbe.Mahua.Native/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/src/.idea/.idea.Newbe.Mahua.Native/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/.idea/.idea.Newbe.Mahua.Native/riderModule.iml b/src/.idea/.idea.Newbe.Mahua.Native/riderModule.iml new file mode 100644 index 0000000..1a4e0d9 --- /dev/null +++ b/src/.idea/.idea.Newbe.Mahua.Native/riderModule.iml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/src/.idea/.idea.Newbe.Mahua/.idea/projectSettingsUpdater.xml b/src/.idea/.idea.Newbe.Mahua/.idea/projectSettingsUpdater.xml new file mode 100644 index 0000000..7515e76 --- /dev/null +++ b/src/.idea/.idea.Newbe.Mahua/.idea/projectSettingsUpdater.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/src/Directory.Build.props b/src/Directory.Build.props index b93e90a..489be40 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,6 +1,6 @@ - 2.1.1 + 2.3.0 Newbe Newbe diff --git a/src/Newbe.Mahua.CleverQQ.Native/CleverQQApi.cs b/src/Newbe.Mahua.CleverQQ.Native/CleverQQApi.cs deleted file mode 100644 index cbc341f..0000000 --- a/src/Newbe.Mahua.CleverQQ.Native/CleverQQApi.cs +++ /dev/null @@ -1,2370 +0,0 @@ -using System.ComponentModel; -using System.Runtime.InteropServices; -using Newbe.Mahua.NativeApi; - -namespace Newbe.Mahua.CleverQQ.Native -{ - public class CleverQQApi : ICleverQQApi - { - /// - /// 发送普通文本消息 - /// - /// 机器人QQ - /// 0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版) - /// 发送群信息、讨论组、群或讨论组临时会话信息时填写,如发送对象为好友或信息类型是0时可空 - /// 收信对象QQ - /// 信息内容 - /// -1为随机气泡 - /// - void ICleverQQApi.Api_SendMsg([Description("机器人QQ")] string 响应QQ, - [Description("0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版)")] - int 信息类型, [Description("发送群信息、讨论组、群或讨论组临时会话信息时填写,如发送对象为好友或信息类型是0时可空")] - string 收信对象群_讨论组, [Description("收信对象QQ")] string 收信QQ, [Description("信息内容")] string 内容, - [Description("-1为随机气泡")] int 气泡ID) - { - NativeMethods.Api_SendMsg(响应QQ, 信息类型, 收信对象群_讨论组, 收信QQ, 内容, 气泡ID); - } - - /// - /// 发送XML消息 - /// - /// 机器人QQ - /// 1普通 2匿名(匿名需要群开启) - /// 0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版) - /// 发送群信息、讨论组、群或讨论组临时会话信息时填写,如发送对象为好友或信息类型是0时可空 - /// 收信对象QQ - /// XML代码 - /// 0 基本 2 点歌 - /// - void ICleverQQApi.Api_SendXML([Description("机器人QQ")] string 响应QQ, [Description("1普通 2匿名(匿名需要群开启)")] int 发送方式, - [Description("0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版)")] - int 信息类型, [Description("发送群信息、讨论组、群或讨论组临时会话信息时填写,如发送对象为好友或信息类型是0时可空")] - string 收信对象所属群_讨论组, [Description("收信对象QQ")] string 收信对象QQ, [Description("XML代码")] string ObjectMsg, - [Description("0 基本 2 点歌")] int 结构子类型) - { - NativeMethods.Api_SendXML(响应QQ, 发送方式, 信息类型, 收信对象所属群_讨论组, 收信对象QQ, ObjectMsg, 结构子类型); - } - - /// - /// 发送JSON结构消息 - /// - /// 机器人QQ - /// 1普通 2匿名(匿名需要群开启) - /// 0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版) - /// 发送群信息、讨论组、群或讨论组临时会话信息时填,如发送对象为好友或信息类型是0时可空 - /// 收信对象QQ - /// Json结构内容 - /// - void ICleverQQApi.Api_SendJSON([Description("机器人QQ")] string 响应QQ, [Description("1普通 2匿名(匿名需要群开启)")] int 发送方式, - [Description("0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版)")] - int 信息类型, [Description("发送群信息、讨论组、群或讨论组临时会话信息时填,如发送对象为好友或信息类型是0时可空")] - string 收信对象所属群_讨论组, [Description("收信对象QQ")] string 收信对象QQ, [Description("Json结构内容")] string Json结构) - { - NativeMethods.Api_SendJSON(响应QQ, 发送方式, 信息类型, 收信对象所属群_讨论组, 收信对象QQ, Json结构); - } - - /// - /// 调用一次点一下,成功返回空,失败返回理由如:每天最多给他点十个赞哦,调用此Api时应注意频率,每人每日可被赞10次,每日每Q最多可赞50人 - /// - /// 机器人QQ - /// 填写被赞人QQ - /// - string ICleverQQApi.Api_UpVote([Description("机器人QQ")] string 响应QQ, [Description("填写被赞人QQ")] string 被赞QQ) - { - return NativeMethods.Api_UpVote(响应QQ, 被赞QQ); - } - - /// - /// 取得机器人网页操作用的Cookies - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetCookies([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetCookies(响应QQ); - } - - /// - /// 取得腾讯微博页面操作用参数P_skey - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetBlogPsKey([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetBlogPsKey(响应QQ); - } - - /// - /// 取得QQ空间页面操作用参数P_skey - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetZonePsKey([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetZonePsKey(响应QQ); - } - - /// - /// 取得QQ群页面操作用参数P_skey - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetGroupPsKey([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetGroupPsKey(响应QQ); - } - - /// - /// 取得腾讯课堂页面操作用参数P_skey - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetClassRoomPsKey([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetClassRoomPsKey(响应QQ); - } - - /// - /// 取得机器人网页操作用参数Bkn或G_tk - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetBkn([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetBkn(响应QQ); - } - - /// - /// 取得机器人网页操作用参数长Bkn或长G_tk - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetBkn32([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetBkn32(响应QQ); - } - - /// - /// 取得机器人网页操作用参数长Ldw - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetLongLdw([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetLongLdw(响应QQ); - } - - /// - /// 取得机器人网页操作用的Clientkey - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetClientkey([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetClientkey(响应QQ); - } - - /// - /// 取得机器人网页操作用的长Clientkey - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetLongClientkey([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetLongClientkey(响应QQ); - } - - /// - /// 管理员邀请对象入群,频率过快会失败 - /// - /// 机器人QQ - /// 被邀请人QQ号码(多个号码使用 #换行符 分割) - /// 被邀请加入的群号 - /// - void ICleverQQApi.Api_AdminInviteGroup([Description("机器人QQ")] string 响应QQ, - [Description("被邀请人QQ号码(多个号码使用 #换行符 分割)")] - string 对象QQ, [Description("被邀请加入的群号")] string 群号) - { - NativeMethods.Api_AdminInviteGroup(响应QQ, 对象QQ, 群号); - } - - /// - /// 非管理员邀请对象入群,频率过快会失败 - /// - /// 机器人QQ - /// 被邀请人QQ号码(多个号码使用 #换行符 分割) - /// 被邀请加入的群号 - /// - void ICleverQQApi.Api_NoAdminInviteGroup([Description("机器人QQ")] string 响应QQ, - [Description("被邀请人QQ号码(多个号码使用 #换行符 分割)")] - string 对象QQ, [Description("被邀请加入的群号")] string 群号) - { - NativeMethods.Api_NoAdminInviteGroup(响应QQ, 对象QQ, 群号); - } - - /// - /// 取对象昵称 - /// - /// 机器人QQ - /// 欲取得的QQ的号码 - /// - string ICleverQQApi.Api_GetNick([Description("机器人QQ")] string 响应QQ, [Description("欲取得的QQ的号码")] string 对象QQ) - { - return NativeMethods.Api_GetNick(响应QQ, 对象QQ); - } - - /// - /// 取对象群名片 - /// - /// 机器人QQ - /// 群号 - /// 欲取得群名片的QQ号码 - /// - string ICleverQQApi.Api_GetGroupCard([Description("机器人QQ")] string 响应QQ, [Description("群号")] string 群号, - [Description("欲取得群名片的QQ号码")] string 对象QQ) - { - return NativeMethods.Api_GetGroupCard(响应QQ, 群号, 对象QQ); - } - - /// - /// 取对象QQ等级 成功返回等级 失败返回-1 - /// - /// 机器人QQ - /// 欲取得的QQ的号码 - /// - int ICleverQQApi.Api_GetObjLevel([Description("机器人QQ")] string 响应QQ, [Description("欲取得的QQ的号码")] string 对象QQ) - { - return NativeMethods.Api_GetObjLevel(响应QQ, 对象QQ); - } - - /// - /// 取得好友列表,返回获取到的原始JSON格式信息,需自行解析 - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetFriendList([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetFriendList(响应QQ); - } - - /// - /// 取得好友列表,返回内容#换行符分割 - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetFriendList_B([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetFriendList_B(响应QQ); - } - - /// - /// 取得企点QQ外部联系人好友列表 成功返回Json列表 失败或无返回空 - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetQidianQQFriendsList([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetQidianQQFriendsList(响应QQ); - } - - /// - /// 取得群管理,返回获取到的原始JSON格式信息,需自行解析 - /// - /// 机器人QQ - /// 欲取管理员列表群号 - /// - string ICleverQQApi.Api_GetGroupAdmin([Description("机器人QQ")] string 响应QQ, [Description("欲取管理员列表群号")] string 群号) - { - return NativeMethods.Api_GetGroupAdmin(响应QQ, 群号); - } - - /// - /// 取得群列表,#换行符分割 不受最高获取500群限制(如需获取群名称请对应调用 Api_GetGroupName 理论群名获取不会频繁) - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetGroupList_A([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetGroupList_A(响应QQ); - } - - /// - /// 取得群列表,返回获取到的原始JSON格式信息,需自行解析 - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetGroupList([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetGroupList(响应QQ); - } - - /// - /// 取得群列表,返回获取到的原始JSON格式信息,需自行解析 - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetGroupList_B([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetGroupList_B(响应QQ); - } - - /// - /// 取得群成员列表,返回获取到的原始JSON格式信息,需自行解析(有群员昵称) - /// - /// 机器人QQ - /// 欲取群成员列表群号 - /// - string ICleverQQApi.Api_GetGroupMemberList([Description("机器人QQ")] string 响应QQ, - [Description("欲取群成员列表群号")] string 群号) - { - return NativeMethods.Api_GetGroupMemberList(响应QQ, 群号); - } - - /// - /// 取得群成员列表,返回QQ号和身份Json格式信息 失败返回空(无群员昵称) - /// - /// 机器人QQ - /// 欲取群成员列表群号 - /// - string ICleverQQApi.Api_GetGroupMemberList_B([Description("机器人QQ")] string 响应QQ, - [Description("欲取群成员列表群号")] string 群号) - { - return NativeMethods.Api_GetGroupMemberList_B(响应QQ, 群号); - } - - /// - /// 取得群成员列表,返回获取到的原始JSON格式信息,需自行解析(有群员昵称) - /// - /// 机器人QQ - /// 欲取群成员列表群号 - /// - string ICleverQQApi.Api_GetGroupMemberList_C([Description("机器人QQ")] string 响应QQ, - [Description("欲取群成员列表群号")] string 群号) - { - return NativeMethods.Api_GetGroupMemberList_C(响应QQ, 群号); - } - - /// - /// 查询对象或自己是否被禁言 禁言返回真 失败或未禁言返回假 - /// - /// 机器人QQ - /// 欲查询的群号 - /// 需要查询的对象QQ - /// - bool ICleverQQApi.Api_IsShutUp([Description("机器人QQ")] string 响应QQ, [Description("欲查询的群号")] string 群号, - [Description("需要查询的对象QQ")] string 对象QQ) - { - return NativeMethods.Api_IsShutUp(响应QQ, 群号, 对象QQ); - } - - /// - /// 群内禁言某人 - /// - /// 机器人QQ - /// 欲操作的群号 - /// 欲禁言的对象,如留空且机器人QQ为管理员,将设置该群为全群禁言 - /// 0为解除禁言 (禁言单位为秒),如为全群禁言,参数为非0,解除全群禁言为0 - /// - void ICleverQQApi.Api_ShutUP([Description("机器人QQ")] string 响应QQ, [Description("欲操作的群号")] string 群号, - [Description("欲禁言的对象,如留空且机器人QQ为管理员,将设置该群为全群禁言")] - string 对象QQ, [Description("0为解除禁言 (禁言单位为秒),如为全群禁言,参数为非0,解除全群禁言为0")] - int 时间) - { - NativeMethods.Api_ShutUP(响应QQ, 群号, 对象QQ, 时间); - } - - /// - /// 申请加群 - /// - /// 机器人QQ - /// 欲申请加入的群号 - /// 附加理由,可留空(需回答正确问题时,请填写问题答案) - /// - void ICleverQQApi.Api_JoinGroup([Description("机器人QQ")] string 响应QQ, [Description("欲申请加入的群号")] string 群号, - [Description("附加理由,可留空(需回答正确问题时,请填写问题答案)")] - string 理由) - { - NativeMethods.Api_JoinGroup(响应QQ, 群号, 理由); - } - - /// - /// 退群 - /// - /// 机器人QQ - /// 欲退出的群号 - /// - void ICleverQQApi.Api_QuitGroup([Description("机器人QQ")] string 响应QQ, [Description("欲退出的群号")] string 群号) - { - NativeMethods.Api_QuitGroup(响应QQ, 群号); - } - - /// - /// 上传图片(通过读入字节集方式),可使用网页链接或本地读入,成功返回该图片GUID,失败返回空 - /// - /// 机器人QQ - /// 1好友、临时会话 2群、讨论组 Ps:好友临时会话用类型 1,群讨论组用类型 2;当填写错误时,图片GUID发送不会成功 - /// 上传该图片所属的群号或QQ - /// 图片字节集数据 - /// - string ICleverQQApi.Api_UpLoadPic([Description("机器人QQ")] string 响应QQ, - [Description("1好友、临时会话 2群、讨论组 Ps:好友临时会话用类型 1,群讨论组用类型 2;当填写错误时,图片GUID发送不会成功")] - int 上传类型, [Description("上传该图片所属的群号或QQ")] string 参考对象, [Description("图片字节集数据")] byte[] 图片数据) - { - return NativeMethods.Api_UpLoadPic(响应QQ, 上传类型, 参考对象, 图片数据); - } - - /// - /// 根据图片GUID取得图片下载连接 - /// - /// 机器人QQ - /// 1 群 讨论组 2临时会话和好友 - /// 图片所属对应的群号和好友QQ(可随意乱填写) - /// 例如[IR:pic={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.jpg] - /// - string ICleverQQApi.Api_GetPicLink([Description("机器人QQ")] string 响应QQ, - [Description("1 群 讨论组 2临时会话和好友")] int 图片类型, [Description("图片所属对应的群号和好友QQ(可随意乱填写)")] - string 参考对象, [Description("例如[IR:pic={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.jpg]")] - string 图片GUID) - { - return NativeMethods.Api_GetPicLink(响应QQ, 图片类型, 参考对象, 图片GUID); - } - - /// - /// 向CleverQQ日志窗口发送一条本插件的日志,可用于调试输出需要的内容,或定位插件错误与运行状态 - /// - /// 任意想输出的文本格式信息 - /// - void ICleverQQApi.Api_OutPutLog([Description("任意想输出的文本格式信息")] string 内容) - { - NativeMethods.Api_OutPutLog(内容); - } - - /// - /// 腾讯Tea加密 - /// - /// 需加密的内容 - /// 这里填Api_SessionKey - /// - string ICleverQQApi.Api_Tea加密([Description("需加密的内容")] string 需加密内容, - [Description("这里填Api_SessionKey")] string 会话KEY) - { - return NativeMethods.Api_Tea加密(需加密内容, 会话KEY); - } - - /// - /// 腾讯Tea解密 - /// - /// 需解密的内容 - /// 这里填Api_SessionKey - /// - string ICleverQQApi.Api_Tea解密([Description("需解密的内容")] string 需解密内容, - [Description("这里填Api_SessionKey")] string 会话KEY) - { - return NativeMethods.Api_Tea解密(需解密内容, 会话KEY); - } - - /// - /// 获取会话SessionKey密钥 - /// - /// 欲获取的QQ - /// - string ICleverQQApi.Api_SessionKey([Description("欲获取的QQ")] string 响应QQ) - { - return NativeMethods.Api_SessionKey(响应QQ); - } - - /// - /// 群号转群ID - /// - /// - /// - string ICleverQQApi.Api_GNTransGID([Description("")] string 群号) - { - return NativeMethods.Api_GNTransGID(群号); - } - - /// - /// 群ID转群号 - /// - /// - /// - string ICleverQQApi.Api_GIDTransGN([Description("")] string 群ID) - { - return NativeMethods.Api_GIDTransGN(群ID); - } - - /// - /// 发布群公告(成功返回真,失败返回假),调用此API应保证响应QQ为管理员 - /// - /// 机器人QQ - /// 欲发布公告的群号 - /// 公告标题 - /// 公告内容 - /// - bool ICleverQQApi.Api_PBGroupNotic([Description("机器人QQ")] string 响应QQ, [Description("欲发布公告的群号")] string 群号, - [Description("公告标题")] string 标题, [Description("公告内容")] string 内容) - { - return NativeMethods.Api_PBGroupNotic(响应QQ, 群号, 标题, 内容); - } - - /// - /// 取群公告,返回该群最新公告 - /// - /// 机器人QQ - /// 欲取得公告的群号 - /// - string ICleverQQApi.Api_GetNotice([Description("机器人QQ")] string 响应QQ, [Description("欲取得公告的群号")] string 群号) - { - return NativeMethods.Api_GetNotice(响应QQ, 群号); - } - - /// - /// 向好友发起窗口抖动,调用此Api腾讯会限制频率 - /// - /// 机器人QQ - /// 接收抖动消息的QQ - /// - bool ICleverQQApi.Api_ShakeWindow([Description("机器人QQ")] string 响应QQ, [Description("接收抖动消息的QQ")] string 接收QQ) - { - return NativeMethods.Api_ShakeWindow(响应QQ, 接收QQ); - } - - /// - /// 某人申请入群 添加好友 被邀请入群 请求处理 - /// - /// 机器人QQ - /// 213请求入群 214我被邀请加入某群 215某人被邀请加入群 101某人请求添加好友 - /// 申请入群 被邀请人 请求添加好友人的QQ (当请求类型为214时这里为邀请人QQ) - /// 收到请求群号(好友添加时这里请为空) - /// 10同意 20拒绝 30忽略 - /// 拒绝入群,拒绝添加好友 附加信息 - /// - void ICleverQQApi.Api_HandleEvent([Description("机器人QQ")] string 响应QQ, - [Description("213请求入群 214我被邀请加入某群 215某人被邀请加入群 101某人请求添加好友")] - int 请求类型, [Description("申请入群 被邀请人 请求添加好友人的QQ (当请求类型为214时这里为邀请人QQ)")] - string 对象QQ, [Description("收到请求群号(好友添加时这里请为空)")] string 群号, [Description("10同意 20拒绝 30忽略")] int 处理方式, - [Description("拒绝入群,拒绝添加好友 附加信息")] string 附加信息) - { - NativeMethods.Api_HandleEvent(响应QQ, 请求类型, 对象QQ, 群号, 处理方式, 附加信息); - } - - /// - /// 处理群验证事件 第二模式(新手建议使用Api_HandleEvent) Pro可用 - /// - /// 机器人QQ - /// 213请求入群 214我被邀请加入某群 215某人被邀请加入群 101某人请求添加好友 - /// 申请入群 被邀请人 请求添加好友人的QQ (当请求类型为214时这里为邀请人QQ) - /// 收到请求群号(好友添加时这里请为空) - /// 需要处理事件的seq (好友事件留空) - /// 10同意 20拒绝 30忽略 - /// 拒绝入群,拒绝添加好友 附加信息 - /// - void ICleverQQApi.Api_HandleGroupEvent([Description("机器人QQ")] string 响应QQ, - [Description("213请求入群 214我被邀请加入某群 215某人被邀请加入群 101某人请求添加好友")] - int 请求类型, [Description("申请入群 被邀请人 请求添加好友人的QQ (当请求类型为214时这里为邀请人QQ)")] - string 对象QQ, [Description("收到请求群号(好友添加时这里请为空)")] string 群号, [Description("需要处理事件的seq (好友事件留空)")] string seq, - [Description("10同意 20拒绝 30忽略")] int 处理方式, [Description("拒绝入群,拒绝添加好友 附加信息")] string 附加信息) - { - NativeMethods.Api_HandleGroupEvent(响应QQ, 请求类型, 对象QQ, 群号, seq, 处理方式, 附加信息); - } - - /// - /// 开关群匿名消息发送功能 成功返回真 失败返回假 - /// - /// 机器人QQ - /// 需开关群匿名功能群号 - /// 真开 假关 - /// - bool ICleverQQApi.Api_SetAnon([Description("机器人QQ")] string 响应QQ, [Description("需开关群匿名功能群号")] string 群号, - [Description("真开 假关")] bool 开关) - { - return NativeMethods.Api_SetAnon(响应QQ, 群号, 开关); - } - - /// - /// 修改对象群名片 成功返回真 失败返回假 - /// - /// 机器人QQ - /// 对象所处群号 - /// 被修改名片人QQ - /// 需要修改的名片 - /// - bool ICleverQQApi.Api_SetGroupCard([Description("机器人QQ")] string 响应QQ, [Description("对象所处群号")] string 群号, - [Description("被修改名片人QQ")] string 对象QQ, [Description("需要修改的名片")] string 名片) - { - return NativeMethods.Api_SetGroupCard(响应QQ, 群号, 对象QQ, 名片); - } - - /// - /// 退出讨论组 - /// - /// 机器人QQ - /// 需退出的讨论组ID - /// - void ICleverQQApi.Api_QuitDisGroup([Description("机器人QQ")] string 响应QQ, [Description("需退出的讨论组ID")] string 讨论组ID) - { - NativeMethods.Api_QuitDisGroup(响应QQ, 讨论组ID); - } - - /// - /// 创建一个讨论组 成功返回讨论组ID 失败返回空 - /// - /// 机器人 - /// 建立的讨论组名称 - /// - string ICleverQQApi.Api_CreateDisGroup([Description("机器人")] string 响应QQ, [Description("建立的讨论组名称")] string 讨论组名称) - { - return NativeMethods.Api_CreateDisGroup(响应QQ, 讨论组名称); - } - - /// - /// 将对象移除讨论组 成功返回空 失败返回理由 - /// - /// 机器人QQ - /// 需执行的讨论组ID - /// 被执行对象 - /// - string ICleverQQApi.Api_KickDisGroupMBR([Description("机器人QQ")] string 响应QQ, - [Description("需执行的讨论组ID")] string 讨论组ID, [Description("被执行对象")] string 对象QQ) - { - return NativeMethods.Api_KickDisGroupMBR(响应QQ, 讨论组ID, 对象QQ); - } - - /// - /// 邀请对象加入讨论组 成功返回空 失败返回理由 - /// - /// 机器人QQ - /// 需执行的讨论组ID - /// 被邀请对象QQ 多个用 #换行符 分割 - /// - string ICleverQQApi.Api_InviteDisGroup([Description("机器人QQ")] string 响应QQ, - [Description("需执行的讨论组ID")] string 讨论组ID, [Description("被邀请对象QQ 多个用 #换行符 分割")] string 邀请对象QQ) - { - return NativeMethods.Api_InviteDisGroup(响应QQ, 讨论组ID, 邀请对象QQ); - } - - /// - /// 取出讨论组列表 (返回格式为 换行符分割开的) - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_GetDisGroupList([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_GetDisGroupList(响应QQ); - } - - /// - /// 取出讨论组成员列表 (返回格式为 换行符分割开的) - /// - /// 机器人QQ - /// 需获取的讨论组ID - /// - string ICleverQQApi.Api_GetDisGroupMemberList([Description("机器人QQ")] string 响应QQ, - [Description("需获取的讨论组ID")] string 讨论组ID) - { - return NativeMethods.Api_GetDisGroupMemberList(响应QQ, 讨论组ID); - } - - /// - /// 修改讨论组名称 - /// - /// 机器人QQ - /// 需执行的讨论组ID - /// 需修改的名称 - /// - void ICleverQQApi.Api_SetDisGroupName([Description("机器人QQ")] string 响应QQ, - [Description("需执行的讨论组ID")] string 讨论组ID, [Description("需修改的名称")] string 讨论组名称) - { - NativeMethods.Api_SetDisGroupName(响应QQ, 讨论组ID, 讨论组名称); - } - - /// - /// 将对象移除群 - /// - /// 机器人QQ - /// 被执行群号 - /// 被执行对象 - /// 真为不再接收,假为接收 - /// - void ICleverQQApi.Api_KickGroupMBR([Description("机器人QQ")] string 响应QQ, [Description("被执行群号")] string 群号, - [Description("被执行对象")] string 对象QQ, [Description("真为不再接收,假为接收")] bool 不再接收加群请求) - { - NativeMethods.Api_KickGroupMBR(响应QQ, 群号, 对象QQ, 不再接收加群请求); - } - - /// - /// 获取对象当前赞数量 失败返回-1 成功返回赞数 (获取频繁会出现失败现象,请自行写判断处理失败问题) - /// - /// - /// - /// - long ICleverQQApi.Api_GetObjVote([Description("")] string 响应QQ, [Description("")] string 对象QQ) - { - return NativeMethods.Api_GetObjVote(响应QQ, 对象QQ); - } - - /// - /// 上传QQ语音,成功返回语音GUID 失败返回空 - /// - /// 机器人QQ - /// 2、QQ群 讨论组 - /// 需上传的群号 - /// 语音字节集数据(AMR Silk编码) - /// - string ICleverQQApi.Api_UpLoadVoice([Description("机器人QQ")] string 响应QQ, [Description("2、QQ群 讨论组")] int 上传类型, - [Description("需上传的群号")] string 接收群号, [Description("语音字节集数据(AMR Silk编码)")] byte[] 语音数据) - { - return NativeMethods.Api_UpLoadVoice(响应QQ, 上传类型, 接收群号, 语音数据); - } - - /// - /// 通过语音GUID获取下载连接 失败返回空 - /// - /// 机器人QQ - /// [IR:Voi={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx}.amr] - /// - string ICleverQQApi.Api_GetVoiLink([Description("机器人QQ")] string 响应QQ, - [Description("[IR:Voi={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx}.amr]")] - string 语音GUID) - { - return NativeMethods.Api_GetVoiLink(响应QQ, 语音GUID); - } - - /// - /// 获取当前框架内部时间戳 - /// - /// - long ICleverQQApi.Api_GetTimeStamp() - { - return NativeMethods.Api_GetTimeStamp(); - } - - /// - /// 向腾讯发送原始封包(成功返回腾讯返回的包 失败返回空) - /// - /// - /// 封包内容 - /// - string ICleverQQApi.Api_SendPack([Description("")] string 响应QQ, [Description("封包内容")] string 封包) - { - return NativeMethods.Api_SendPack(响应QQ, 封包); - } - - /// - /// 获取对象资料 此方式为http,调用时应自行注意控制频率(成功返回JSON格式自行解析) - /// - /// - /// - /// - string ICleverQQApi.Api_GetObjInfo([Description("")] string 响应QQ, [Description("")] string 对象QQ) - { - return NativeMethods.Api_GetObjInfo(响应QQ, 对象QQ); - } - - /// - /// 取对象性别 1男 2女 未知或失败返回-1 - /// - /// - /// - /// - int ICleverQQApi.Api_GetGender([Description("")] string 响应QQ, [Description("")] string 对象QQ) - { - return NativeMethods.Api_GetGender(响应QQ, 对象QQ); - } - - /// - /// 取Q龄 成功返回Q龄 失败返回-1 - /// - /// - /// - /// - int ICleverQQApi.Api_GetQQAge([Description("")] string 响应QQ, [Description("")] string 对象QQ) - { - return NativeMethods.Api_GetQQAge(响应QQ, 对象QQ); - } - - /// - /// 取年龄 成功返回年龄 失败返回-1 - /// - /// - /// - /// - int ICleverQQApi.Api_GetAge([Description("")] string 响应QQ, [Description("")] string 对象QQ) - { - return NativeMethods.Api_GetAge(响应QQ, 对象QQ); - } - - /// - /// 取个人说明 - /// - /// - /// - /// - string ICleverQQApi.Api_GetPerExp([Description("")] string 响应QQ, [Description("")] string 对象QQ) - { - return NativeMethods.Api_GetPerExp(响应QQ, 对象QQ); - } - - /// - /// 取个人签名 - /// - /// - /// - /// - string ICleverQQApi.Api_GetSign([Description("")] string 响应QQ, [Description("")] string 对象QQ) - { - return NativeMethods.Api_GetSign(响应QQ, 对象QQ); - } - - /// - /// 取邮箱,获取对象QQ资料内邮箱栏为邮箱时返回 - /// - /// - /// - /// - string ICleverQQApi.Api_GetEmail([Description("")] string 响应QQ, [Description("")] string 对象QQ) - { - return NativeMethods.Api_GetEmail(响应QQ, 对象QQ); - } - - /// - /// 取QQ群名 - /// - /// - /// - /// - string ICleverQQApi.Api_GetGroupName([Description("")] string 响应QQ, [Description("")] string 群号) - { - return NativeMethods.Api_GetGroupName(响应QQ, 群号); - } - - /// - /// 取框架版本号 - /// - /// - string ICleverQQApi.Api_GetVer() - { - return NativeMethods.Api_GetVer(); - } - - /// - /// 取框架所有QQ号 换行符分割 - /// - /// - string ICleverQQApi.Api_GetQQList() - { - return NativeMethods.Api_GetQQList(); - } - - /// - /// 取框架在线QQ号 换行符分割 - /// - /// - string ICleverQQApi.Api_GetOnLineList() - { - return NativeMethods.Api_GetOnLineList(); - } - - /// - /// 取框架离线QQ号 (Pro版可用)换行符分割 - /// - /// - string ICleverQQApi.Api_GetOffLineList() - { - return NativeMethods.Api_GetOffLineList(); - } - - /// - /// 向框架帐号列表增加一个登录QQ 成功失败均返回理由(Pro版可用) - /// - /// - /// - /// 真 为自动登录 - /// - string ICleverQQApi.Api_AddQQ([Description("")] string 帐号, [Description("")] string 密码, - [Description("真 为自动登录")] bool 自动登录) - { - return NativeMethods.Api_AddQQ(帐号, 密码, 自动登录); - } - - /// - /// 删除框架帐号列表内指定QQ,不可在执行登录过程中删除QQ否则有几率引起错误(Pro版可用) - /// - /// - /// - string ICleverQQApi.Api_DelQQ([Description("")] string QQ号) - { - return NativeMethods.Api_DelQQ(QQ号); - } - - /// - /// 登录指定QQ,应确保QQ号码在列表中已存在 - /// - /// - /// - void ICleverQQApi.Api_LoginQQ([Description("")] string 登录QQ) - { - NativeMethods.Api_LoginQQ(登录QQ); - } - - /// - /// 令指定QQ下线,应确保QQ号码已在列表中且在线 - /// - /// - /// - void ICleverQQApi.Api_OffLineQQ([Description("")] string 响应QQ) - { - NativeMethods.Api_OffLineQQ(响应QQ); - } - - /// - /// 是否QQ好友 好友返回真 非好友或获取失败返回假 - /// - /// - /// - /// - bool ICleverQQApi.Api_IfFriend([Description("")] string 响应QQ, [Description("")] string 对象QQ) - { - return NativeMethods.Api_IfFriend(响应QQ, 对象QQ); - } - - /// - /// 修改机器人在线状态 昵称 个性签名 性别 - /// - /// - /// 1、我在线上 2、Q我吧 3、离开 4、忙碌 5、请勿打扰 6、隐身 7、修改昵称 8、修改个性签名 9、修改性别 - /// 类型为7和8时填写修改内容 类型9时“1”为男 “2”为女 其他填“” - /// - void ICleverQQApi.Api_SetRInf([Description("")] string 响应QQ, - [Description("1、我在线上 2、Q我吧 3、离开 4、忙碌 5、请勿打扰 6、隐身 7、修改昵称 8、修改个性签名 9、修改性别")] - int 类型, [Description("类型为7和8时填写修改内容 类型9时“1”为男 “2”为女 其他填“”")] - string 修改内容) - { - NativeMethods.Api_SetRInf(响应QQ, 类型, 修改内容); - } - - /// - /// 获取机器人状态信息,成功返回:昵称、帐号、在线状态、速度、收信、发信、在线时间,失败返回空 - /// - /// - /// - string ICleverQQApi.Api_GetRInf([Description("")] string 响应QQ) - { - return NativeMethods.Api_GetRInf(响应QQ); - } - - /// - /// 删除好友 成功返回真 失败返回假 - /// - /// 机器人QQ - /// 被删除对象 - /// - bool ICleverQQApi.Api_DelFriend([Description("机器人QQ")] string 响应QQ, [Description("被删除对象")] string 对象QQ) - { - return NativeMethods.Api_DelFriend(响应QQ, 对象QQ); - } - - /// - /// 将好友拉入黑名单 成功返回真 失败返回假 - /// - /// - /// - /// - bool ICleverQQApi.Api_AddBkList([Description("")] string 响应QQ, [Description("")] string 对象QQ) - { - return NativeMethods.Api_AddBkList(响应QQ, 对象QQ); - } - - /// - /// 解除好友黑名单 - /// - /// - /// - /// - void ICleverQQApi.Api_DelBkList([Description("")] string 响应QQ, [Description("")] string 对象QQ) - { - NativeMethods.Api_DelBkList(响应QQ, 对象QQ); - } - - /// - /// 屏蔽或接收某群消息 - /// - /// - /// - /// 真 为屏蔽接收 假为接收并提醒 - /// - void ICleverQQApi.Api_SetShieldedGroup([Description("")] string 响应QQ, [Description("")] string 群号, - [Description("真 为屏蔽接收 假为接收并提醒")] bool 类型) - { - NativeMethods.Api_SetShieldedGroup(响应QQ, 群号, 类型); - } - - /// - /// 好友语音上传并发送 (成功返回真 失败返回假) - /// - /// 机器人QQ - /// 接收语音人QQ - /// 语音字节集数据(AMR Silk编码) - /// - bool ICleverQQApi.Api_SendVoice([Description("机器人QQ")] string 响应QQ, [Description("接收语音人QQ")] string 接收QQ, - [Description("语音字节集数据(AMR Silk编码)")] byte[] 语音数据) - { - return NativeMethods.Api_SendVoice(响应QQ, 接收QQ, 语音数据); - } - - /// - /// 设置或取消群管理员 成功返回空 失败返回理由 - /// - /// - /// - /// - /// 真 为设置管理 假为取消管理 - /// - string ICleverQQApi.Api_SetAdmin([Description("")] string 响应QQ, [Description("")] string 群号, - [Description("")] string 对象QQ, [Description("真 为设置管理 假为取消管理")] bool 操作方式) - { - return NativeMethods.Api_SetAdmin(响应QQ, 群号, 对象QQ, 操作方式); - } - - /// - /// QQ群作业发布 - /// - /// - /// - /// - /// - /// - /// - void ICleverQQApi.Api_PBHomeWork([Description("")] string 响应QQ, [Description("")] string 群号, - [Description("")] string 作业名, [Description("")] string 标题, [Description("")] string 内容) - { - NativeMethods.Api_PBHomeWork(响应QQ, 群号, 作业名, 标题, 内容); - } - - /// - /// 取框架日志 - /// - /// - string ICleverQQApi.Api_GetLog() - { - return NativeMethods.Api_GetLog(); - } - - /// - /// 取得插件自身启用状态,启用真 禁用假 - /// - /// - bool ICleverQQApi.Api_IsEnable() - { - return NativeMethods.Api_IsEnable(); - } - - /// - /// 请求禁用插件自身 - /// - /// - void ICleverQQApi.Api_DisabledPlugin() - { - NativeMethods.Api_DisabledPlugin(); - } - - /// - /// 消息撤回(成功返回空,失败返回腾讯给出的理由)(Pro版可用) - /// - /// 机器人QQ - /// 需撤回消息群号 - /// 需撤回消息序号 - /// 需撤回消息ID - /// - string ICleverQQApi.Api_WithdrawMsg([Description("机器人QQ")] string 响应QQ, [Description("需撤回消息群号")] string 群号, - [Description("需撤回消息序号")] string 消息序号, [Description("需撤回消息ID")] string 消息ID) - { - return NativeMethods.Api_WithdrawMsg(响应QQ, 群号, 消息序号, 消息ID); - } - - /// - /// 置正在输入状态(发送消息后会打断状态) - /// - /// 机器人QQ - /// 置正在输入状态接收对象 - /// - void ICleverQQApi.Api_BeInput([Description("机器人QQ")] string 响应QQ, [Description("置正在输入状态接收对象")] string 对象QQ) - { - NativeMethods.Api_BeInput(响应QQ, 对象QQ); - } - - /// - /// 取对象好友添加验证方式 (00 允许任何人 01 需要身份验证 03 需回答正确问题 04 需回答问题 99 已经是好友) (Pro版可用) - /// - /// 机器人QQ - /// 需获取对象QQ - /// - string ICleverQQApi.Api_GetQQAddMode([Description("机器人QQ")] string 响应QQ, [Description("需获取对象QQ")] string 对象QQ) - { - return NativeMethods.Api_GetQQAddMode(响应QQ, 对象QQ); - } - - /// - /// 查询对象是否在线 - /// - /// 机器人QQ - /// 需获取对象QQ - /// - bool ICleverQQApi.Api_IsOnline([Description("机器人QQ")] string 响应QQ, [Description("需获取对象QQ")] string 对象QQ) - { - return NativeMethods.Api_IsOnline(响应QQ, 对象QQ); - } - - /// - /// 查询对象在线状态 返回 1、在线 2、Q我 3、离开 4、忙碌 5、勿扰 6、隐身或离线(Pro可用) - /// - /// 机器人QQ - /// 需获取对象QQ - /// - int ICleverQQApi.Api_GetOnlineState([Description("机器人QQ")] string 响应QQ, [Description("需获取对象QQ")] string 对象QQ) - { - return NativeMethods.Api_GetOnlineState(响应QQ, 对象QQ); - } - - /// - /// 查询对象群当前人数和上限人数 - /// - /// 机器人QQ - /// 需查询的群号 - /// - string ICleverQQApi.Api_GetGroupMemberNum([Description("机器人QQ")] string 响应QQ, [Description("需查询的群号")] string 群号) - { - return NativeMethods.Api_GetGroupMemberNum(响应QQ, 群号); - } - - /// - /// 查询对方是否允许在线状态临时会话消息(非讨论组和群临时)(Pro版可用) - /// - /// 机器人QQ - /// 需查询的对象QQ - /// - bool ICleverQQApi.Api_GetWpa([Description("机器人QQ")] string 响应QQ, [Description("需查询的对象QQ")] string 对象QQ) - { - return NativeMethods.Api_GetWpa(响应QQ, 对象QQ); - } - - /// - /// 查询对象群验证方式 1允许任何人 2需要验证消息 3不允许任何人加群 4需要正确回答问题 5需要回答问题并由管理员审核 6付费群 -1群号不存在(获取失败返回空)Pro版可用 - /// - /// 机器人QQ - /// 需查询的群号 - /// - string ICleverQQApi.Api_GetGroupAddMode([Description("机器人QQ")] string 响应QQ, [Description("需查询的群号")] string 群号) - { - return NativeMethods.Api_GetGroupAddMode(响应QQ, 群号); - } - - /// - /// 查询QQ群等级,成功返回等级(失败返回-1)Pro版可用 - /// - /// 机器人QQ - /// 需查询的群号 - /// - int ICleverQQApi.Api_GetGroupLv([Description("机器人QQ")] string 响应QQ, [Description("需查询的群号")] string 群号) - { - return NativeMethods.Api_GetGroupLv(响应QQ, 群号); - } - - /// - /// 修改好友备注姓名 - /// - /// 机器人QQ - /// 需获取对象好友QQ - /// 需要修改的备注姓名 - /// - void ICleverQQApi.Api_SetFriendsRemark([Description("机器人QQ")] string 响应QQ, - [Description("需获取对象好友QQ")] string 对象QQ, [Description("需要修改的备注姓名")] string 备注) - { - NativeMethods.Api_SetFriendsRemark(响应QQ, 对象QQ, 备注); - } - - /// - /// 取好友备注姓名(成功返回备注,失败或无备注返回空)Pro可用 - /// - /// 机器人QQ - /// 需获取对象好友QQ - /// - string ICleverQQApi.Api_GetFriendsRemark([Description("机器人QQ")] string 响应QQ, - [Description("需获取对象好友QQ")] string 对象QQ) - { - return NativeMethods.Api_GetFriendsRemark(响应QQ, 对象QQ); - } - - /// - /// QQ群签到(成功返回真 失败返回假) - /// - /// 机器人QQ - /// QQ群号 - /// 签到地名(Pro可自定义) - /// 想发表的内容 - /// - bool ICleverQQApi.Api_SignIn([Description("机器人QQ")] string 响应QQ, [Description("QQ群号")] string 群号, - [Description("签到地名(Pro可自定义)")] string 地名, [Description("想发表的内容")] string 想说的话) - { - return NativeMethods.Api_SignIn(响应QQ, 群号, 地名, 想说的话); - } - - /// - /// 抽取群礼物(返回结果Json,需群聊等级LV5后)Pro可用 - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_TakeGift([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_TakeGift(响应QQ); - } - - /// - /// 查询我的群礼物(返回Json格式)Pro可用 - /// - /// 机器人QQ - /// - string ICleverQQApi.Api_CheckGift([Description("机器人QQ")] string 响应QQ) - { - return NativeMethods.Api_CheckGift(响应QQ); - } - - /// - /// 送群礼物(成功返回1 失败返回-1)Pro可用 - /// - /// 机器人QQ - /// 需送礼物群号 - /// 赠予礼物对象 - /// 礼物pid - /// - int ICleverQQApi.Api_GiveGift([Description("机器人QQ")] string 响应QQ, [Description("需送礼物群号")] string 群号, - [Description("赠予礼物对象")] string 对象QQ, [Description("礼物pid")] string pid) - { - return NativeMethods.Api_GiveGift(响应QQ, 群号, 对象QQ, pid); - } - - /// - /// 查询对象或自身群聊等级(返回实际等级 失败返回-1)Pro可用 - /// - /// 机器人QQ - /// 查询群号 - /// 需查询对象或机器人QQ - /// - int ICleverQQApi.Api_GetGroupChatLv([Description("机器人QQ")] string 响应QQ, [Description("查询群号")] string 群号, - [Description("需查询对象或机器人QQ")] string 对象QQ) - { - return NativeMethods.Api_GetGroupChatLv(响应QQ, 群号, 对象QQ); - } - - /// - /// 查询对象或自身QQ达人天数(返回实际天数 失败返回-1)Pro可用 - /// - /// 机器人QQ - /// 需查询对象或机器人QQ - /// - int ICleverQQApi.Api_GetExpertDays([Description("机器人QQ")] string 响应QQ, [Description("需查询对象或机器人QQ")] string 对象QQ) - { - return NativeMethods.Api_GetExpertDays(响应QQ, 对象QQ); - } - - /// - /// 获取机器人QQ是否被屏蔽消息发送状态(真屏蔽 假未屏蔽) - /// - /// 机器人QQ - /// 0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话 - /// - bool ICleverQQApi.Api_GetShieldedState([Description("机器人QQ")] string 响应QQ, - [Description("0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话")] - int 消息类型) - { - return NativeMethods.Api_GetShieldedState(响应QQ, 消息类型); - } - - private static class NativeMethods - { - /// - /// 发送普通文本消息 - /// - /// 机器人QQ - /// 0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版) - /// 发送群信息、讨论组、群或讨论组临时会话信息时填写,如发送对象为好友或信息类型是0时可空 - /// 收信对象QQ - /// 信息内容 - /// -1为随机气泡 - /// - [DllImport("IRapi.dll")] - public static extern void Api_SendMsg([Description("机器人QQ")] string 响应QQ, - [Description("0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版)")] - int 信息类型, [Description("发送群信息、讨论组、群或讨论组临时会话信息时填写,如发送对象为好友或信息类型是0时可空")] - string 收信对象群_讨论组, [Description("收信对象QQ")] string 收信QQ, [Description("信息内容")] string 内容, - [Description("-1为随机气泡")] int 气泡ID); - - /// - /// 发送XML消息 - /// - /// 机器人QQ - /// 1普通 2匿名(匿名需要群开启) - /// 0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版) - /// 发送群信息、讨论组、群或讨论组临时会话信息时填写,如发送对象为好友或信息类型是0时可空 - /// 收信对象QQ - /// XML代码 - /// 0 基本 2 点歌 - /// - [DllImport("IRapi.dll")] - public static extern void Api_SendXML([Description("机器人QQ")] string 响应QQ, - [Description("1普通 2匿名(匿名需要群开启)")] int 发送方式, - [Description("0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版)")] - int 信息类型, [Description("发送群信息、讨论组、群或讨论组临时会话信息时填写,如发送对象为好友或信息类型是0时可空")] - string 收信对象所属群_讨论组, [Description("收信对象QQ")] string 收信对象QQ, [Description("XML代码")] string ObjectMsg, - [Description("0 基本 2 点歌")] int 结构子类型); - - /// - /// 发送JSON结构消息 - /// - /// 机器人QQ - /// 1普通 2匿名(匿名需要群开启) - /// 0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版) - /// 发送群信息、讨论组、群或讨论组临时会话信息时填,如发送对象为好友或信息类型是0时可空 - /// 收信对象QQ - /// Json结构内容 - /// - [DllImport("IRapi.dll")] - public static extern void Api_SendJSON([Description("机器人QQ")] string 响应QQ, - [Description("1普通 2匿名(匿名需要群开启)")] int 发送方式, - [Description("0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版)")] - int 信息类型, [Description("发送群信息、讨论组、群或讨论组临时会话信息时填,如发送对象为好友或信息类型是0时可空")] - string 收信对象所属群_讨论组, [Description("收信对象QQ")] string 收信对象QQ, [Description("Json结构内容")] string Json结构); - - /// - /// 调用一次点一下,成功返回空,失败返回理由如:每天最多给他点十个赞哦,调用此Api时应注意频率,每人每日可被赞10次,每日每Q最多可赞50人 - /// - /// 机器人QQ - /// 填写被赞人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_UpVote([Description("机器人QQ")] string 响应QQ, - [Description("填写被赞人QQ")] string 被赞QQ); - - /// - /// 取得机器人网页操作用的Cookies - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetCookies([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得腾讯微博页面操作用参数P_skey - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetBlogPsKey([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得QQ空间页面操作用参数P_skey - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetZonePsKey([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得QQ群页面操作用参数P_skey - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetGroupPsKey([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得腾讯课堂页面操作用参数P_skey - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetClassRoomPsKey([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得机器人网页操作用参数Bkn或G_tk - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetBkn([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得机器人网页操作用参数长Bkn或长G_tk - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetBkn32([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得机器人网页操作用参数长Ldw - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetLongLdw([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得机器人网页操作用的Clientkey - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetClientkey([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得机器人网页操作用的长Clientkey - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetLongClientkey([Description("机器人QQ")] string 响应QQ); - - /// - /// 管理员邀请对象入群,频率过快会失败 - /// - /// 机器人QQ - /// 被邀请人QQ号码(多个号码使用 #换行符 分割) - /// 被邀请加入的群号 - /// - [DllImport("IRapi.dll")] - public static extern void Api_AdminInviteGroup([Description("机器人QQ")] string 响应QQ, - [Description("被邀请人QQ号码(多个号码使用 #换行符 分割)")] - string 对象QQ, [Description("被邀请加入的群号")] string 群号); - - /// - /// 非管理员邀请对象入群,频率过快会失败 - /// - /// 机器人QQ - /// 被邀请人QQ号码(多个号码使用 #换行符 分割) - /// 被邀请加入的群号 - /// - [DllImport("IRapi.dll")] - public static extern void Api_NoAdminInviteGroup([Description("机器人QQ")] string 响应QQ, - [Description("被邀请人QQ号码(多个号码使用 #换行符 分割)")] - string 对象QQ, [Description("被邀请加入的群号")] string 群号); - - /// - /// 取对象昵称 - /// - /// 机器人QQ - /// 欲取得的QQ的号码 - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetNick([Description("机器人QQ")] string 响应QQ, - [Description("欲取得的QQ的号码")] string 对象QQ); - - /// - /// 取对象群名片 - /// - /// 机器人QQ - /// 群号 - /// 欲取得群名片的QQ号码 - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetGroupCard([Description("机器人QQ")] string 响应QQ, - [Description("群号")] string 群号, [Description("欲取得群名片的QQ号码")] string 对象QQ); - - /// - /// 取对象QQ等级 成功返回等级 失败返回-1 - /// - /// 机器人QQ - /// 欲取得的QQ的号码 - /// - [DllImport("IRapi.dll")] - public static extern int Api_GetObjLevel([Description("机器人QQ")] string 响应QQ, - [Description("欲取得的QQ的号码")] string 对象QQ); - - /// - /// 取得好友列表,返回获取到的原始JSON格式信息,需自行解析 - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetFriendList([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得好友列表,返回内容#换行符分割 - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetFriendList_B([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得企点QQ外部联系人好友列表 成功返回Json列表 失败或无返回空 - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetQidianQQFriendsList([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得群管理,返回获取到的原始JSON格式信息,需自行解析 - /// - /// 机器人QQ - /// 欲取管理员列表群号 - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetGroupAdmin([Description("机器人QQ")] string 响应QQ, - [Description("欲取管理员列表群号")] string 群号); - - /// - /// 取得群列表,#换行符分割 不受最高获取500群限制(如需获取群名称请对应调用 Api_GetGroupName 理论群名获取不会频繁) - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetGroupList_A([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得群列表,返回获取到的原始JSON格式信息,需自行解析 - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetGroupList([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得群列表,返回获取到的原始JSON格式信息,需自行解析 - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetGroupList_B([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得群成员列表,返回获取到的原始JSON格式信息,需自行解析(有群员昵称) - /// - /// 机器人QQ - /// 欲取群成员列表群号 - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetGroupMemberList([Description("机器人QQ")] string 响应QQ, - [Description("欲取群成员列表群号")] string 群号); - - /// - /// 取得群成员列表,返回QQ号和身份Json格式信息 失败返回空(无群员昵称) - /// - /// 机器人QQ - /// 欲取群成员列表群号 - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetGroupMemberList_B([Description("机器人QQ")] string 响应QQ, - [Description("欲取群成员列表群号")] string 群号); - - /// - /// 取得群成员列表,返回获取到的原始JSON格式信息,需自行解析(有群员昵称) - /// - /// 机器人QQ - /// 欲取群成员列表群号 - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetGroupMemberList_C([Description("机器人QQ")] string 响应QQ, - [Description("欲取群成员列表群号")] string 群号); - - /// - /// 查询对象或自己是否被禁言 禁言返回真 失败或未禁言返回假 - /// - /// 机器人QQ - /// 欲查询的群号 - /// 需要查询的对象QQ - /// - [DllImport("IRapi.dll")] - public static extern bool Api_IsShutUp([Description("机器人QQ")] string 响应QQ, - [Description("欲查询的群号")] string 群号, [Description("需要查询的对象QQ")] string 对象QQ); - - /// - /// 群内禁言某人 - /// - /// 机器人QQ - /// 欲操作的群号 - /// 欲禁言的对象,如留空且机器人QQ为管理员,将设置该群为全群禁言 - /// 0为解除禁言 (禁言单位为秒),如为全群禁言,参数为非0,解除全群禁言为0 - /// - [DllImport("IRapi.dll")] - public static extern void Api_ShutUP([Description("机器人QQ")] string 响应QQ, [Description("欲操作的群号")] string 群号, - [Description("欲禁言的对象,如留空且机器人QQ为管理员,将设置该群为全群禁言")] - string 对象QQ, [Description("0为解除禁言 (禁言单位为秒),如为全群禁言,参数为非0,解除全群禁言为0")] - int 时间); - - /// - /// 申请加群 - /// - /// 机器人QQ - /// 欲申请加入的群号 - /// 附加理由,可留空(需回答正确问题时,请填写问题答案) - /// - [DllImport("IRapi.dll")] - public static extern void Api_JoinGroup([Description("机器人QQ")] string 响应QQ, - [Description("欲申请加入的群号")] string 群号, [Description("附加理由,可留空(需回答正确问题时,请填写问题答案)")] - string 理由); - - /// - /// 退群 - /// - /// 机器人QQ - /// 欲退出的群号 - /// - [DllImport("IRapi.dll")] - public static extern void Api_QuitGroup([Description("机器人QQ")] string 响应QQ, - [Description("欲退出的群号")] string 群号); - - /// - /// 上传图片(通过读入字节集方式),可使用网页链接或本地读入,成功返回该图片GUID,失败返回空 - /// - /// 机器人QQ - /// 1好友、临时会话 2群、讨论组 Ps:好友临时会话用类型 1,群讨论组用类型 2;当填写错误时,图片GUID发送不会成功 - /// 上传该图片所属的群号或QQ - /// 图片字节集数据 - /// - [DllImport("IRapi.dll")] - public static extern string Api_UpLoadPic([Description("机器人QQ")] string 响应QQ, - [Description("1好友、临时会话 2群、讨论组 Ps:好友临时会话用类型 1,群讨论组用类型 2;当填写错误时,图片GUID发送不会成功")] - int 上传类型, [Description("上传该图片所属的群号或QQ")] string 参考对象, [Description("图片字节集数据")] byte[] 图片数据); - - /// - /// 根据图片GUID取得图片下载连接 - /// - /// 机器人QQ - /// 1 群 讨论组 2临时会话和好友 - /// 图片所属对应的群号和好友QQ(可随意乱填写) - /// 例如[IR:pic={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.jpg] - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetPicLink([Description("机器人QQ")] string 响应QQ, - [Description("1 群 讨论组 2临时会话和好友")] int 图片类型, [Description("图片所属对应的群号和好友QQ(可随意乱填写)")] - string 参考对象, [Description("例如[IR:pic={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.jpg]")] - string 图片GUID); - - /// - /// 向CleverQQ日志窗口发送一条本插件的日志,可用于调试输出需要的内容,或定位插件错误与运行状态 - /// - /// 任意想输出的文本格式信息 - /// - [DllImport("IRapi.dll")] - public static extern void Api_OutPutLog([Description("任意想输出的文本格式信息")] string 内容); - - /// - /// 腾讯Tea加密 - /// - /// 需加密的内容 - /// 这里填Api_SessionKey - /// - [DllImport("IRapi.dll")] - public static extern string Api_Tea加密([Description("需加密的内容")] string 需加密内容, - [Description("这里填Api_SessionKey")] string 会话KEY); - - /// - /// 腾讯Tea解密 - /// - /// 需解密的内容 - /// 这里填Api_SessionKey - /// - [DllImport("IRapi.dll")] - public static extern string Api_Tea解密([Description("需解密的内容")] string 需解密内容, - [Description("这里填Api_SessionKey")] string 会话KEY); - - /// - /// 获取会话SessionKey密钥 - /// - /// 欲获取的QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_SessionKey([Description("欲获取的QQ")] string 响应QQ); - - /// - /// 群号转群ID - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern string Api_GNTransGID([Description("")] string 群号); - - /// - /// 群ID转群号 - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern string Api_GIDTransGN([Description("")] string 群ID); - - /// - /// 发布群公告(成功返回真,失败返回假),调用此API应保证响应QQ为管理员 - /// - /// 机器人QQ - /// 欲发布公告的群号 - /// 公告标题 - /// 公告内容 - /// - [DllImport("IRapi.dll")] - public static extern bool Api_PBGroupNotic([Description("机器人QQ")] string 响应QQ, - [Description("欲发布公告的群号")] string 群号, [Description("公告标题")] string 标题, [Description("公告内容")] string 内容); - - /// - /// 取群公告,返回该群最新公告 - /// - /// 机器人QQ - /// 欲取得公告的群号 - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetNotice([Description("机器人QQ")] string 响应QQ, - [Description("欲取得公告的群号")] string 群号); - - /// - /// 向好友发起窗口抖动,调用此Api腾讯会限制频率 - /// - /// 机器人QQ - /// 接收抖动消息的QQ - /// - [DllImport("IRapi.dll")] - public static extern bool Api_ShakeWindow([Description("机器人QQ")] string 响应QQ, - [Description("接收抖动消息的QQ")] string 接收QQ); - - /// - /// 某人申请入群 添加好友 被邀请入群 请求处理 - /// - /// 机器人QQ - /// 213请求入群 214我被邀请加入某群 215某人被邀请加入群 101某人请求添加好友 - /// 申请入群 被邀请人 请求添加好友人的QQ (当请求类型为214时这里为邀请人QQ) - /// 收到请求群号(好友添加时这里请为空) - /// 10同意 20拒绝 30忽略 - /// 拒绝入群,拒绝添加好友 附加信息 - /// - [DllImport("IRapi.dll")] - public static extern void Api_HandleEvent([Description("机器人QQ")] string 响应QQ, - [Description("213请求入群 214我被邀请加入某群 215某人被邀请加入群 101某人请求添加好友")] - int 请求类型, [Description("申请入群 被邀请人 请求添加好友人的QQ (当请求类型为214时这里为邀请人QQ)")] - string 对象QQ, [Description("收到请求群号(好友添加时这里请为空)")] string 群号, [Description("10同意 20拒绝 30忽略")] int 处理方式, - [Description("拒绝入群,拒绝添加好友 附加信息")] string 附加信息); - - /// - /// 处理群验证事件 第二模式(新手建议使用Api_HandleEvent) Pro可用 - /// - /// 机器人QQ - /// 213请求入群 214我被邀请加入某群 215某人被邀请加入群 101某人请求添加好友 - /// 申请入群 被邀请人 请求添加好友人的QQ (当请求类型为214时这里为邀请人QQ) - /// 收到请求群号(好友添加时这里请为空) - /// 需要处理事件的seq (好友事件留空) - /// 10同意 20拒绝 30忽略 - /// 拒绝入群,拒绝添加好友 附加信息 - /// - [DllImport("IRapi.dll")] - public static extern void Api_HandleGroupEvent([Description("机器人QQ")] string 响应QQ, - [Description("213请求入群 214我被邀请加入某群 215某人被邀请加入群 101某人请求添加好友")] - int 请求类型, [Description("申请入群 被邀请人 请求添加好友人的QQ (当请求类型为214时这里为邀请人QQ)")] - string 对象QQ, [Description("收到请求群号(好友添加时这里请为空)")] string 群号, - [Description("需要处理事件的seq (好友事件留空)")] string seq, [Description("10同意 20拒绝 30忽略")] int 处理方式, - [Description("拒绝入群,拒绝添加好友 附加信息")] string 附加信息); - - /// - /// 开关群匿名消息发送功能 成功返回真 失败返回假 - /// - /// 机器人QQ - /// 需开关群匿名功能群号 - /// 真开 假关 - /// - [DllImport("IRapi.dll")] - public static extern bool Api_SetAnon([Description("机器人QQ")] string 响应QQ, - [Description("需开关群匿名功能群号")] string 群号, [Description("真开 假关")] bool 开关); - - /// - /// 修改对象群名片 成功返回真 失败返回假 - /// - /// 机器人QQ - /// 对象所处群号 - /// 被修改名片人QQ - /// 需要修改的名片 - /// - [DllImport("IRapi.dll")] - public static extern bool Api_SetGroupCard([Description("机器人QQ")] string 响应QQ, - [Description("对象所处群号")] string 群号, [Description("被修改名片人QQ")] string 对象QQ, - [Description("需要修改的名片")] string 名片); - - /// - /// 退出讨论组 - /// - /// 机器人QQ - /// 需退出的讨论组ID - /// - [DllImport("IRapi.dll")] - public static extern void Api_QuitDisGroup([Description("机器人QQ")] string 响应QQ, - [Description("需退出的讨论组ID")] string 讨论组ID); - - /// - /// 创建一个讨论组 成功返回讨论组ID 失败返回空 - /// - /// 机器人 - /// 建立的讨论组名称 - /// - [DllImport("IRapi.dll")] - public static extern string Api_CreateDisGroup([Description("机器人")] string 响应QQ, - [Description("建立的讨论组名称")] string 讨论组名称); - - /// - /// 将对象移除讨论组 成功返回空 失败返回理由 - /// - /// 机器人QQ - /// 需执行的讨论组ID - /// 被执行对象 - /// - [DllImport("IRapi.dll")] - public static extern string Api_KickDisGroupMBR([Description("机器人QQ")] string 响应QQ, - [Description("需执行的讨论组ID")] string 讨论组ID, [Description("被执行对象")] string 对象QQ); - - /// - /// 邀请对象加入讨论组 成功返回空 失败返回理由 - /// - /// 机器人QQ - /// 需执行的讨论组ID - /// 被邀请对象QQ 多个用 #换行符 分割 - /// - [DllImport("IRapi.dll")] - public static extern string Api_InviteDisGroup([Description("机器人QQ")] string 响应QQ, - [Description("需执行的讨论组ID")] string 讨论组ID, [Description("被邀请对象QQ 多个用 #换行符 分割")] string 邀请对象QQ); - - /// - /// 取出讨论组列表 (返回格式为 换行符分割开的) - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetDisGroupList([Description("机器人QQ")] string 响应QQ); - - /// - /// 取出讨论组成员列表 (返回格式为 换行符分割开的) - /// - /// 机器人QQ - /// 需获取的讨论组ID - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetDisGroupMemberList([Description("机器人QQ")] string 响应QQ, - [Description("需获取的讨论组ID")] string 讨论组ID); - - /// - /// 修改讨论组名称 - /// - /// 机器人QQ - /// 需执行的讨论组ID - /// 需修改的名称 - /// - [DllImport("IRapi.dll")] - public static extern void Api_SetDisGroupName([Description("机器人QQ")] string 响应QQ, - [Description("需执行的讨论组ID")] string 讨论组ID, [Description("需修改的名称")] string 讨论组名称); - - /// - /// 将对象移除群 - /// - /// 机器人QQ - /// 被执行群号 - /// 被执行对象 - /// 真为不再接收,假为接收 - /// - [DllImport("IRapi.dll")] - public static extern void Api_KickGroupMBR([Description("机器人QQ")] string 响应QQ, - [Description("被执行群号")] string 群号, [Description("被执行对象")] string 对象QQ, - [Description("真为不再接收,假为接收")] bool 不再接收加群请求); - - /// - /// 获取对象当前赞数量 失败返回-1 成功返回赞数 (获取频繁会出现失败现象,请自行写判断处理失败问题) - /// - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern long Api_GetObjVote([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 上传QQ语音,成功返回语音GUID 失败返回空 - /// - /// 机器人QQ - /// 2、QQ群 讨论组 - /// 需上传的群号 - /// 语音字节集数据(AMR Silk编码) - /// - [DllImport("IRapi.dll")] - public static extern string Api_UpLoadVoice([Description("机器人QQ")] string 响应QQ, - [Description("2、QQ群 讨论组")] int 上传类型, [Description("需上传的群号")] string 接收群号, - [Description("语音字节集数据(AMR Silk编码)")] byte[] 语音数据); - - /// - /// 通过语音GUID获取下载连接 失败返回空 - /// - /// 机器人QQ - /// [IR:Voi={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx}.amr] - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetVoiLink([Description("机器人QQ")] string 响应QQ, - [Description("[IR:Voi={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx}.amr]")] - string 语音GUID); - - /// - /// 获取当前框架内部时间戳 - /// - /// - [DllImport("IRapi.dll")] - public static extern long Api_GetTimeStamp(); - - /// - /// 向腾讯发送原始封包(成功返回腾讯返回的包 失败返回空) - /// - /// - /// 封包内容 - /// - [DllImport("IRapi.dll")] - public static extern string Api_SendPack([Description("")] string 响应QQ, [Description("封包内容")] string 封包); - - /// - /// 获取对象资料 此方式为http,调用时应自行注意控制频率(成功返回JSON格式自行解析) - /// - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetObjInfo([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 取对象性别 1男 2女 未知或失败返回-1 - /// - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern int Api_GetGender([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 取Q龄 成功返回Q龄 失败返回-1 - /// - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern int Api_GetQQAge([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 取年龄 成功返回年龄 失败返回-1 - /// - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern int Api_GetAge([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 取个人说明 - /// - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetPerExp([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 取个人签名 - /// - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetSign([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 取邮箱,获取对象QQ资料内邮箱栏为邮箱时返回 - /// - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetEmail([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 取QQ群名 - /// - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetGroupName([Description("")] string 响应QQ, [Description("")] string 群号); - - /// - /// 取框架版本号 - /// - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetVer(); - - /// - /// 取框架所有QQ号 换行符分割 - /// - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetQQList(); - - /// - /// 取框架在线QQ号 换行符分割 - /// - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetOnLineList(); - - /// - /// 取框架离线QQ号 (Pro版可用)换行符分割 - /// - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetOffLineList(); - - /// - /// 向框架帐号列表增加一个登录QQ 成功失败均返回理由(Pro版可用) - /// - /// - /// - /// 真 为自动登录 - /// - [DllImport("IRapi.dll")] - public static extern string Api_AddQQ([Description("")] string 帐号, [Description("")] string 密码, - [Description("真 为自动登录")] bool 自动登录); - - /// - /// 删除框架帐号列表内指定QQ,不可在执行登录过程中删除QQ否则有几率引起错误(Pro版可用) - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern string Api_DelQQ([Description("")] string QQ号); - - /// - /// 登录指定QQ,应确保QQ号码在列表中已存在 - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern void Api_LoginQQ([Description("")] string 登录QQ); - - /// - /// 令指定QQ下线,应确保QQ号码已在列表中且在线 - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern void Api_OffLineQQ([Description("")] string 响应QQ); - - /// - /// 是否QQ好友 好友返回真 非好友或获取失败返回假 - /// - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern bool Api_IfFriend([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 修改机器人在线状态 昵称 个性签名 性别 - /// - /// - /// 1、我在线上 2、Q我吧 3、离开 4、忙碌 5、请勿打扰 6、隐身 7、修改昵称 8、修改个性签名 9、修改性别 - /// 类型为7和8时填写修改内容 类型9时“1”为男 “2”为女 其他填“” - /// - [DllImport("IRapi.dll")] - public static extern void Api_SetRInf([Description("")] string 响应QQ, - [Description("1、我在线上 2、Q我吧 3、离开 4、忙碌 5、请勿打扰 6、隐身 7、修改昵称 8、修改个性签名 9、修改性别")] - int 类型, [Description("类型为7和8时填写修改内容 类型9时“1”为男 “2”为女 其他填“”")] - string 修改内容); - - /// - /// 获取机器人状态信息,成功返回:昵称、帐号、在线状态、速度、收信、发信、在线时间,失败返回空 - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetRInf([Description("")] string 响应QQ); - - /// - /// 删除好友 成功返回真 失败返回假 - /// - /// 机器人QQ - /// 被删除对象 - /// - [DllImport("IRapi.dll")] - public static extern bool Api_DelFriend([Description("机器人QQ")] string 响应QQ, - [Description("被删除对象")] string 对象QQ); - - /// - /// 将好友拉入黑名单 成功返回真 失败返回假 - /// - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern bool Api_AddBkList([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 解除好友黑名单 - /// - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern void Api_DelBkList([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 屏蔽或接收某群消息 - /// - /// - /// - /// 真 为屏蔽接收 假为接收并提醒 - /// - [DllImport("IRapi.dll")] - public static extern void Api_SetShieldedGroup([Description("")] string 响应QQ, [Description("")] string 群号, - [Description("真 为屏蔽接收 假为接收并提醒")] bool 类型); - - /// - /// 好友语音上传并发送 (成功返回真 失败返回假) - /// - /// 机器人QQ - /// 接收语音人QQ - /// 语音字节集数据(AMR Silk编码) - /// - [DllImport("IRapi.dll")] - public static extern bool Api_SendVoice([Description("机器人QQ")] string 响应QQ, - [Description("接收语音人QQ")] string 接收QQ, [Description("语音字节集数据(AMR Silk编码)")] byte[] 语音数据); - - /// - /// 设置或取消群管理员 成功返回空 失败返回理由 - /// - /// - /// - /// - /// 真 为设置管理 假为取消管理 - /// - [DllImport("IRapi.dll")] - public static extern string Api_SetAdmin([Description("")] string 响应QQ, [Description("")] string 群号, - [Description("")] string 对象QQ, [Description("真 为设置管理 假为取消管理")] bool 操作方式); - - /// - /// QQ群作业发布 - /// - /// - /// - /// - /// - /// - /// - [DllImport("IRapi.dll")] - public static extern void Api_PBHomeWork([Description("")] string 响应QQ, [Description("")] string 群号, - [Description("")] string 作业名, [Description("")] string 标题, [Description("")] string 内容); - - /// - /// 取框架日志 - /// - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetLog(); - - /// - /// 取得插件自身启用状态,启用真 禁用假 - /// - /// - [DllImport("IRapi.dll")] - public static extern bool Api_IsEnable(); - - /// - /// 请求禁用插件自身 - /// - /// - [DllImport("IRapi.dll")] - public static extern void Api_DisabledPlugin(); - - /// - /// 消息撤回(成功返回空,失败返回腾讯给出的理由)(Pro版可用) - /// - /// 机器人QQ - /// 需撤回消息群号 - /// 需撤回消息序号 - /// 需撤回消息ID - /// - [DllImport("IRapi.dll")] - public static extern string Api_WithdrawMsg([Description("机器人QQ")] string 响应QQ, - [Description("需撤回消息群号")] string 群号, [Description("需撤回消息序号")] string 消息序号, - [Description("需撤回消息ID")] string 消息ID); - - /// - /// 置正在输入状态(发送消息后会打断状态) - /// - /// 机器人QQ - /// 置正在输入状态接收对象 - /// - [DllImport("IRapi.dll")] - public static extern void Api_BeInput([Description("机器人QQ")] string 响应QQ, - [Description("置正在输入状态接收对象")] string 对象QQ); - - /// - /// 取对象好友添加验证方式 (00 允许任何人 01 需要身份验证 03 需回答正确问题 04 需回答问题 99 已经是好友) (Pro版可用) - /// - /// 机器人QQ - /// 需获取对象QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetQQAddMode([Description("机器人QQ")] string 响应QQ, - [Description("需获取对象QQ")] string 对象QQ); - - /// - /// 查询对象是否在线 - /// - /// 机器人QQ - /// 需获取对象QQ - /// - [DllImport("IRapi.dll")] - public static extern bool Api_IsOnline([Description("机器人QQ")] string 响应QQ, - [Description("需获取对象QQ")] string 对象QQ); - - /// - /// 查询对象在线状态 返回 1、在线 2、Q我 3、离开 4、忙碌 5、勿扰 6、隐身或离线(Pro可用) - /// - /// 机器人QQ - /// 需获取对象QQ - /// - [DllImport("IRapi.dll")] - public static extern int Api_GetOnlineState([Description("机器人QQ")] string 响应QQ, - [Description("需获取对象QQ")] string 对象QQ); - - /// - /// 查询对象群当前人数和上限人数 - /// - /// 机器人QQ - /// 需查询的群号 - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetGroupMemberNum([Description("机器人QQ")] string 响应QQ, - [Description("需查询的群号")] string 群号); - - /// - /// 查询对方是否允许在线状态临时会话消息(非讨论组和群临时)(Pro版可用) - /// - /// 机器人QQ - /// 需查询的对象QQ - /// - [DllImport("IRapi.dll")] - public static extern bool Api_GetWpa([Description("机器人QQ")] string 响应QQ, - [Description("需查询的对象QQ")] string 对象QQ); - - /// - /// 查询对象群验证方式 1允许任何人 2需要验证消息 3不允许任何人加群 4需要正确回答问题 5需要回答问题并由管理员审核 6付费群 -1群号不存在(获取失败返回空)Pro版可用 - /// - /// 机器人QQ - /// 需查询的群号 - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetGroupAddMode([Description("机器人QQ")] string 响应QQ, - [Description("需查询的群号")] string 群号); - - /// - /// 查询QQ群等级,成功返回等级(失败返回-1)Pro版可用 - /// - /// 机器人QQ - /// 需查询的群号 - /// - [DllImport("IRapi.dll")] - public static extern int Api_GetGroupLv([Description("机器人QQ")] string 响应QQ, - [Description("需查询的群号")] string 群号); - - /// - /// 修改好友备注姓名 - /// - /// 机器人QQ - /// 需获取对象好友QQ - /// 需要修改的备注姓名 - /// - [DllImport("IRapi.dll")] - public static extern void Api_SetFriendsRemark([Description("机器人QQ")] string 响应QQ, - [Description("需获取对象好友QQ")] string 对象QQ, [Description("需要修改的备注姓名")] string 备注); - - /// - /// 取好友备注姓名(成功返回备注,失败或无备注返回空)Pro可用 - /// - /// 机器人QQ - /// 需获取对象好友QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_GetFriendsRemark([Description("机器人QQ")] string 响应QQ, - [Description("需获取对象好友QQ")] string 对象QQ); - - /// - /// QQ群签到(成功返回真 失败返回假) - /// - /// 机器人QQ - /// QQ群号 - /// 签到地名(Pro可自定义) - /// 想发表的内容 - /// - [DllImport("IRapi.dll")] - public static extern bool Api_SignIn([Description("机器人QQ")] string 响应QQ, [Description("QQ群号")] string 群号, - [Description("签到地名(Pro可自定义)")] string 地名, [Description("想发表的内容")] string 想说的话); - - /// - /// 抽取群礼物(返回结果Json,需群聊等级LV5后)Pro可用 - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_TakeGift([Description("机器人QQ")] string 响应QQ); - - /// - /// 查询我的群礼物(返回Json格式)Pro可用 - /// - /// 机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern string Api_CheckGift([Description("机器人QQ")] string 响应QQ); - - /// - /// 送群礼物(成功返回1 失败返回-1)Pro可用 - /// - /// 机器人QQ - /// 需送礼物群号 - /// 赠予礼物对象 - /// 礼物pid - /// - [DllImport("IRapi.dll")] - public static extern int Api_GiveGift([Description("机器人QQ")] string 响应QQ, [Description("需送礼物群号")] string 群号, - [Description("赠予礼物对象")] string 对象QQ, [Description("礼物pid")] string pid); - - /// - /// 查询对象或自身群聊等级(返回实际等级 失败返回-1)Pro可用 - /// - /// 机器人QQ - /// 查询群号 - /// 需查询对象或机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern int Api_GetGroupChatLv([Description("机器人QQ")] string 响应QQ, - [Description("查询群号")] string 群号, [Description("需查询对象或机器人QQ")] string 对象QQ); - - /// - /// 查询对象或自身QQ达人天数(返回实际天数 失败返回-1)Pro可用 - /// - /// 机器人QQ - /// 需查询对象或机器人QQ - /// - [DllImport("IRapi.dll")] - public static extern int Api_GetExpertDays([Description("机器人QQ")] string 响应QQ, - [Description("需查询对象或机器人QQ")] string 对象QQ); - - /// - /// 获取机器人QQ是否被屏蔽消息发送状态(真屏蔽 假未屏蔽) - /// - /// 机器人QQ - /// 0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话 - /// - [DllImport("IRapi.dll")] - public static extern bool Api_GetShieldedState([Description("机器人QQ")] string 响应QQ, - [Description("0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话")] - int 消息类型); - } - } -} \ No newline at end of file diff --git a/src/Newbe.Mahua.CleverQQ.Native/MahuaModule.cs b/src/Newbe.Mahua.CleverQQ.Native/MahuaModule.cs deleted file mode 100644 index 29cfc2a..0000000 --- a/src/Newbe.Mahua.CleverQQ.Native/MahuaModule.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Autofac; -using Newbe.Mahua.NativeApi; - -namespace Newbe.Mahua.CleverQQ.Native -{ - public class MahuaModule : IMahuaModule - { - Module[] IMahuaModule.GetModules() - { - return new Module[] { new CleverQQApiModule() }; - } - - private class CleverQQApiModule : Module - { - protected override void Load(ContainerBuilder builder) - { - base.Load(builder); - builder.RegisterType().As().InstancePerLifetimeScope(); - } - } - } -} diff --git a/src/Newbe.Mahua.CleverQQ.Native/Newbe.Mahua.CleverQQ.Native.csproj b/src/Newbe.Mahua.CleverQQ.Native/Newbe.Mahua.CleverQQ.Native.csproj deleted file mode 100644 index b3dc391..0000000 --- a/src/Newbe.Mahua.CleverQQ.Native/Newbe.Mahua.CleverQQ.Native.csproj +++ /dev/null @@ -1,145 +0,0 @@ - - - - - Debug - AnyCPU - {7BC544C3-166E-407C-893C-09933B98896D} - Library - Properties - Newbe.Mahua.CleverQQ.Native - Newbe.Mahua.CleverQQ.Native - v4.6.1 - 512 - publish\ - true - Disk - false - Foreground - 7 - Days - false - false - true - 0 - 1.0.0.%2a - false - false - true - - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - bin\Debug\Newbe.Mahua.CleverQQ.Native.xml - true - 1591 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - true - bin\Release\Newbe.Mahua.CleverQQ.Native.xml - 1591 - - - AnyCPU - - - 63D4A8DC-09A7-4397-9582-3FC442ED66CC - DllExport.dll - System.Runtime.InteropServices - true - false - AnyCPU - 1 - false - false - false - 30000 - 2 - - - - ..\packages\Autofac.4.9.1\lib\net45\Autofac.dll - True - - - $(SolutionDir)packages\DllExport.1.6.2\gcache\metalib\$(DllExportNamespace)\$(DllExportMetaLibName) - False - False - - - - - - - - - - - - - - - - - - True - - - - - - - - - False - Microsoft .NET Framework 4.5.2 %28x86 和 x64%29 - true - - - False - .NET Framework 3.5 SP1 - false - - - - - {bedd1f32-12ff-48ac-80df-84cbb1b61835} - Newbe.Mahua.CleverQQ - - - {12392cce-bdbb-4f57-ad37-8024dfa8077c} - Newbe.Mahua.PluginLoader - - - {335c80ce-cab8-4a09-b3f4-5502c7c82498} - Newbe.Mahua - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Newbe.Mahua.CleverQQ.Native/PluginApiExporter.cs b/src/Newbe.Mahua.CleverQQ.Native/PluginApiExporter.cs deleted file mode 100644 index e280d96..0000000 --- a/src/Newbe.Mahua.CleverQQ.Native/PluginApiExporter.cs +++ /dev/null @@ -1,121 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using Newbe.Mahua.CleverQQ.MahuaEventOutputs; - -namespace Newbe.Mahua.CleverQQ.Native -{ - public class PluginApiExporter : IPluginApiExporter - { - /// - /// 程序入口 - /// - /// - [DllExport(ExportName = nameof(IR_Create), CallingConvention = CallingConvention.StdCall)] - public static string IR_Create() - { - PluginInstanceManager.GetInstance().HandleMahuaOutput(new Create()); - return - $"插件名称{{{AgentInfo.Instance.Id}}}\n插件版本{{{AgentInfo.Instance.Version}}}\n插件作者{{{AgentInfo.Instance.Author}}}\n插件说明{{{AgentInfo.Instance.Description}}}\n" - + "插件skey{8956RTEWDFG3216598WERDF3}\n插件sdk{S3}"; - } - - /// - /// 接收所有原始封包内容 - /// - /// 响应的QQ - /// UDP收到的原始信息 - /// 经过Tea加密的原文 - /// 用于登录网页所需cookies - /// 通信包所用的加密秘钥 - /// 登录网页服务用的秘钥 - /// 返回-1 已收到并拒绝处理,返回0 未收到并不处理,返回1 处理完且继续执行,返回2 处理完毕并不再让其他插件处理 (Pro版可用) - [DllExport(ExportName = nameof(IR_Message), CallingConvention = CallingConvention.StdCall)] - public static int IR_Message(string RobotQQ, int MsgType, string Msg, string Cookies, string SessionKey, - string ClientKey) - { - PluginInstanceManager.GetInstance().HandleMahuaOutput(new Message - { - RobotQQ = RobotQQ, - MsgType = MsgType, - Msg = Msg, - Cookies = Cookies, - SessionKey = SessionKey, - ClientKey = ClientKey - }); - return 1; - } - - - /// - /// - /// - /// 多QQ登录情况下用于识别是哪个Q - /// 接收到消息类型,该类型可在常量表中查询具体定义,此处仅列举: -1 未定义事件 0,在线状态临时会话 1,好友信息 2,群信息 3,讨论组信息 4,群临时会话 5,讨论组临时会话 6,财付通转账 7,好友验证回复会话 - /// 此参数在不同消息类型下,有不同的定义,暂定:接收财付通转账时 1为好友 4为群临时会话 5为讨论组临时会话 有人请求入群时,不良成员这里为1 - /// 此消息的来源,如:群号、讨论组ID、临时会话QQ、好友QQ等 - /// 主动发送这条消息的QQ,踢人时为踢人管理员QQ - /// 被动触发的QQ,如某人被踢出群,则此参数为被踢出人QQ - /// 此参数有多重含义,常见为:对方发送的消息内容,但当IRC_消息类型为 某人申请入群,则为入群申请理由 - /// 此参数暂定用于消息回复,消息撤回 - /// 此参数暂定用于消息回复,消息撤回 - /// 经过解密后的封包字节数据或json结构信息,JSON格式转账解析 - /// 经过解密后的封包字节数据或json结构信息,JSON格式转账解析 - /// 此参数用于插件加载拒绝理由 用法:写到内存(“拒绝理由”,IRC_信息回传文本指针_Out) - /// - [DllExport(ExportName = nameof(IR_Event), CallingConvention = CallingConvention.StdCall)] - public static int IR_Event( - string receiverQq, - int eventType, - int eventAdditionType, - string fromNum, - string eventOperator, - string triggee, - string message, - string messageNum, - string messageID, - string rawMessage, - string json, - string pText) - { - // TODO pText 需要确定如何处理 - PluginInstanceManager.GetInstance().HandleMahuaOutput(new Event - { - ReceiverQq = receiverQq, - EventAdditionType = eventAdditionType, - EventOperator = eventOperator, - EventType = eventType, - FromNum = fromNum, - Message = message, - RawMessage = rawMessage, - Triggee = triggee, - MessageId = messageID, - MessageNum = messageNum, - Json = json, - }); - // TODO 对于特定的请求,需要处理返回值。例如入群邀请。 - return 0; - } - - /// - /// 点击设置按钮 - /// - [DllExport(ExportName = nameof(IR_SetUp), CallingConvention = CallingConvention.StdCall)] - public static void IR_SetUp() - { - // TODO 点击设置中心,暂时没有任何作用 - Console.WriteLine("nothing"); - } - - /// - /// 当插件被停用、卸载时将会调用 - /// - /// - [DllExport(ExportName = nameof(IR_DestroyPlugin), CallingConvention = CallingConvention.StdCall)] - public static int IR_DestroyPlugin() - { - PluginInstanceManager.GetInstance().HandleMahuaOutput(new DestroyPlugin()); - // TODO 对于特定的请求,需要处理返回值。 - return 0; - } - } -} \ No newline at end of file diff --git a/src/Newbe.Mahua.CleverQQ.Native/PluginInfoProvider.cs b/src/Newbe.Mahua.CleverQQ.Native/PluginInfoProvider.cs deleted file mode 100644 index e6d55dd..0000000 --- a/src/Newbe.Mahua.CleverQQ.Native/PluginInfoProvider.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.IO; - -namespace Newbe.Mahua.CleverQQ.Native -{ - internal static class PluginInfoProvider - { - public static PluginFileInfo GetPluginInfo() - { - var pluginApiExpDll = typeof(MahuaModule).Assembly.CodeBase; - var pluginName = Path.GetFileNameWithoutExtension(pluginApiExpDll).Replace(".IR", string.Empty); - var baseDir = AppDomain.CurrentDomain.BaseDirectory; - var dllDir = Path.GetFullPath(Path.Combine(baseDir, pluginName)); - var re = new PluginFileInfo - { - Name = pluginName, - PluginApiExporterRuntimeFullpath = pluginApiExpDll, - PluginEntyPointDirectory = dllDir, - PluginEntryPointDllFullFilename = Path.Combine(dllDir, $"{pluginName}.dll"), - PluginEntryPointConfigFullFilename = Path.Combine(dllDir, $"{pluginName}.dll.config"), - }; - return re; - } - } -} diff --git a/src/Newbe.Mahua.CleverQQ.Native/PluginInstanceManager.cs b/src/Newbe.Mahua.CleverQQ.Native/PluginInstanceManager.cs deleted file mode 100644 index b4e8aca..0000000 --- a/src/Newbe.Mahua.CleverQQ.Native/PluginInstanceManager.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace Newbe.Mahua.CleverQQ.Native -{ - internal static class PluginInstanceManager - { - private static bool _initialized; - - public static IMahuaCenter GetInstance() - { - if (!_initialized) - { - var pluginInfo = PluginInfoProvider.GetPluginInfo(); - Mahua.PluginInstanceManager.EnsureAppDomainInitialized(pluginInfo); - _initialized = true; - } - - return Mahua.PluginInstanceManager.GetInstance(); - } - } -} \ No newline at end of file diff --git a/src/Newbe.Mahua.CleverQQ.Native/Properties/AssemblyInfo.cs b/src/Newbe.Mahua.CleverQQ.Native/Properties/AssemblyInfo.cs deleted file mode 100644 index b235665..0000000 --- a/src/Newbe.Mahua.CleverQQ.Native/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// 有关程序集的一般信息由以下 -// 控制。更改这些特性值可修改 -// 与程序集关联的信息。 -[assembly: AssemblyTitle("Newbe.Mahua.CleverQQ.Native")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Newbe.Mahua.CleverQQ.Native")] -[assembly: AssemblyCopyright("Copyright © 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// 将 ComVisible 设置为 false 会使此程序集中的类型 -// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 -// 请将此类型的 ComVisible 特性设置为 true。 -[assembly: ComVisible(false)] - -// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID -[assembly: Guid("8e94685a-c2f5-4131-8d82-a7a74e42b559")] - -// 程序集的版本信息由下列四个值组成: -// -// 主版本 -// 次版本 -// 生成号 -// 修订号 -// -// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 -// 通过使用 "*",如下所示: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/Newbe.Mahua.CleverQQ.Native/packages.config b/src/Newbe.Mahua.CleverQQ.Native/packages.config deleted file mode 100644 index 47324c7..0000000 --- a/src/Newbe.Mahua.CleverQQ.Native/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/Newbe.Mahua.CleverQQ/AssemblyInfo.cs b/src/Newbe.Mahua.CleverQQ/AssemblyInfo.cs deleted file mode 100644 index e4472f1..0000000 --- a/src/Newbe.Mahua.CleverQQ/AssemblyInfo.cs +++ /dev/null @@ -1,3 +0,0 @@ -using System.Runtime.CompilerServices; - -[assembly: InternalsVisibleTo("Newbe.Mahua.CleverQQ.Native")] diff --git a/src/Newbe.Mahua.CleverQQ/CleverQQApiOutput.cs b/src/Newbe.Mahua.CleverQQ/CleverQQApiOutput.cs deleted file mode 100644 index 37d1fa9..0000000 --- a/src/Newbe.Mahua.CleverQQ/CleverQQApiOutput.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; - -namespace Newbe.Mahua.CleverQQ -{ - public abstract class CleverQQApiOutput : IApiOutput - { - public MahuaPlatform Platform { get; } = MahuaPlatform.CleverQQ; - public abstract string TypeCode { get; } - public DateTimeOffset CreateTime { get; } = DateTimeOffset.UtcNow; - } -} \ No newline at end of file diff --git a/src/Newbe.Mahua.CleverQQ/CleverQQEventOutput.cs b/src/Newbe.Mahua.CleverQQ/CleverQQEventOutput.cs deleted file mode 100644 index dae75d7..0000000 --- a/src/Newbe.Mahua.CleverQQ/CleverQQEventOutput.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; - -namespace Newbe.Mahua.CleverQQ -{ - public abstract class CleverQQEventOutput : IEventOutput - { - public MahuaPlatform Platform { get; } = MahuaPlatform.CleverQQ; - public abstract string TypeCode { get; } - public DateTimeOffset CreateTime { get; } = DateTimeOffset.UtcNow; - } -} \ No newline at end of file diff --git a/src/Newbe.Mahua.CleverQQ/CleverQQMahuaApiHandler.cs b/src/Newbe.Mahua.CleverQQ/CleverQQMahuaApiHandler.cs deleted file mode 100644 index 3ce5d9d..0000000 --- a/src/Newbe.Mahua.CleverQQ/CleverQQMahuaApiHandler.cs +++ /dev/null @@ -1,1209 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Newbe.Mahua.NativeApi; - - -// this file is generate from tools, do not change this file -// generate time 2019/01/23 - -namespace Newbe.Mahua.CleverQQ -{ - public class CleverQQMahuaApiHandler : IPlatformMahuaApiHandler - { - - private readonly IMahuaCenter _mahuaCenter; - private readonly ICleverQQApi _cleverQQApi; - - public CleverQQMahuaApiHandler( - IMahuaCenter mahuaCenter, - ICleverQQApi cleverQQApi) - { - _mahuaCenter = mahuaCenter; - _cleverQQApi = cleverQQApi; - } - public Task Run(string typeCode, IReadOnlyDictionary data) - { - switch (typeCode) - { - case "Api_SendMsg": - _cleverQQApi.Api_SendMsg(响应QQ: data["响应QQ"].ToString(), 信息类型: Convert.ToInt32(data["信息类型"]), 收信对象群_讨论组: data["收信对象群_讨论组"].ToString(), 收信QQ: data["收信QQ"].ToString(), 内容: data["内容"].ToString(), 气泡ID: Convert.ToInt32(data["气泡ID"])); - return Task.CompletedTask; - case "Api_SendXML": - _cleverQQApi.Api_SendXML(响应QQ: data["响应QQ"].ToString(), 发送方式: Convert.ToInt32(data["发送方式"]), 信息类型: Convert.ToInt32(data["信息类型"]), 收信对象所属群_讨论组: data["收信对象所属群_讨论组"].ToString(), 收信对象QQ: data["收信对象QQ"].ToString(), ObjectMsg: data["ObjectMsg"].ToString(), 结构子类型: Convert.ToInt32(data["结构子类型"])); - return Task.CompletedTask; - case "Api_SendJSON": - _cleverQQApi.Api_SendJSON(响应QQ: data["响应QQ"].ToString(), 发送方式: Convert.ToInt32(data["发送方式"]), 信息类型: Convert.ToInt32(data["信息类型"]), 收信对象所属群_讨论组: data["收信对象所属群_讨论组"].ToString(), 收信对象QQ: data["收信对象QQ"].ToString(), Json结构: data["Json结构"].ToString()); - return Task.CompletedTask; - case "Api_UpVote": - var Api_UpVoteResult = - _cleverQQApi.Api_UpVote(响应QQ: data["响应QQ"].ToString(), 被赞QQ: data["被赞QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_UpVoteApiOut - { Result = Api_UpVoteResult }); - case "Api_GetCookies": - var Api_GetCookiesResult = - _cleverQQApi.Api_GetCookies(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetCookiesApiOut - { Result = Api_GetCookiesResult }); - case "Api_GetBlogPsKey": - var Api_GetBlogPsKeyResult = - _cleverQQApi.Api_GetBlogPsKey(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetBlogPsKeyApiOut - { Result = Api_GetBlogPsKeyResult }); - case "Api_GetZonePsKey": - var Api_GetZonePsKeyResult = - _cleverQQApi.Api_GetZonePsKey(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetZonePsKeyApiOut - { Result = Api_GetZonePsKeyResult }); - case "Api_GetGroupPsKey": - var Api_GetGroupPsKeyResult = - _cleverQQApi.Api_GetGroupPsKey(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetGroupPsKeyApiOut - { Result = Api_GetGroupPsKeyResult }); - case "Api_GetClassRoomPsKey": - var Api_GetClassRoomPsKeyResult = - _cleverQQApi.Api_GetClassRoomPsKey(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetClassRoomPsKeyApiOut - { Result = Api_GetClassRoomPsKeyResult }); - case "Api_GetBkn": - var Api_GetBknResult = - _cleverQQApi.Api_GetBkn(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetBknApiOut - { Result = Api_GetBknResult }); - case "Api_GetBkn32": - var Api_GetBkn32Result = - _cleverQQApi.Api_GetBkn32(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetBkn32ApiOut - { Result = Api_GetBkn32Result }); - case "Api_GetLongLdw": - var Api_GetLongLdwResult = - _cleverQQApi.Api_GetLongLdw(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetLongLdwApiOut - { Result = Api_GetLongLdwResult }); - case "Api_GetClientkey": - var Api_GetClientkeyResult = - _cleverQQApi.Api_GetClientkey(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetClientkeyApiOut - { Result = Api_GetClientkeyResult }); - case "Api_GetLongClientkey": - var Api_GetLongClientkeyResult = - _cleverQQApi.Api_GetLongClientkey(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetLongClientkeyApiOut - { Result = Api_GetLongClientkeyResult }); - case "Api_AdminInviteGroup": - _cleverQQApi.Api_AdminInviteGroup(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString(), 群号: data["群号"].ToString()); - return Task.CompletedTask; - case "Api_NoAdminInviteGroup": - _cleverQQApi.Api_NoAdminInviteGroup(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString(), 群号: data["群号"].ToString()); - return Task.CompletedTask; - case "Api_GetNick": - var Api_GetNickResult = - _cleverQQApi.Api_GetNick(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetNickApiOut - { Result = Api_GetNickResult }); - case "Api_GetGroupCard": - var Api_GetGroupCardResult = - _cleverQQApi.Api_GetGroupCard(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetGroupCardApiOut - { Result = Api_GetGroupCardResult }); - case "Api_GetObjLevel": - var Api_GetObjLevelResult = - _cleverQQApi.Api_GetObjLevel(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetObjLevelApiOut - { Result = Api_GetObjLevelResult }); - case "Api_GetFriendList": - var Api_GetFriendListResult = - _cleverQQApi.Api_GetFriendList(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetFriendListApiOut - { Result = Api_GetFriendListResult }); - case "Api_GetFriendList_B": - var Api_GetFriendList_BResult = - _cleverQQApi.Api_GetFriendList_B(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetFriendList_BApiOut - { Result = Api_GetFriendList_BResult }); - case "Api_GetQidianQQFriendsList": - var Api_GetQidianQQFriendsListResult = - _cleverQQApi.Api_GetQidianQQFriendsList(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetQidianQQFriendsListApiOut - { Result = Api_GetQidianQQFriendsListResult }); - case "Api_GetGroupAdmin": - var Api_GetGroupAdminResult = - _cleverQQApi.Api_GetGroupAdmin(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetGroupAdminApiOut - { Result = Api_GetGroupAdminResult }); - case "Api_GetGroupList_A": - var Api_GetGroupList_AResult = - _cleverQQApi.Api_GetGroupList_A(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetGroupList_AApiOut - { Result = Api_GetGroupList_AResult }); - case "Api_GetGroupList": - var Api_GetGroupListResult = - _cleverQQApi.Api_GetGroupList(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetGroupListApiOut - { Result = Api_GetGroupListResult }); - case "Api_GetGroupList_B": - var Api_GetGroupList_BResult = - _cleverQQApi.Api_GetGroupList_B(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetGroupList_BApiOut - { Result = Api_GetGroupList_BResult }); - case "Api_GetGroupMemberList": - var Api_GetGroupMemberListResult = - _cleverQQApi.Api_GetGroupMemberList(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetGroupMemberListApiOut - { Result = Api_GetGroupMemberListResult }); - case "Api_GetGroupMemberList_B": - var Api_GetGroupMemberList_BResult = - _cleverQQApi.Api_GetGroupMemberList_B(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetGroupMemberList_BApiOut - { Result = Api_GetGroupMemberList_BResult }); - case "Api_GetGroupMemberList_C": - var Api_GetGroupMemberList_CResult = - _cleverQQApi.Api_GetGroupMemberList_C(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetGroupMemberList_CApiOut - { Result = Api_GetGroupMemberList_CResult }); - case "Api_IsShutUp": - var Api_IsShutUpResult = - _cleverQQApi.Api_IsShutUp(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_IsShutUpApiOut - { Result = Api_IsShutUpResult }); - case "Api_ShutUP": - _cleverQQApi.Api_ShutUP(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString(), 对象QQ: data["对象QQ"].ToString(), 时间: Convert.ToInt32(data["时间"])); - return Task.CompletedTask; - case "Api_JoinGroup": - _cleverQQApi.Api_JoinGroup(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString(), 理由: data["理由"].ToString()); - return Task.CompletedTask; - case "Api_QuitGroup": - _cleverQQApi.Api_QuitGroup(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString()); - return Task.CompletedTask; - case "Api_UpLoadPic": - var Api_UpLoadPicResult = - _cleverQQApi.Api_UpLoadPic(响应QQ: data["响应QQ"].ToString(), 上传类型: Convert.ToInt32(data["上传类型"]), 参考对象: data["参考对象"].ToString(), 图片数据: Convert.FromBase64String(data["图片数据"].ToString())); - return _mahuaCenter.HandleMahuaOutput(new Api_UpLoadPicApiOut - { Result = Api_UpLoadPicResult }); - case "Api_GetPicLink": - var Api_GetPicLinkResult = - _cleverQQApi.Api_GetPicLink(响应QQ: data["响应QQ"].ToString(), 图片类型: Convert.ToInt32(data["图片类型"]), 参考对象: data["参考对象"].ToString(), 图片GUID: data["图片GUID"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetPicLinkApiOut - { Result = Api_GetPicLinkResult }); - case "Api_OutPutLog": - _cleverQQApi.Api_OutPutLog(内容: data["内容"].ToString()); - return Task.CompletedTask; - case "Api_Tea加密": - var Api_Tea加密Result = - _cleverQQApi.Api_Tea加密(需加密内容: data["需加密内容"].ToString(), 会话KEY: data["会话KEY"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_Tea加密ApiOut - { Result = Api_Tea加密Result }); - case "Api_Tea解密": - var Api_Tea解密Result = - _cleverQQApi.Api_Tea解密(需解密内容: data["需解密内容"].ToString(), 会话KEY: data["会话KEY"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_Tea解密ApiOut - { Result = Api_Tea解密Result }); - case "Api_SessionKey": - var Api_SessionKeyResult = - _cleverQQApi.Api_SessionKey(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_SessionKeyApiOut - { Result = Api_SessionKeyResult }); - case "Api_GNTransGID": - var Api_GNTransGIDResult = - _cleverQQApi.Api_GNTransGID(群号: data["群号"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GNTransGIDApiOut - { Result = Api_GNTransGIDResult }); - case "Api_GIDTransGN": - var Api_GIDTransGNResult = - _cleverQQApi.Api_GIDTransGN(群ID: data["群ID"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GIDTransGNApiOut - { Result = Api_GIDTransGNResult }); - case "Api_PBGroupNotic": - var Api_PBGroupNoticResult = - _cleverQQApi.Api_PBGroupNotic(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString(), 标题: data["标题"].ToString(), 内容: data["内容"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_PBGroupNoticApiOut - { Result = Api_PBGroupNoticResult }); - case "Api_GetNotice": - var Api_GetNoticeResult = - _cleverQQApi.Api_GetNotice(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetNoticeApiOut - { Result = Api_GetNoticeResult }); - case "Api_ShakeWindow": - var Api_ShakeWindowResult = - _cleverQQApi.Api_ShakeWindow(响应QQ: data["响应QQ"].ToString(), 接收QQ: data["接收QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_ShakeWindowApiOut - { Result = Api_ShakeWindowResult }); - case "Api_HandleEvent": - _cleverQQApi.Api_HandleEvent(响应QQ: data["响应QQ"].ToString(), 请求类型: Convert.ToInt32(data["请求类型"]), 对象QQ: data["对象QQ"].ToString(), 群号: data["群号"].ToString(), 处理方式: Convert.ToInt32(data["处理方式"]), 附加信息: data["附加信息"].ToString()); - return Task.CompletedTask; - case "Api_HandleGroupEvent": - _cleverQQApi.Api_HandleGroupEvent(响应QQ: data["响应QQ"].ToString(), 请求类型: Convert.ToInt32(data["请求类型"]), 对象QQ: data["对象QQ"].ToString(), 群号: data["群号"].ToString(), seq: data["seq"].ToString(), 处理方式: Convert.ToInt32(data["处理方式"]), 附加信息: data["附加信息"].ToString()); - return Task.CompletedTask; - case "Api_SetAnon": - var Api_SetAnonResult = - _cleverQQApi.Api_SetAnon(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString(), 开关: Convert.ToBoolean(data["开关"])); - return _mahuaCenter.HandleMahuaOutput(new Api_SetAnonApiOut - { Result = Api_SetAnonResult }); - case "Api_SetGroupCard": - var Api_SetGroupCardResult = - _cleverQQApi.Api_SetGroupCard(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString(), 对象QQ: data["对象QQ"].ToString(), 名片: data["名片"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_SetGroupCardApiOut - { Result = Api_SetGroupCardResult }); - case "Api_QuitDisGroup": - _cleverQQApi.Api_QuitDisGroup(响应QQ: data["响应QQ"].ToString(), 讨论组ID: data["讨论组ID"].ToString()); - return Task.CompletedTask; - case "Api_CreateDisGroup": - var Api_CreateDisGroupResult = - _cleverQQApi.Api_CreateDisGroup(响应QQ: data["响应QQ"].ToString(), 讨论组名称: data["讨论组名称"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_CreateDisGroupApiOut - { Result = Api_CreateDisGroupResult }); - case "Api_KickDisGroupMBR": - var Api_KickDisGroupMBRResult = - _cleverQQApi.Api_KickDisGroupMBR(响应QQ: data["响应QQ"].ToString(), 讨论组ID: data["讨论组ID"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_KickDisGroupMBRApiOut - { Result = Api_KickDisGroupMBRResult }); - case "Api_InviteDisGroup": - var Api_InviteDisGroupResult = - _cleverQQApi.Api_InviteDisGroup(响应QQ: data["响应QQ"].ToString(), 讨论组ID: data["讨论组ID"].ToString(), 邀请对象QQ: data["邀请对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_InviteDisGroupApiOut - { Result = Api_InviteDisGroupResult }); - case "Api_GetDisGroupList": - var Api_GetDisGroupListResult = - _cleverQQApi.Api_GetDisGroupList(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetDisGroupListApiOut - { Result = Api_GetDisGroupListResult }); - case "Api_GetDisGroupMemberList": - var Api_GetDisGroupMemberListResult = - _cleverQQApi.Api_GetDisGroupMemberList(响应QQ: data["响应QQ"].ToString(), 讨论组ID: data["讨论组ID"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetDisGroupMemberListApiOut - { Result = Api_GetDisGroupMemberListResult }); - case "Api_SetDisGroupName": - _cleverQQApi.Api_SetDisGroupName(响应QQ: data["响应QQ"].ToString(), 讨论组ID: data["讨论组ID"].ToString(), 讨论组名称: data["讨论组名称"].ToString()); - return Task.CompletedTask; - case "Api_KickGroupMBR": - _cleverQQApi.Api_KickGroupMBR(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString(), 对象QQ: data["对象QQ"].ToString(), 不再接收加群请求: Convert.ToBoolean(data["不再接收加群请求"])); - return Task.CompletedTask; - case "Api_GetObjVote": - var Api_GetObjVoteResult = - _cleverQQApi.Api_GetObjVote(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetObjVoteApiOut - { Result = Api_GetObjVoteResult }); - case "Api_UpLoadVoice": - var Api_UpLoadVoiceResult = - _cleverQQApi.Api_UpLoadVoice(响应QQ: data["响应QQ"].ToString(), 上传类型: Convert.ToInt32(data["上传类型"]), 接收群号: data["接收群号"].ToString(), 语音数据: Convert.FromBase64String(data["语音数据"].ToString())); - return _mahuaCenter.HandleMahuaOutput(new Api_UpLoadVoiceApiOut - { Result = Api_UpLoadVoiceResult }); - case "Api_GetVoiLink": - var Api_GetVoiLinkResult = - _cleverQQApi.Api_GetVoiLink(响应QQ: data["响应QQ"].ToString(), 语音GUID: data["语音GUID"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetVoiLinkApiOut - { Result = Api_GetVoiLinkResult }); - case "Api_GetTimeStamp": - var Api_GetTimeStampResult = - _cleverQQApi.Api_GetTimeStamp(); - return _mahuaCenter.HandleMahuaOutput(new Api_GetTimeStampApiOut - { Result = Api_GetTimeStampResult }); - case "Api_SendPack": - var Api_SendPackResult = - _cleverQQApi.Api_SendPack(响应QQ: data["响应QQ"].ToString(), 封包: data["封包"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_SendPackApiOut - { Result = Api_SendPackResult }); - case "Api_GetObjInfo": - var Api_GetObjInfoResult = - _cleverQQApi.Api_GetObjInfo(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetObjInfoApiOut - { Result = Api_GetObjInfoResult }); - case "Api_GetGender": - var Api_GetGenderResult = - _cleverQQApi.Api_GetGender(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetGenderApiOut - { Result = Api_GetGenderResult }); - case "Api_GetQQAge": - var Api_GetQQAgeResult = - _cleverQQApi.Api_GetQQAge(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetQQAgeApiOut - { Result = Api_GetQQAgeResult }); - case "Api_GetAge": - var Api_GetAgeResult = - _cleverQQApi.Api_GetAge(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetAgeApiOut - { Result = Api_GetAgeResult }); - case "Api_GetPerExp": - var Api_GetPerExpResult = - _cleverQQApi.Api_GetPerExp(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetPerExpApiOut - { Result = Api_GetPerExpResult }); - case "Api_GetSign": - var Api_GetSignResult = - _cleverQQApi.Api_GetSign(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetSignApiOut - { Result = Api_GetSignResult }); - case "Api_GetEmail": - var Api_GetEmailResult = - _cleverQQApi.Api_GetEmail(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetEmailApiOut - { Result = Api_GetEmailResult }); - case "Api_GetGroupName": - var Api_GetGroupNameResult = - _cleverQQApi.Api_GetGroupName(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetGroupNameApiOut - { Result = Api_GetGroupNameResult }); - case "Api_GetVer": - var Api_GetVerResult = - _cleverQQApi.Api_GetVer(); - return _mahuaCenter.HandleMahuaOutput(new Api_GetVerApiOut - { Result = Api_GetVerResult }); - case "Api_GetQQList": - var Api_GetQQListResult = - _cleverQQApi.Api_GetQQList(); - return _mahuaCenter.HandleMahuaOutput(new Api_GetQQListApiOut - { Result = Api_GetQQListResult }); - case "Api_GetOnLineList": - var Api_GetOnLineListResult = - _cleverQQApi.Api_GetOnLineList(); - return _mahuaCenter.HandleMahuaOutput(new Api_GetOnLineListApiOut - { Result = Api_GetOnLineListResult }); - case "Api_GetOffLineList": - var Api_GetOffLineListResult = - _cleverQQApi.Api_GetOffLineList(); - return _mahuaCenter.HandleMahuaOutput(new Api_GetOffLineListApiOut - { Result = Api_GetOffLineListResult }); - case "Api_AddQQ": - var Api_AddQQResult = - _cleverQQApi.Api_AddQQ(帐号: data["帐号"].ToString(), 密码: data["密码"].ToString(), 自动登录: Convert.ToBoolean(data["自动登录"])); - return _mahuaCenter.HandleMahuaOutput(new Api_AddQQApiOut - { Result = Api_AddQQResult }); - case "Api_DelQQ": - var Api_DelQQResult = - _cleverQQApi.Api_DelQQ(QQ号: data["QQ号"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_DelQQApiOut - { Result = Api_DelQQResult }); - case "Api_LoginQQ": - _cleverQQApi.Api_LoginQQ(登录QQ: data["登录QQ"].ToString()); - return Task.CompletedTask; - case "Api_OffLineQQ": - _cleverQQApi.Api_OffLineQQ(响应QQ: data["响应QQ"].ToString()); - return Task.CompletedTask; - case "Api_IfFriend": - var Api_IfFriendResult = - _cleverQQApi.Api_IfFriend(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_IfFriendApiOut - { Result = Api_IfFriendResult }); - case "Api_SetRInf": - _cleverQQApi.Api_SetRInf(响应QQ: data["响应QQ"].ToString(), 类型: Convert.ToInt32(data["类型"]), 修改内容: data["修改内容"].ToString()); - return Task.CompletedTask; - case "Api_GetRInf": - var Api_GetRInfResult = - _cleverQQApi.Api_GetRInf(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetRInfApiOut - { Result = Api_GetRInfResult }); - case "Api_DelFriend": - var Api_DelFriendResult = - _cleverQQApi.Api_DelFriend(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_DelFriendApiOut - { Result = Api_DelFriendResult }); - case "Api_AddBkList": - var Api_AddBkListResult = - _cleverQQApi.Api_AddBkList(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_AddBkListApiOut - { Result = Api_AddBkListResult }); - case "Api_DelBkList": - _cleverQQApi.Api_DelBkList(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return Task.CompletedTask; - case "Api_SetShieldedGroup": - _cleverQQApi.Api_SetShieldedGroup(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString(), 类型: Convert.ToBoolean(data["类型"])); - return Task.CompletedTask; - case "Api_SendVoice": - var Api_SendVoiceResult = - _cleverQQApi.Api_SendVoice(响应QQ: data["响应QQ"].ToString(), 接收QQ: data["接收QQ"].ToString(), 语音数据: Convert.FromBase64String(data["语音数据"].ToString())); - return _mahuaCenter.HandleMahuaOutput(new Api_SendVoiceApiOut - { Result = Api_SendVoiceResult }); - case "Api_SetAdmin": - var Api_SetAdminResult = - _cleverQQApi.Api_SetAdmin(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString(), 对象QQ: data["对象QQ"].ToString(), 操作方式: Convert.ToBoolean(data["操作方式"])); - return _mahuaCenter.HandleMahuaOutput(new Api_SetAdminApiOut - { Result = Api_SetAdminResult }); - case "Api_PBHomeWork": - _cleverQQApi.Api_PBHomeWork(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString(), 作业名: data["作业名"].ToString(), 标题: data["标题"].ToString(), 内容: data["内容"].ToString()); - return Task.CompletedTask; - case "Api_GetLog": - var Api_GetLogResult = - _cleverQQApi.Api_GetLog(); - return _mahuaCenter.HandleMahuaOutput(new Api_GetLogApiOut - { Result = Api_GetLogResult }); - case "Api_IsEnable": - var Api_IsEnableResult = - _cleverQQApi.Api_IsEnable(); - return _mahuaCenter.HandleMahuaOutput(new Api_IsEnableApiOut - { Result = Api_IsEnableResult }); - case "Api_DisabledPlugin": - _cleverQQApi.Api_DisabledPlugin(); - return Task.CompletedTask; - case "Api_WithdrawMsg": - var Api_WithdrawMsgResult = - _cleverQQApi.Api_WithdrawMsg(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString(), 消息序号: data["消息序号"].ToString(), 消息ID: data["消息ID"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_WithdrawMsgApiOut - { Result = Api_WithdrawMsgResult }); - case "Api_BeInput": - _cleverQQApi.Api_BeInput(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return Task.CompletedTask; - case "Api_GetQQAddMode": - var Api_GetQQAddModeResult = - _cleverQQApi.Api_GetQQAddMode(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetQQAddModeApiOut - { Result = Api_GetQQAddModeResult }); - case "Api_IsOnline": - var Api_IsOnlineResult = - _cleverQQApi.Api_IsOnline(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_IsOnlineApiOut - { Result = Api_IsOnlineResult }); - case "Api_GetOnlineState": - var Api_GetOnlineStateResult = - _cleverQQApi.Api_GetOnlineState(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetOnlineStateApiOut - { Result = Api_GetOnlineStateResult }); - case "Api_GetGroupMemberNum": - var Api_GetGroupMemberNumResult = - _cleverQQApi.Api_GetGroupMemberNum(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetGroupMemberNumApiOut - { Result = Api_GetGroupMemberNumResult }); - case "Api_GetWpa": - var Api_GetWpaResult = - _cleverQQApi.Api_GetWpa(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetWpaApiOut - { Result = Api_GetWpaResult }); - case "Api_GetGroupAddMode": - var Api_GetGroupAddModeResult = - _cleverQQApi.Api_GetGroupAddMode(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetGroupAddModeApiOut - { Result = Api_GetGroupAddModeResult }); - case "Api_GetGroupLv": - var Api_GetGroupLvResult = - _cleverQQApi.Api_GetGroupLv(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetGroupLvApiOut - { Result = Api_GetGroupLvResult }); - case "Api_SetFriendsRemark": - _cleverQQApi.Api_SetFriendsRemark(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString(), 备注: data["备注"].ToString()); - return Task.CompletedTask; - case "Api_GetFriendsRemark": - var Api_GetFriendsRemarkResult = - _cleverQQApi.Api_GetFriendsRemark(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetFriendsRemarkApiOut - { Result = Api_GetFriendsRemarkResult }); - case "Api_SignIn": - var Api_SignInResult = - _cleverQQApi.Api_SignIn(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString(), 地名: data["地名"].ToString(), 想说的话: data["想说的话"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_SignInApiOut - { Result = Api_SignInResult }); - case "Api_TakeGift": - var Api_TakeGiftResult = - _cleverQQApi.Api_TakeGift(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_TakeGiftApiOut - { Result = Api_TakeGiftResult }); - case "Api_CheckGift": - var Api_CheckGiftResult = - _cleverQQApi.Api_CheckGift(响应QQ: data["响应QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_CheckGiftApiOut - { Result = Api_CheckGiftResult }); - case "Api_GiveGift": - var Api_GiveGiftResult = - _cleverQQApi.Api_GiveGift(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString(), 对象QQ: data["对象QQ"].ToString(), pid: data["pid"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GiveGiftApiOut - { Result = Api_GiveGiftResult }); - case "Api_GetGroupChatLv": - var Api_GetGroupChatLvResult = - _cleverQQApi.Api_GetGroupChatLv(响应QQ: data["响应QQ"].ToString(), 群号: data["群号"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetGroupChatLvApiOut - { Result = Api_GetGroupChatLvResult }); - case "Api_GetExpertDays": - var Api_GetExpertDaysResult = - _cleverQQApi.Api_GetExpertDays(响应QQ: data["响应QQ"].ToString(), 对象QQ: data["对象QQ"].ToString()); - return _mahuaCenter.HandleMahuaOutput(new Api_GetExpertDaysApiOut - { Result = Api_GetExpertDaysResult }); - case "Api_GetShieldedState": - var Api_GetShieldedStateResult = - _cleverQQApi.Api_GetShieldedState(响应QQ: data["响应QQ"].ToString(), 消息类型: Convert.ToInt32(data["消息类型"])); - return _mahuaCenter.HandleMahuaOutput(new Api_GetShieldedStateApiOut - { Result = Api_GetShieldedStateResult }); - - default: - throw new ArgumentOutOfRangeException(nameof(typeCode)); - } - } - } - /// - /// api out of method Api_UpVote - /// - public class Api_UpVoteApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_UpVoteApiOut); - } - /// - /// api out of method Api_GetCookies - /// - public class Api_GetCookiesApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetCookiesApiOut); - } - /// - /// api out of method Api_GetBlogPsKey - /// - public class Api_GetBlogPsKeyApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetBlogPsKeyApiOut); - } - /// - /// api out of method Api_GetZonePsKey - /// - public class Api_GetZonePsKeyApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetZonePsKeyApiOut); - } - /// - /// api out of method Api_GetGroupPsKey - /// - public class Api_GetGroupPsKeyApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetGroupPsKeyApiOut); - } - /// - /// api out of method Api_GetClassRoomPsKey - /// - public class Api_GetClassRoomPsKeyApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetClassRoomPsKeyApiOut); - } - /// - /// api out of method Api_GetBkn - /// - public class Api_GetBknApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetBknApiOut); - } - /// - /// api out of method Api_GetBkn32 - /// - public class Api_GetBkn32ApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetBkn32ApiOut); - } - /// - /// api out of method Api_GetLongLdw - /// - public class Api_GetLongLdwApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetLongLdwApiOut); - } - /// - /// api out of method Api_GetClientkey - /// - public class Api_GetClientkeyApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetClientkeyApiOut); - } - /// - /// api out of method Api_GetLongClientkey - /// - public class Api_GetLongClientkeyApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetLongClientkeyApiOut); - } - /// - /// api out of method Api_GetNick - /// - public class Api_GetNickApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetNickApiOut); - } - /// - /// api out of method Api_GetGroupCard - /// - public class Api_GetGroupCardApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetGroupCardApiOut); - } - /// - /// api out of method Api_GetObjLevel - /// - public class Api_GetObjLevelApiOut : CleverQQApiOutput - { - public int Result { get; set; } - public override string TypeCode => nameof(Api_GetObjLevelApiOut); - } - /// - /// api out of method Api_GetFriendList - /// - public class Api_GetFriendListApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetFriendListApiOut); - } - /// - /// api out of method Api_GetFriendList_B - /// - public class Api_GetFriendList_BApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetFriendList_BApiOut); - } - /// - /// api out of method Api_GetQidianQQFriendsList - /// - public class Api_GetQidianQQFriendsListApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetQidianQQFriendsListApiOut); - } - /// - /// api out of method Api_GetGroupAdmin - /// - public class Api_GetGroupAdminApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetGroupAdminApiOut); - } - /// - /// api out of method Api_GetGroupList_A - /// - public class Api_GetGroupList_AApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetGroupList_AApiOut); - } - /// - /// api out of method Api_GetGroupList - /// - public class Api_GetGroupListApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetGroupListApiOut); - } - /// - /// api out of method Api_GetGroupList_B - /// - public class Api_GetGroupList_BApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetGroupList_BApiOut); - } - /// - /// api out of method Api_GetGroupMemberList - /// - public class Api_GetGroupMemberListApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetGroupMemberListApiOut); - } - /// - /// api out of method Api_GetGroupMemberList_B - /// - public class Api_GetGroupMemberList_BApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetGroupMemberList_BApiOut); - } - /// - /// api out of method Api_GetGroupMemberList_C - /// - public class Api_GetGroupMemberList_CApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetGroupMemberList_CApiOut); - } - /// - /// api out of method Api_IsShutUp - /// - public class Api_IsShutUpApiOut : CleverQQApiOutput - { - public bool Result { get; set; } - public override string TypeCode => nameof(Api_IsShutUpApiOut); - } - /// - /// api out of method Api_UpLoadPic - /// - public class Api_UpLoadPicApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_UpLoadPicApiOut); - } - /// - /// api out of method Api_GetPicLink - /// - public class Api_GetPicLinkApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetPicLinkApiOut); - } - /// - /// api out of method Api_Tea加密 - /// - public class Api_Tea加密ApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_Tea加密ApiOut); - } - /// - /// api out of method Api_Tea解密 - /// - public class Api_Tea解密ApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_Tea解密ApiOut); - } - /// - /// api out of method Api_SessionKey - /// - public class Api_SessionKeyApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_SessionKeyApiOut); - } - /// - /// api out of method Api_GNTransGID - /// - public class Api_GNTransGIDApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GNTransGIDApiOut); - } - /// - /// api out of method Api_GIDTransGN - /// - public class Api_GIDTransGNApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GIDTransGNApiOut); - } - /// - /// api out of method Api_PBGroupNotic - /// - public class Api_PBGroupNoticApiOut : CleverQQApiOutput - { - public bool Result { get; set; } - public override string TypeCode => nameof(Api_PBGroupNoticApiOut); - } - /// - /// api out of method Api_GetNotice - /// - public class Api_GetNoticeApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetNoticeApiOut); - } - /// - /// api out of method Api_ShakeWindow - /// - public class Api_ShakeWindowApiOut : CleverQQApiOutput - { - public bool Result { get; set; } - public override string TypeCode => nameof(Api_ShakeWindowApiOut); - } - /// - /// api out of method Api_SetAnon - /// - public class Api_SetAnonApiOut : CleverQQApiOutput - { - public bool Result { get; set; } - public override string TypeCode => nameof(Api_SetAnonApiOut); - } - /// - /// api out of method Api_SetGroupCard - /// - public class Api_SetGroupCardApiOut : CleverQQApiOutput - { - public bool Result { get; set; } - public override string TypeCode => nameof(Api_SetGroupCardApiOut); - } - /// - /// api out of method Api_CreateDisGroup - /// - public class Api_CreateDisGroupApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_CreateDisGroupApiOut); - } - /// - /// api out of method Api_KickDisGroupMBR - /// - public class Api_KickDisGroupMBRApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_KickDisGroupMBRApiOut); - } - /// - /// api out of method Api_InviteDisGroup - /// - public class Api_InviteDisGroupApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_InviteDisGroupApiOut); - } - /// - /// api out of method Api_GetDisGroupList - /// - public class Api_GetDisGroupListApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetDisGroupListApiOut); - } - /// - /// api out of method Api_GetDisGroupMemberList - /// - public class Api_GetDisGroupMemberListApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetDisGroupMemberListApiOut); - } - /// - /// api out of method Api_GetObjVote - /// - public class Api_GetObjVoteApiOut : CleverQQApiOutput - { - public long Result { get; set; } - public override string TypeCode => nameof(Api_GetObjVoteApiOut); - } - /// - /// api out of method Api_UpLoadVoice - /// - public class Api_UpLoadVoiceApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_UpLoadVoiceApiOut); - } - /// - /// api out of method Api_GetVoiLink - /// - public class Api_GetVoiLinkApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetVoiLinkApiOut); - } - /// - /// api out of method Api_GetTimeStamp - /// - public class Api_GetTimeStampApiOut : CleverQQApiOutput - { - public long Result { get; set; } - public override string TypeCode => nameof(Api_GetTimeStampApiOut); - } - /// - /// api out of method Api_SendPack - /// - public class Api_SendPackApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_SendPackApiOut); - } - /// - /// api out of method Api_GetObjInfo - /// - public class Api_GetObjInfoApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetObjInfoApiOut); - } - /// - /// api out of method Api_GetGender - /// - public class Api_GetGenderApiOut : CleverQQApiOutput - { - public int Result { get; set; } - public override string TypeCode => nameof(Api_GetGenderApiOut); - } - /// - /// api out of method Api_GetQQAge - /// - public class Api_GetQQAgeApiOut : CleverQQApiOutput - { - public int Result { get; set; } - public override string TypeCode => nameof(Api_GetQQAgeApiOut); - } - /// - /// api out of method Api_GetAge - /// - public class Api_GetAgeApiOut : CleverQQApiOutput - { - public int Result { get; set; } - public override string TypeCode => nameof(Api_GetAgeApiOut); - } - /// - /// api out of method Api_GetPerExp - /// - public class Api_GetPerExpApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetPerExpApiOut); - } - /// - /// api out of method Api_GetSign - /// - public class Api_GetSignApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetSignApiOut); - } - /// - /// api out of method Api_GetEmail - /// - public class Api_GetEmailApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetEmailApiOut); - } - /// - /// api out of method Api_GetGroupName - /// - public class Api_GetGroupNameApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetGroupNameApiOut); - } - /// - /// api out of method Api_GetVer - /// - public class Api_GetVerApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetVerApiOut); - } - /// - /// api out of method Api_GetQQList - /// - public class Api_GetQQListApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetQQListApiOut); - } - /// - /// api out of method Api_GetOnLineList - /// - public class Api_GetOnLineListApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetOnLineListApiOut); - } - /// - /// api out of method Api_GetOffLineList - /// - public class Api_GetOffLineListApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetOffLineListApiOut); - } - /// - /// api out of method Api_AddQQ - /// - public class Api_AddQQApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_AddQQApiOut); - } - /// - /// api out of method Api_DelQQ - /// - public class Api_DelQQApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_DelQQApiOut); - } - /// - /// api out of method Api_IfFriend - /// - public class Api_IfFriendApiOut : CleverQQApiOutput - { - public bool Result { get; set; } - public override string TypeCode => nameof(Api_IfFriendApiOut); - } - /// - /// api out of method Api_GetRInf - /// - public class Api_GetRInfApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetRInfApiOut); - } - /// - /// api out of method Api_DelFriend - /// - public class Api_DelFriendApiOut : CleverQQApiOutput - { - public bool Result { get; set; } - public override string TypeCode => nameof(Api_DelFriendApiOut); - } - /// - /// api out of method Api_AddBkList - /// - public class Api_AddBkListApiOut : CleverQQApiOutput - { - public bool Result { get; set; } - public override string TypeCode => nameof(Api_AddBkListApiOut); - } - /// - /// api out of method Api_SendVoice - /// - public class Api_SendVoiceApiOut : CleverQQApiOutput - { - public bool Result { get; set; } - public override string TypeCode => nameof(Api_SendVoiceApiOut); - } - /// - /// api out of method Api_SetAdmin - /// - public class Api_SetAdminApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_SetAdminApiOut); - } - /// - /// api out of method Api_GetLog - /// - public class Api_GetLogApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetLogApiOut); - } - /// - /// api out of method Api_IsEnable - /// - public class Api_IsEnableApiOut : CleverQQApiOutput - { - public bool Result { get; set; } - public override string TypeCode => nameof(Api_IsEnableApiOut); - } - /// - /// api out of method Api_WithdrawMsg - /// - public class Api_WithdrawMsgApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_WithdrawMsgApiOut); - } - /// - /// api out of method Api_GetQQAddMode - /// - public class Api_GetQQAddModeApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetQQAddModeApiOut); - } - /// - /// api out of method Api_IsOnline - /// - public class Api_IsOnlineApiOut : CleverQQApiOutput - { - public bool Result { get; set; } - public override string TypeCode => nameof(Api_IsOnlineApiOut); - } - /// - /// api out of method Api_GetOnlineState - /// - public class Api_GetOnlineStateApiOut : CleverQQApiOutput - { - public int Result { get; set; } - public override string TypeCode => nameof(Api_GetOnlineStateApiOut); - } - /// - /// api out of method Api_GetGroupMemberNum - /// - public class Api_GetGroupMemberNumApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetGroupMemberNumApiOut); - } - /// - /// api out of method Api_GetWpa - /// - public class Api_GetWpaApiOut : CleverQQApiOutput - { - public bool Result { get; set; } - public override string TypeCode => nameof(Api_GetWpaApiOut); - } - /// - /// api out of method Api_GetGroupAddMode - /// - public class Api_GetGroupAddModeApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetGroupAddModeApiOut); - } - /// - /// api out of method Api_GetGroupLv - /// - public class Api_GetGroupLvApiOut : CleverQQApiOutput - { - public int Result { get; set; } - public override string TypeCode => nameof(Api_GetGroupLvApiOut); - } - /// - /// api out of method Api_GetFriendsRemark - /// - public class Api_GetFriendsRemarkApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_GetFriendsRemarkApiOut); - } - /// - /// api out of method Api_SignIn - /// - public class Api_SignInApiOut : CleverQQApiOutput - { - public bool Result { get; set; } - public override string TypeCode => nameof(Api_SignInApiOut); - } - /// - /// api out of method Api_TakeGift - /// - public class Api_TakeGiftApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_TakeGiftApiOut); - } - /// - /// api out of method Api_CheckGift - /// - public class Api_CheckGiftApiOut : CleverQQApiOutput - { - public string Result { get; set; } - public override string TypeCode => nameof(Api_CheckGiftApiOut); - } - /// - /// api out of method Api_GiveGift - /// - public class Api_GiveGiftApiOut : CleverQQApiOutput - { - public int Result { get; set; } - public override string TypeCode => nameof(Api_GiveGiftApiOut); - } - /// - /// api out of method Api_GetGroupChatLv - /// - public class Api_GetGroupChatLvApiOut : CleverQQApiOutput - { - public int Result { get; set; } - public override string TypeCode => nameof(Api_GetGroupChatLvApiOut); - } - /// - /// api out of method Api_GetExpertDays - /// - public class Api_GetExpertDaysApiOut : CleverQQApiOutput - { - public int Result { get; set; } - public override string TypeCode => nameof(Api_GetExpertDaysApiOut); - } - /// - /// api out of method Api_GetShieldedState - /// - public class Api_GetShieldedStateApiOut : CleverQQApiOutput - { - public bool Result { get; set; } - public override string TypeCode => nameof(Api_GetShieldedStateApiOut); - } -} diff --git a/src/Newbe.Mahua.CleverQQ/MahuaEventOutputs/Create.cs b/src/Newbe.Mahua.CleverQQ/MahuaEventOutputs/Create.cs deleted file mode 100644 index a8b96b3..0000000 --- a/src/Newbe.Mahua.CleverQQ/MahuaEventOutputs/Create.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Newbe.Mahua.CleverQQ.MahuaEventOutputs -{ - public class Create : CleverQQEventOutput - { - public override string TypeCode { get; } = nameof(Create); - } -} \ No newline at end of file diff --git a/src/Newbe.Mahua.CleverQQ/MahuaEventOutputs/DestroyPlugin.cs b/src/Newbe.Mahua.CleverQQ/MahuaEventOutputs/DestroyPlugin.cs deleted file mode 100644 index 09d8237..0000000 --- a/src/Newbe.Mahua.CleverQQ/MahuaEventOutputs/DestroyPlugin.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Newbe.Mahua.CleverQQ.MahuaEventOutputs -{ - public class DestroyPlugin : CleverQQEventOutput - { - public override string TypeCode { get; } = nameof(DestroyPlugin); - } -} \ No newline at end of file diff --git a/src/Newbe.Mahua.CleverQQ/MahuaEventOutputs/Event.cs b/src/Newbe.Mahua.CleverQQ/MahuaEventOutputs/Event.cs deleted file mode 100644 index 6230889..0000000 --- a/src/Newbe.Mahua.CleverQQ/MahuaEventOutputs/Event.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace Newbe.Mahua.CleverQQ.MahuaEventOutputs -{ - public class Event : CleverQQEventOutput - { - public override string TypeCode { get; } = nameof(Event); - public string ReceiverQq { get; set; } - public int EventAdditionType { get; set; } - public string EventOperator { get; set; } - public int EventType { get; set; } - public string FromNum { get; set; } - public string Message { get; set; } - public string RawMessage { get; set; } - public string Triggee { get; set; } - public string MessageId { get; set; } - public string MessageNum { get; set; } - public string Json { get; set; } - } -} \ No newline at end of file diff --git a/src/Newbe.Mahua.CleverQQ/MahuaEventOutputs/Message.cs b/src/Newbe.Mahua.CleverQQ/MahuaEventOutputs/Message.cs deleted file mode 100644 index 3e0ea4e..0000000 --- a/src/Newbe.Mahua.CleverQQ/MahuaEventOutputs/Message.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace Newbe.Mahua.CleverQQ.MahuaEventOutputs -{ - public class Message : CleverQQEventOutput - { - public override string TypeCode { get; } = nameof(Message); - public string RobotQQ { get; set; } - public int MsgType { get; set; } - public string Msg { get; set; } - public string Cookies { get; set; } - public string SessionKey { get; set; } - public string ClientKey { get; set; } - } -} \ No newline at end of file diff --git a/src/Newbe.Mahua.CleverQQ/MahuaModule.cs b/src/Newbe.Mahua.CleverQQ/MahuaModule.cs deleted file mode 100644 index 64e3b82..0000000 --- a/src/Newbe.Mahua.CleverQQ/MahuaModule.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Autofac; - -namespace Newbe.Mahua.CleverQQ -{ - public class MahuaModule : IMahuaModule - { - Module[] IMahuaModule.GetModules() - { - return new Module[] - { - new CoreModule() - }; - } - - private class CoreModule : Module - { - protected override void Load(ContainerBuilder builder) - { - base.Load(builder); - builder.RegisterPlatformApiHandler(MahuaPlatform.CleverQQ); - } - } - } -} \ No newline at end of file diff --git a/src/Newbe.Mahua.CleverQQ/Newbe.Mahua.CleverQQ.csproj b/src/Newbe.Mahua.CleverQQ/Newbe.Mahua.CleverQQ.csproj deleted file mode 100644 index d29ad09..0000000 --- a/src/Newbe.Mahua.CleverQQ/Newbe.Mahua.CleverQQ.csproj +++ /dev/null @@ -1,32 +0,0 @@ - - - - net461 - Newbe Mahua IRQQ CleverQQ - true - true - - Newbe.Mahua 针对CleverQQ平台推出的平台支持包。 - CleverQQ是基于pc协议开发的一款多功能且扩展性强的机器人框架,我们提供了稳定的运行框架、简便的插件模板和专业的维护团队,力求给所有的正常用户更好的体验。 - 同时,为建造一个良好的使用环境,我们同样加入了不断完善的检测机制(人工、机器),对于黄、赌等各种非法用途一律采取不接受、不姑息的政策,也希望各位用户能够互相监督、自检自律。 - https://d.cleverqq.cn/forum.php - - - - - - bin\Debug\net461\Newbe.Mahua.CleverQQ.xml - TRACE;DEBUG;LIBLOG_PORTABLE - - - - bin\Release\net461\Newbe.Mahua.CleverQQ.xml - TRACE;LIBLOG_PORTABLE - - - - - - - - diff --git a/src/Newbe.Mahua.CleverQQ/Newbe.Mahua.CleverQQ.ruleset b/src/Newbe.Mahua.CleverQQ/Newbe.Mahua.CleverQQ.ruleset deleted file mode 100644 index a1ab45b..0000000 --- a/src/Newbe.Mahua.CleverQQ/Newbe.Mahua.CleverQQ.ruleset +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Newbe.Mahua.DevJobs/Jobs/HttpApiInputControllers/CleverQQJob.cs b/src/Newbe.Mahua.DevJobs/Jobs/HttpApiInputControllers/CleverQQJob.cs deleted file mode 100644 index 2a1ea87..0000000 --- a/src/Newbe.Mahua.DevJobs/Jobs/HttpApiInputControllers/CleverQQJob.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.IO; -using System.Text; -using System.Threading.Tasks; -using Newbe.Mahua.NativeApiClassfy.Services; - -namespace Newbe.Mahua.NativeApiClassfy.Jobs.HttpApiInputControllers -{ - public class CleverQQJob : IJob - { - private readonly INativeApiInfoProvider _nativeApiInfoProvider; - private readonly IHttpApiInputModelsGenerator _httpApiInputModelsGenerator; - - public CleverQQJob( - INativeApiInfoProvider nativeApiInfoProvider, - IHttpApiInputModelsGenerator httpApiInputModelsGenerator) - { - _nativeApiInfoProvider = nativeApiInfoProvider; - _httpApiInputModelsGenerator = httpApiInputModelsGenerator; - } - - public Task Run() - { - var nativeApiInfo = _nativeApiInfoProvider.Get(MahuaPlatform.CleverQQ); - var nativeApiIn = _httpApiInputModelsGenerator.Generate(new HttpApiInputModelsGeneratorInput - { - NativeApiInfo = nativeApiInfo, - MahuaPlatform = MahuaPlatform.CleverQQ - }); - var code = CodeFormatter.FormatCode(nativeApiIn); - File.WriteAllText("../Newbe.Mahua.InputReceivers.HttpApi/Services/Controllers/CleverQQController.cs", - code, - Encoding.UTF8); - return Task.CompletedTask; - } - } -} \ No newline at end of file diff --git a/src/Newbe.Mahua.DevJobs/Jobs/PlatformApIHandlers/CleverQQJob.cs b/src/Newbe.Mahua.DevJobs/Jobs/PlatformApIHandlers/CleverQQJob.cs deleted file mode 100644 index 938991e..0000000 --- a/src/Newbe.Mahua.DevJobs/Jobs/PlatformApIHandlers/CleverQQJob.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System.IO; -using System.Text; -using System.Threading.Tasks; -using Newbe.Mahua.NativeApiClassfy.Services; - -namespace Newbe.Mahua.NativeApiClassfy.Jobs.PlatformApIHandlers -{ - public class CleverQQJob : IJob - { - private readonly IApiHandlerGenerator _apiHandlerGenerator; - private readonly INativeApiInfoProvider _nativeApiInfoProvider; - - public CleverQQJob( - IApiHandlerGenerator apiHandlerGenerator, - INativeApiInfoProvider nativeApiInfoProvider) - { - _apiHandlerGenerator = apiHandlerGenerator; - _nativeApiInfoProvider = nativeApiInfoProvider; - } - - public Task Run() - { - var nativeApiInfo = _nativeApiInfoProvider.Get(MahuaPlatform.CleverQQ); - var apiHandler = _apiHandlerGenerator.Generate(new ApiHandlerGeneratorInput - { - Namespace = "Newbe.Mahua.CleverQQ", - NativeApiInfo = nativeApiInfo, - ApiOutBaseName = "CleverQQApiOutput", - ApiHandlerClassName = "CleverQQMahuaApiHandler", - }); - - File.WriteAllText("../Newbe.Mahua.CleverQQ/CleverQQMahuaApiHandler.cs", - CodeFormatter.FormatCode(apiHandler), - Encoding.UTF8); - return Task.CompletedTask; - } - } -} \ No newline at end of file diff --git a/src/Newbe.Mahua.DevJobs/Newbe.Mahua.DevJobs.csproj b/src/Newbe.Mahua.DevJobs/Newbe.Mahua.DevJobs.csproj index 2f4d57d..7479eda 100644 --- a/src/Newbe.Mahua.DevJobs/Newbe.Mahua.DevJobs.csproj +++ b/src/Newbe.Mahua.DevJobs/Newbe.Mahua.DevJobs.csproj @@ -14,8 +14,6 @@ - - diff --git a/src/Newbe.Mahua.DevJobs/Services/Impl/NativeApiInfoProvider.cs b/src/Newbe.Mahua.DevJobs/Services/Impl/NativeApiInfoProvider.cs index 71c7ba0..b66511b 100644 --- a/src/Newbe.Mahua.DevJobs/Services/Impl/NativeApiInfoProvider.cs +++ b/src/Newbe.Mahua.DevJobs/Services/Impl/NativeApiInfoProvider.cs @@ -34,13 +34,9 @@ private NativeApiInfo ResolveNativeApiInfo(MahuaPlatform mahuaPlatform) case MahuaPlatform.Mpq: filename = "../Newbe.Mahua/NativeApi/IMpqApi.cs"; break; - case MahuaPlatform.CleverQQ: - filename = "../Newbe.Mahua/NativeApi/ICleverQQApi.cs"; - break; case MahuaPlatform.QQLight: filename = "../Newbe.Mahua/NativeApi/IQQLightApi.cs"; break; - case MahuaPlatform.Amanda: default: throw new ArgumentOutOfRangeException(nameof(mahuaPlatform), mahuaPlatform, null); } diff --git a/src/Newbe.Mahua.InputReceivers.HttpApi/Services/Controllers/CleverQQController.cs b/src/Newbe.Mahua.InputReceivers.HttpApi/Services/Controllers/CleverQQController.cs deleted file mode 100644 index 225e67f..0000000 --- a/src/Newbe.Mahua.InputReceivers.HttpApi/Services/Controllers/CleverQQController.cs +++ /dev/null @@ -1,3791 +0,0 @@ -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; - - -// this file is generate from tools, do not change this file -// generate time 2019/01/23 - -namespace Newbe.Mahua.InputReceivers.HttpApi.Services.Controllers.CleverQQ -{ - [Route("api/v1/CleverQQ")] - public class CleverQQController : Controller - { - - private readonly IMahuaCenter _mahuaCenter; - - public CleverQQController( - IMahuaCenter mahuaCenter) - { - _mahuaCenter = mahuaCenter; - } - /// - /// 发送普通文本消息 - /// - [HttpPost("Api_SendMsg")] - public Task Api_SendMsg([FromBody] CleverQQApi_SendMsgHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_SendMsg), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.信息类型), input.信息类型}, -{nameof(input.收信对象群_讨论组), input.收信对象群_讨论组}, -{nameof(input.收信QQ), input.收信QQ}, -{nameof(input.内容), input.内容}, -{nameof(input.气泡ID), input.气泡ID}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 发送普通文本消息 - /// - public class CleverQQApi_SendMsgHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版) - /// - public int 信息类型 { get; set; } - /// - /// 发送群信息、讨论组、群或讨论组临时会话信息时填写,如发送对象为好友或信息类型是0时可空 - /// - public string 收信对象群_讨论组 { get; set; } - /// - /// 收信对象QQ - /// - public string 收信QQ { get; set; } - /// - /// 信息内容 - /// - public string 内容 { get; set; } - /// - /// -1为随机气泡 - /// - public int 气泡ID { get; set; } - } - /// - /// 发送XML消息 - /// - [HttpPost("Api_SendXML")] - public Task Api_SendXML([FromBody] CleverQQApi_SendXMLHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_SendXML), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.发送方式), input.发送方式}, -{nameof(input.信息类型), input.信息类型}, -{nameof(input.收信对象所属群_讨论组), input.收信对象所属群_讨论组}, -{nameof(input.收信对象QQ), input.收信对象QQ}, -{nameof(input.ObjectMsg), input.ObjectMsg}, -{nameof(input.结构子类型), input.结构子类型}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 发送XML消息 - /// - public class CleverQQApi_SendXMLHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 1普通 2匿名(匿名需要群开启) - /// - public int 发送方式 { get; set; } - /// - /// 0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版) - /// - public int 信息类型 { get; set; } - /// - /// 发送群信息、讨论组、群或讨论组临时会话信息时填写,如发送对象为好友或信息类型是0时可空 - /// - public string 收信对象所属群_讨论组 { get; set; } - /// - /// 收信对象QQ - /// - public string 收信对象QQ { get; set; } - /// - /// XML代码 - /// - public string ObjectMsg { get; set; } - /// - /// 0 基本 2 点歌 - /// - public int 结构子类型 { get; set; } - } - /// - /// 发送JSON结构消息 - /// - [HttpPost("Api_SendJSON")] - public Task Api_SendJSON([FromBody] CleverQQApi_SendJSONHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_SendJSON), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.发送方式), input.发送方式}, -{nameof(input.信息类型), input.信息类型}, -{nameof(input.收信对象所属群_讨论组), input.收信对象所属群_讨论组}, -{nameof(input.收信对象QQ), input.收信对象QQ}, -{nameof(input.Json结构), input.Json结构}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 发送JSON结构消息 - /// - public class CleverQQApi_SendJSONHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 1普通 2匿名(匿名需要群开启) - /// - public int 发送方式 { get; set; } - /// - /// 0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版) - /// - public int 信息类型 { get; set; } - /// - /// 发送群信息、讨论组、群或讨论组临时会话信息时填,如发送对象为好友或信息类型是0时可空 - /// - public string 收信对象所属群_讨论组 { get; set; } - /// - /// 收信对象QQ - /// - public string 收信对象QQ { get; set; } - /// - /// Json结构内容 - /// - public string Json结构 { get; set; } - } - /// - /// 调用一次点一下,成功返回空,失败返回理由如:每天最多给他点十个赞哦,调用此Api时应注意频率,每人每日可被赞10次,每日每Q最多可赞50人 - /// - [HttpPost("Api_UpVote")] - public Task Api_UpVote([FromBody] CleverQQApi_UpVoteHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_UpVote), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.被赞QQ), input.被赞QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 调用一次点一下,成功返回空,失败返回理由如:每天最多给他点十个赞哦,调用此Api时应注意频率,每人每日可被赞10次,每日每Q最多可赞50人 - /// - public class CleverQQApi_UpVoteHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 填写被赞人QQ - /// - public string 被赞QQ { get; set; } - } - /// - /// 取得机器人网页操作用的Cookies - /// - [HttpPost("Api_GetCookies")] - public Task Api_GetCookies([FromBody] CleverQQApi_GetCookiesHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetCookies), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得机器人网页操作用的Cookies - /// - public class CleverQQApi_GetCookiesHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 取得腾讯微博页面操作用参数P_skey - /// - [HttpPost("Api_GetBlogPsKey")] - public Task Api_GetBlogPsKey([FromBody] CleverQQApi_GetBlogPsKeyHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetBlogPsKey), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得腾讯微博页面操作用参数P_skey - /// - public class CleverQQApi_GetBlogPsKeyHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 取得QQ空间页面操作用参数P_skey - /// - [HttpPost("Api_GetZonePsKey")] - public Task Api_GetZonePsKey([FromBody] CleverQQApi_GetZonePsKeyHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetZonePsKey), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得QQ空间页面操作用参数P_skey - /// - public class CleverQQApi_GetZonePsKeyHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 取得QQ群页面操作用参数P_skey - /// - [HttpPost("Api_GetGroupPsKey")] - public Task Api_GetGroupPsKey([FromBody] CleverQQApi_GetGroupPsKeyHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetGroupPsKey), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得QQ群页面操作用参数P_skey - /// - public class CleverQQApi_GetGroupPsKeyHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 取得腾讯课堂页面操作用参数P_skey - /// - [HttpPost("Api_GetClassRoomPsKey")] - public Task Api_GetClassRoomPsKey([FromBody] CleverQQApi_GetClassRoomPsKeyHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetClassRoomPsKey), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得腾讯课堂页面操作用参数P_skey - /// - public class CleverQQApi_GetClassRoomPsKeyHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 取得机器人网页操作用参数Bkn或G_tk - /// - [HttpPost("Api_GetBkn")] - public Task Api_GetBkn([FromBody] CleverQQApi_GetBknHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetBkn), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得机器人网页操作用参数Bkn或G_tk - /// - public class CleverQQApi_GetBknHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 取得机器人网页操作用参数长Bkn或长G_tk - /// - [HttpPost("Api_GetBkn32")] - public Task Api_GetBkn32([FromBody] CleverQQApi_GetBkn32HttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetBkn32), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得机器人网页操作用参数长Bkn或长G_tk - /// - public class CleverQQApi_GetBkn32HttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 取得机器人网页操作用参数长Ldw - /// - [HttpPost("Api_GetLongLdw")] - public Task Api_GetLongLdw([FromBody] CleverQQApi_GetLongLdwHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetLongLdw), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得机器人网页操作用参数长Ldw - /// - public class CleverQQApi_GetLongLdwHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 取得机器人网页操作用的Clientkey - /// - [HttpPost("Api_GetClientkey")] - public Task Api_GetClientkey([FromBody] CleverQQApi_GetClientkeyHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetClientkey), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得机器人网页操作用的Clientkey - /// - public class CleverQQApi_GetClientkeyHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 取得机器人网页操作用的长Clientkey - /// - [HttpPost("Api_GetLongClientkey")] - public Task Api_GetLongClientkey([FromBody] CleverQQApi_GetLongClientkeyHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetLongClientkey), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得机器人网页操作用的长Clientkey - /// - public class CleverQQApi_GetLongClientkeyHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 管理员邀请对象入群,频率过快会失败 - /// - [HttpPost("Api_AdminInviteGroup")] - public Task Api_AdminInviteGroup([FromBody] CleverQQApi_AdminInviteGroupHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_AdminInviteGroup), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -{nameof(input.群号), input.群号}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 管理员邀请对象入群,频率过快会失败 - /// - public class CleverQQApi_AdminInviteGroupHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 被邀请人QQ号码(多个号码使用 #换行符 分割) - /// - public string 对象QQ { get; set; } - /// - /// 被邀请加入的群号 - /// - public string 群号 { get; set; } - } - /// - /// 非管理员邀请对象入群,频率过快会失败 - /// - [HttpPost("Api_NoAdminInviteGroup")] - public Task Api_NoAdminInviteGroup([FromBody] CleverQQApi_NoAdminInviteGroupHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_NoAdminInviteGroup), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -{nameof(input.群号), input.群号}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 非管理员邀请对象入群,频率过快会失败 - /// - public class CleverQQApi_NoAdminInviteGroupHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 被邀请人QQ号码(多个号码使用 #换行符 分割) - /// - public string 对象QQ { get; set; } - /// - /// 被邀请加入的群号 - /// - public string 群号 { get; set; } - } - /// - /// 取对象昵称 - /// - [HttpPost("Api_GetNick")] - public Task Api_GetNick([FromBody] CleverQQApi_GetNickHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetNick), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取对象昵称 - /// - public class CleverQQApi_GetNickHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 欲取得的QQ的号码 - /// - public string 对象QQ { get; set; } - } - /// - /// 取对象群名片 - /// - [HttpPost("Api_GetGroupCard")] - public Task Api_GetGroupCard([FromBody] CleverQQApi_GetGroupCardHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetGroupCard), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取对象群名片 - /// - public class CleverQQApi_GetGroupCardHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 群号 - /// - public string 群号 { get; set; } - /// - /// 欲取得群名片的QQ号码 - /// - public string 对象QQ { get; set; } - } - /// - /// 取对象QQ等级 成功返回等级 失败返回-1 - /// - [HttpPost("Api_GetObjLevel")] - public Task Api_GetObjLevel([FromBody] CleverQQApi_GetObjLevelHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetObjLevel), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取对象QQ等级 成功返回等级 失败返回-1 - /// - public class CleverQQApi_GetObjLevelHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 欲取得的QQ的号码 - /// - public string 对象QQ { get; set; } - } - /// - /// 取得好友列表,返回获取到的原始JSON格式信息,需自行解析 - /// - [HttpPost("Api_GetFriendList")] - public Task Api_GetFriendList([FromBody] CleverQQApi_GetFriendListHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetFriendList), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得好友列表,返回获取到的原始JSON格式信息,需自行解析 - /// - public class CleverQQApi_GetFriendListHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 取得好友列表,返回内容#换行符分割 - /// - [HttpPost("Api_GetFriendList_B")] - public Task Api_GetFriendList_B([FromBody] CleverQQApi_GetFriendList_BHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetFriendList_B), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得好友列表,返回内容#换行符分割 - /// - public class CleverQQApi_GetFriendList_BHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 取得企点QQ外部联系人好友列表 成功返回Json列表 失败或无返回空 - /// - [HttpPost("Api_GetQidianQQFriendsList")] - public Task Api_GetQidianQQFriendsList([FromBody] CleverQQApi_GetQidianQQFriendsListHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetQidianQQFriendsList), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得企点QQ外部联系人好友列表 成功返回Json列表 失败或无返回空 - /// - public class CleverQQApi_GetQidianQQFriendsListHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 取得群管理,返回获取到的原始JSON格式信息,需自行解析 - /// - [HttpPost("Api_GetGroupAdmin")] - public Task Api_GetGroupAdmin([FromBody] CleverQQApi_GetGroupAdminHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetGroupAdmin), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得群管理,返回获取到的原始JSON格式信息,需自行解析 - /// - public class CleverQQApi_GetGroupAdminHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 欲取管理员列表群号 - /// - public string 群号 { get; set; } - } - /// - /// 取得群列表,#换行符分割 不受最高获取500群限制(如需获取群名称请对应调用 Api_GetGroupName 理论群名获取不会频繁) - /// - [HttpPost("Api_GetGroupList_A")] - public Task Api_GetGroupList_A([FromBody] CleverQQApi_GetGroupList_AHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetGroupList_A), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得群列表,#换行符分割 不受最高获取500群限制(如需获取群名称请对应调用 Api_GetGroupName 理论群名获取不会频繁) - /// - public class CleverQQApi_GetGroupList_AHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 取得群列表,返回获取到的原始JSON格式信息,需自行解析 - /// - [HttpPost("Api_GetGroupList")] - public Task Api_GetGroupList([FromBody] CleverQQApi_GetGroupListHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetGroupList), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得群列表,返回获取到的原始JSON格式信息,需自行解析 - /// - public class CleverQQApi_GetGroupListHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 取得群列表,返回获取到的原始JSON格式信息,需自行解析 - /// - [HttpPost("Api_GetGroupList_B")] - public Task Api_GetGroupList_B([FromBody] CleverQQApi_GetGroupList_BHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetGroupList_B), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得群列表,返回获取到的原始JSON格式信息,需自行解析 - /// - public class CleverQQApi_GetGroupList_BHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 取得群成员列表,返回获取到的原始JSON格式信息,需自行解析(有群员昵称) - /// - [HttpPost("Api_GetGroupMemberList")] - public Task Api_GetGroupMemberList([FromBody] CleverQQApi_GetGroupMemberListHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetGroupMemberList), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得群成员列表,返回获取到的原始JSON格式信息,需自行解析(有群员昵称) - /// - public class CleverQQApi_GetGroupMemberListHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 欲取群成员列表群号 - /// - public string 群号 { get; set; } - } - /// - /// 取得群成员列表,返回QQ号和身份Json格式信息 失败返回空(无群员昵称) - /// - [HttpPost("Api_GetGroupMemberList_B")] - public Task Api_GetGroupMemberList_B([FromBody] CleverQQApi_GetGroupMemberList_BHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetGroupMemberList_B), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得群成员列表,返回QQ号和身份Json格式信息 失败返回空(无群员昵称) - /// - public class CleverQQApi_GetGroupMemberList_BHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 欲取群成员列表群号 - /// - public string 群号 { get; set; } - } - /// - /// 取得群成员列表,返回获取到的原始JSON格式信息,需自行解析(有群员昵称) - /// - [HttpPost("Api_GetGroupMemberList_C")] - public Task Api_GetGroupMemberList_C([FromBody] CleverQQApi_GetGroupMemberList_CHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetGroupMemberList_C), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得群成员列表,返回获取到的原始JSON格式信息,需自行解析(有群员昵称) - /// - public class CleverQQApi_GetGroupMemberList_CHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 欲取群成员列表群号 - /// - public string 群号 { get; set; } - } - /// - /// 查询对象或自己是否被禁言 禁言返回真 失败或未禁言返回假 - /// - [HttpPost("Api_IsShutUp")] - public Task Api_IsShutUp([FromBody] CleverQQApi_IsShutUpHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_IsShutUp), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 查询对象或自己是否被禁言 禁言返回真 失败或未禁言返回假 - /// - public class CleverQQApi_IsShutUpHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 欲查询的群号 - /// - public string 群号 { get; set; } - /// - /// 需要查询的对象QQ - /// - public string 对象QQ { get; set; } - } - /// - /// 群内禁言某人 - /// - [HttpPost("Api_ShutUP")] - public Task Api_ShutUP([FromBody] CleverQQApi_ShutUPHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_ShutUP), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.对象QQ), input.对象QQ}, -{nameof(input.时间), input.时间}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 群内禁言某人 - /// - public class CleverQQApi_ShutUPHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 欲操作的群号 - /// - public string 群号 { get; set; } - /// - /// 欲禁言的对象,如留空且机器人QQ为管理员,将设置该群为全群禁言 - /// - public string 对象QQ { get; set; } - /// - /// 0为解除禁言 (禁言单位为秒),如为全群禁言,参数为非0,解除全群禁言为0 - /// - public int 时间 { get; set; } - } - /// - /// 申请加群 - /// - [HttpPost("Api_JoinGroup")] - public Task Api_JoinGroup([FromBody] CleverQQApi_JoinGroupHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_JoinGroup), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.理由), input.理由}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 申请加群 - /// - public class CleverQQApi_JoinGroupHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 欲申请加入的群号 - /// - public string 群号 { get; set; } - /// - /// 附加理由,可留空(需回答正确问题时,请填写问题答案) - /// - public string 理由 { get; set; } - } - /// - /// 退群 - /// - [HttpPost("Api_QuitGroup")] - public Task Api_QuitGroup([FromBody] CleverQQApi_QuitGroupHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_QuitGroup), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 退群 - /// - public class CleverQQApi_QuitGroupHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 欲退出的群号 - /// - public string 群号 { get; set; } - } - /// - /// 上传图片(通过读入字节集方式),可使用网页链接或本地读入,成功返回该图片GUID,失败返回空 - /// - [HttpPost("Api_UpLoadPic")] - public Task Api_UpLoadPic([FromBody] CleverQQApi_UpLoadPicHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_UpLoadPic), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.上传类型), input.上传类型}, -{nameof(input.参考对象), input.参考对象}, -{nameof(input.图片数据), input.图片数据}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 上传图片(通过读入字节集方式),可使用网页链接或本地读入,成功返回该图片GUID,失败返回空 - /// - public class CleverQQApi_UpLoadPicHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 1好友、临时会话 2群、讨论组 Ps:好友临时会话用类型 1,群讨论组用类型 2;当填写错误时,图片GUID发送不会成功 - /// - public int 上传类型 { get; set; } - /// - /// 上传该图片所属的群号或QQ - /// - public string 参考对象 { get; set; } - /// - /// 图片字节集数据 - /// - public string 图片数据 { get; set; } - } - /// - /// 根据图片GUID取得图片下载连接 - /// - [HttpPost("Api_GetPicLink")] - public Task Api_GetPicLink([FromBody] CleverQQApi_GetPicLinkHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetPicLink), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.图片类型), input.图片类型}, -{nameof(input.参考对象), input.参考对象}, -{nameof(input.图片GUID), input.图片GUID}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 根据图片GUID取得图片下载连接 - /// - public class CleverQQApi_GetPicLinkHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 1 群 讨论组 2临时会话和好友 - /// - public int 图片类型 { get; set; } - /// - /// 图片所属对应的群号和好友QQ(可随意乱填写) - /// - public string 参考对象 { get; set; } - /// - /// 例如[IR:pic={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.jpg] - /// - public string 图片GUID { get; set; } - } - /// - /// 向CleverQQ日志窗口发送一条本插件的日志,可用于调试输出需要的内容,或定位插件错误与运行状态 - /// - [HttpPost("Api_OutPutLog")] - public Task Api_OutPutLog([FromBody] CleverQQApi_OutPutLogHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_OutPutLog), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.内容), input.内容}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 向CleverQQ日志窗口发送一条本插件的日志,可用于调试输出需要的内容,或定位插件错误与运行状态 - /// - public class CleverQQApi_OutPutLogHttpInput - { - /// - /// 任意想输出的文本格式信息 - /// - public string 内容 { get; set; } - } - /// - /// 腾讯Tea加密 - /// - [HttpPost("Api_Tea加密")] - public Task Api_Tea加密([FromBody] CleverQQApi_Tea加密HttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_Tea加密), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.需加密内容), input.需加密内容}, -{nameof(input.会话KEY), input.会话KEY}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 腾讯Tea加密 - /// - public class CleverQQApi_Tea加密HttpInput - { - /// - /// 需加密的内容 - /// - public string 需加密内容 { get; set; } - /// - /// 这里填Api_SessionKey - /// - public string 会话KEY { get; set; } - } - /// - /// 腾讯Tea解密 - /// - [HttpPost("Api_Tea解密")] - public Task Api_Tea解密([FromBody] CleverQQApi_Tea解密HttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_Tea解密), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.需解密内容), input.需解密内容}, -{nameof(input.会话KEY), input.会话KEY}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 腾讯Tea解密 - /// - public class CleverQQApi_Tea解密HttpInput - { - /// - /// 需解密的内容 - /// - public string 需解密内容 { get; set; } - /// - /// 这里填Api_SessionKey - /// - public string 会话KEY { get; set; } - } - /// - /// 获取会话SessionKey密钥 - /// - [HttpPost("Api_SessionKey")] - public Task Api_SessionKey([FromBody] CleverQQApi_SessionKeyHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_SessionKey), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 获取会话SessionKey密钥 - /// - public class CleverQQApi_SessionKeyHttpInput - { - /// - /// 欲获取的QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 群号转群ID - /// - [HttpPost("Api_GNTransGID")] - public Task Api_GNTransGID([FromBody] CleverQQApi_GNTransGIDHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GNTransGID), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.群号), input.群号}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 群号转群ID - /// - public class CleverQQApi_GNTransGIDHttpInput - { - /// - /// - /// - public string 群号 { get; set; } - } - /// - /// 群ID转群号 - /// - [HttpPost("Api_GIDTransGN")] - public Task Api_GIDTransGN([FromBody] CleverQQApi_GIDTransGNHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GIDTransGN), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.群ID), input.群ID}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 群ID转群号 - /// - public class CleverQQApi_GIDTransGNHttpInput - { - /// - /// - /// - public string 群ID { get; set; } - } - /// - /// 发布群公告(成功返回真,失败返回假),调用此API应保证响应QQ为管理员 - /// - [HttpPost("Api_PBGroupNotic")] - public Task Api_PBGroupNotic([FromBody] CleverQQApi_PBGroupNoticHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_PBGroupNotic), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.标题), input.标题}, -{nameof(input.内容), input.内容}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 发布群公告(成功返回真,失败返回假),调用此API应保证响应QQ为管理员 - /// - public class CleverQQApi_PBGroupNoticHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 欲发布公告的群号 - /// - public string 群号 { get; set; } - /// - /// 公告标题 - /// - public string 标题 { get; set; } - /// - /// 公告内容 - /// - public string 内容 { get; set; } - } - /// - /// 取群公告,返回该群最新公告 - /// - [HttpPost("Api_GetNotice")] - public Task Api_GetNotice([FromBody] CleverQQApi_GetNoticeHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetNotice), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取群公告,返回该群最新公告 - /// - public class CleverQQApi_GetNoticeHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 欲取得公告的群号 - /// - public string 群号 { get; set; } - } - /// - /// 向好友发起窗口抖动,调用此Api腾讯会限制频率 - /// - [HttpPost("Api_ShakeWindow")] - public Task Api_ShakeWindow([FromBody] CleverQQApi_ShakeWindowHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_ShakeWindow), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.接收QQ), input.接收QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 向好友发起窗口抖动,调用此Api腾讯会限制频率 - /// - public class CleverQQApi_ShakeWindowHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 接收抖动消息的QQ - /// - public string 接收QQ { get; set; } - } - /// - /// 某人申请入群 添加好友 被邀请入群 请求处理 - /// - [HttpPost("Api_HandleEvent")] - public Task Api_HandleEvent([FromBody] CleverQQApi_HandleEventHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_HandleEvent), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.请求类型), input.请求类型}, -{nameof(input.对象QQ), input.对象QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.处理方式), input.处理方式}, -{nameof(input.附加信息), input.附加信息}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 某人申请入群 添加好友 被邀请入群 请求处理 - /// - public class CleverQQApi_HandleEventHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 213请求入群 214我被邀请加入某群 215某人被邀请加入群 101某人请求添加好友 - /// - public int 请求类型 { get; set; } - /// - /// 申请入群 被邀请人 请求添加好友人的QQ (当请求类型为214时这里为邀请人QQ) - /// - public string 对象QQ { get; set; } - /// - /// 收到请求群号(好友添加时这里请为空) - /// - public string 群号 { get; set; } - /// - /// 10同意 20拒绝 30忽略 - /// - public int 处理方式 { get; set; } - /// - /// 拒绝入群,拒绝添加好友 附加信息 - /// - public string 附加信息 { get; set; } - } - /// - /// 处理群验证事件 第二模式(新手建议使用Api_HandleEvent) Pro可用 - /// - [HttpPost("Api_HandleGroupEvent")] - public Task Api_HandleGroupEvent([FromBody] CleverQQApi_HandleGroupEventHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_HandleGroupEvent), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.请求类型), input.请求类型}, -{nameof(input.对象QQ), input.对象QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.seq), input.seq}, -{nameof(input.处理方式), input.处理方式}, -{nameof(input.附加信息), input.附加信息}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 处理群验证事件 第二模式(新手建议使用Api_HandleEvent) Pro可用 - /// - public class CleverQQApi_HandleGroupEventHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 213请求入群 214我被邀请加入某群 215某人被邀请加入群 101某人请求添加好友 - /// - public int 请求类型 { get; set; } - /// - /// 申请入群 被邀请人 请求添加好友人的QQ (当请求类型为214时这里为邀请人QQ) - /// - public string 对象QQ { get; set; } - /// - /// 收到请求群号(好友添加时这里请为空) - /// - public string 群号 { get; set; } - /// - /// 需要处理事件的seq (好友事件留空) - /// - public string seq { get; set; } - /// - /// 10同意 20拒绝 30忽略 - /// - public int 处理方式 { get; set; } - /// - /// 拒绝入群,拒绝添加好友 附加信息 - /// - public string 附加信息 { get; set; } - } - /// - /// 开关群匿名消息发送功能 成功返回真 失败返回假 - /// - [HttpPost("Api_SetAnon")] - public Task Api_SetAnon([FromBody] CleverQQApi_SetAnonHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_SetAnon), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.开关), input.开关}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 开关群匿名消息发送功能 成功返回真 失败返回假 - /// - public class CleverQQApi_SetAnonHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需开关群匿名功能群号 - /// - public string 群号 { get; set; } - /// - /// 真开 假关 - /// - public bool 开关 { get; set; } - } - /// - /// 修改对象群名片 成功返回真 失败返回假 - /// - [HttpPost("Api_SetGroupCard")] - public Task Api_SetGroupCard([FromBody] CleverQQApi_SetGroupCardHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_SetGroupCard), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.对象QQ), input.对象QQ}, -{nameof(input.名片), input.名片}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 修改对象群名片 成功返回真 失败返回假 - /// - public class CleverQQApi_SetGroupCardHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 对象所处群号 - /// - public string 群号 { get; set; } - /// - /// 被修改名片人QQ - /// - public string 对象QQ { get; set; } - /// - /// 需要修改的名片 - /// - public string 名片 { get; set; } - } - /// - /// 退出讨论组 - /// - [HttpPost("Api_QuitDisGroup")] - public Task Api_QuitDisGroup([FromBody] CleverQQApi_QuitDisGroupHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_QuitDisGroup), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.讨论组ID), input.讨论组ID}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 退出讨论组 - /// - public class CleverQQApi_QuitDisGroupHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需退出的讨论组ID - /// - public string 讨论组ID { get; set; } - } - /// - /// 创建一个讨论组 成功返回讨论组ID 失败返回空 - /// - [HttpPost("Api_CreateDisGroup")] - public Task Api_CreateDisGroup([FromBody] CleverQQApi_CreateDisGroupHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_CreateDisGroup), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.讨论组名称), input.讨论组名称}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 创建一个讨论组 成功返回讨论组ID 失败返回空 - /// - public class CleverQQApi_CreateDisGroupHttpInput - { - /// - /// 机器人 - /// - public string 响应QQ { get; set; } - /// - /// 建立的讨论组名称 - /// - public string 讨论组名称 { get; set; } - } - /// - /// 将对象移除讨论组 成功返回空 失败返回理由 - /// - [HttpPost("Api_KickDisGroupMBR")] - public Task Api_KickDisGroupMBR([FromBody] CleverQQApi_KickDisGroupMBRHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_KickDisGroupMBR), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.讨论组ID), input.讨论组ID}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 将对象移除讨论组 成功返回空 失败返回理由 - /// - public class CleverQQApi_KickDisGroupMBRHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需执行的讨论组ID - /// - public string 讨论组ID { get; set; } - /// - /// 被执行对象 - /// - public string 对象QQ { get; set; } - } - /// - /// 邀请对象加入讨论组 成功返回空 失败返回理由 - /// - [HttpPost("Api_InviteDisGroup")] - public Task Api_InviteDisGroup([FromBody] CleverQQApi_InviteDisGroupHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_InviteDisGroup), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.讨论组ID), input.讨论组ID}, -{nameof(input.邀请对象QQ), input.邀请对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 邀请对象加入讨论组 成功返回空 失败返回理由 - /// - public class CleverQQApi_InviteDisGroupHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需执行的讨论组ID - /// - public string 讨论组ID { get; set; } - /// - /// 被邀请对象QQ 多个用 #换行符 分割 - /// - public string 邀请对象QQ { get; set; } - } - /// - /// 取出讨论组列表 (返回格式为 换行符分割开的) - /// - [HttpPost("Api_GetDisGroupList")] - public Task Api_GetDisGroupList([FromBody] CleverQQApi_GetDisGroupListHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetDisGroupList), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取出讨论组列表 (返回格式为 换行符分割开的) - /// - public class CleverQQApi_GetDisGroupListHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 取出讨论组成员列表 (返回格式为 换行符分割开的) - /// - [HttpPost("Api_GetDisGroupMemberList")] - public Task Api_GetDisGroupMemberList([FromBody] CleverQQApi_GetDisGroupMemberListHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetDisGroupMemberList), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.讨论组ID), input.讨论组ID}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取出讨论组成员列表 (返回格式为 换行符分割开的) - /// - public class CleverQQApi_GetDisGroupMemberListHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需获取的讨论组ID - /// - public string 讨论组ID { get; set; } - } - /// - /// 修改讨论组名称 - /// - [HttpPost("Api_SetDisGroupName")] - public Task Api_SetDisGroupName([FromBody] CleverQQApi_SetDisGroupNameHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_SetDisGroupName), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.讨论组ID), input.讨论组ID}, -{nameof(input.讨论组名称), input.讨论组名称}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 修改讨论组名称 - /// - public class CleverQQApi_SetDisGroupNameHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需执行的讨论组ID - /// - public string 讨论组ID { get; set; } - /// - /// 需修改的名称 - /// - public string 讨论组名称 { get; set; } - } - /// - /// 将对象移除群 - /// - [HttpPost("Api_KickGroupMBR")] - public Task Api_KickGroupMBR([FromBody] CleverQQApi_KickGroupMBRHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_KickGroupMBR), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.对象QQ), input.对象QQ}, -{nameof(input.不再接收加群请求), input.不再接收加群请求}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 将对象移除群 - /// - public class CleverQQApi_KickGroupMBRHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 被执行群号 - /// - public string 群号 { get; set; } - /// - /// 被执行对象 - /// - public string 对象QQ { get; set; } - /// - /// 真为不再接收,假为接收 - /// - public bool 不再接收加群请求 { get; set; } - } - /// - /// 获取对象当前赞数量 失败返回-1 成功返回赞数 (获取频繁会出现失败现象,请自行写判断处理失败问题) - /// - [HttpPost("Api_GetObjVote")] - public Task Api_GetObjVote([FromBody] CleverQQApi_GetObjVoteHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetObjVote), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 获取对象当前赞数量 失败返回-1 成功返回赞数 (获取频繁会出现失败现象,请自行写判断处理失败问题) - /// - public class CleverQQApi_GetObjVoteHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// - /// - public string 对象QQ { get; set; } - } - /// - /// 上传QQ语音,成功返回语音GUID 失败返回空 - /// - [HttpPost("Api_UpLoadVoice")] - public Task Api_UpLoadVoice([FromBody] CleverQQApi_UpLoadVoiceHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_UpLoadVoice), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.上传类型), input.上传类型}, -{nameof(input.接收群号), input.接收群号}, -{nameof(input.语音数据), input.语音数据}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 上传QQ语音,成功返回语音GUID 失败返回空 - /// - public class CleverQQApi_UpLoadVoiceHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 2、QQ群 讨论组 - /// - public int 上传类型 { get; set; } - /// - /// 需上传的群号 - /// - public string 接收群号 { get; set; } - /// - /// 语音字节集数据(AMR Silk编码) - /// - public string 语音数据 { get; set; } - } - /// - /// 通过语音GUID获取下载连接 失败返回空 - /// - [HttpPost("Api_GetVoiLink")] - public Task Api_GetVoiLink([FromBody] CleverQQApi_GetVoiLinkHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetVoiLink), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.语音GUID), input.语音GUID}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 通过语音GUID获取下载连接 失败返回空 - /// - public class CleverQQApi_GetVoiLinkHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// [IR:Voi={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx}.amr] - /// - public string 语音GUID { get; set; } - } - /// - /// 获取当前框架内部时间戳 - /// - [HttpPost("Api_GetTimeStamp")] - public Task Api_GetTimeStamp([FromBody] CleverQQApi_GetTimeStampHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetTimeStamp), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary - { - } - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 获取当前框架内部时间戳 - /// - public class CleverQQApi_GetTimeStampHttpInput - { - } - /// - /// 向腾讯发送原始封包(成功返回腾讯返回的包 失败返回空) - /// - [HttpPost("Api_SendPack")] - public Task Api_SendPack([FromBody] CleverQQApi_SendPackHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_SendPack), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.封包), input.封包}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 向腾讯发送原始封包(成功返回腾讯返回的包 失败返回空) - /// - public class CleverQQApi_SendPackHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// 封包内容 - /// - public string 封包 { get; set; } - } - /// - /// 获取对象资料 此方式为http,调用时应自行注意控制频率(成功返回JSON格式自行解析) - /// - [HttpPost("Api_GetObjInfo")] - public Task Api_GetObjInfo([FromBody] CleverQQApi_GetObjInfoHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetObjInfo), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 获取对象资料 此方式为http,调用时应自行注意控制频率(成功返回JSON格式自行解析) - /// - public class CleverQQApi_GetObjInfoHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// - /// - public string 对象QQ { get; set; } - } - /// - /// 取对象性别 1男 2女 未知或失败返回-1 - /// - [HttpPost("Api_GetGender")] - public Task Api_GetGender([FromBody] CleverQQApi_GetGenderHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetGender), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取对象性别 1男 2女 未知或失败返回-1 - /// - public class CleverQQApi_GetGenderHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// - /// - public string 对象QQ { get; set; } - } - /// - /// 取Q龄 成功返回Q龄 失败返回-1 - /// - [HttpPost("Api_GetQQAge")] - public Task Api_GetQQAge([FromBody] CleverQQApi_GetQQAgeHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetQQAge), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取Q龄 成功返回Q龄 失败返回-1 - /// - public class CleverQQApi_GetQQAgeHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// - /// - public string 对象QQ { get; set; } - } - /// - /// 取年龄 成功返回年龄 失败返回-1 - /// - [HttpPost("Api_GetAge")] - public Task Api_GetAge([FromBody] CleverQQApi_GetAgeHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetAge), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取年龄 成功返回年龄 失败返回-1 - /// - public class CleverQQApi_GetAgeHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// - /// - public string 对象QQ { get; set; } - } - /// - /// 取个人说明 - /// - [HttpPost("Api_GetPerExp")] - public Task Api_GetPerExp([FromBody] CleverQQApi_GetPerExpHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetPerExp), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取个人说明 - /// - public class CleverQQApi_GetPerExpHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// - /// - public string 对象QQ { get; set; } - } - /// - /// 取个人签名 - /// - [HttpPost("Api_GetSign")] - public Task Api_GetSign([FromBody] CleverQQApi_GetSignHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetSign), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取个人签名 - /// - public class CleverQQApi_GetSignHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// - /// - public string 对象QQ { get; set; } - } - /// - /// 取邮箱,获取对象QQ资料内邮箱栏为邮箱时返回 - /// - [HttpPost("Api_GetEmail")] - public Task Api_GetEmail([FromBody] CleverQQApi_GetEmailHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetEmail), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取邮箱,获取对象QQ资料内邮箱栏为邮箱时返回 - /// - public class CleverQQApi_GetEmailHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// - /// - public string 对象QQ { get; set; } - } - /// - /// 取QQ群名 - /// - [HttpPost("Api_GetGroupName")] - public Task Api_GetGroupName([FromBody] CleverQQApi_GetGroupNameHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetGroupName), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取QQ群名 - /// - public class CleverQQApi_GetGroupNameHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// - /// - public string 群号 { get; set; } - } - /// - /// 取框架版本号 - /// - [HttpPost("Api_GetVer")] - public Task Api_GetVer([FromBody] CleverQQApi_GetVerHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetVer), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary - { - } - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取框架版本号 - /// - public class CleverQQApi_GetVerHttpInput - { - } - /// - /// 取框架所有QQ号 换行符分割 - /// - [HttpPost("Api_GetQQList")] - public Task Api_GetQQList([FromBody] CleverQQApi_GetQQListHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetQQList), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary - { - } - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取框架所有QQ号 换行符分割 - /// - public class CleverQQApi_GetQQListHttpInput - { - } - /// - /// 取框架在线QQ号 换行符分割 - /// - [HttpPost("Api_GetOnLineList")] - public Task Api_GetOnLineList([FromBody] CleverQQApi_GetOnLineListHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetOnLineList), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary - { - } - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取框架在线QQ号 换行符分割 - /// - public class CleverQQApi_GetOnLineListHttpInput - { - } - /// - /// 取框架离线QQ号 (Pro版可用)换行符分割 - /// - [HttpPost("Api_GetOffLineList")] - public Task Api_GetOffLineList([FromBody] CleverQQApi_GetOffLineListHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetOffLineList), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary - { - } - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取框架离线QQ号 (Pro版可用)换行符分割 - /// - public class CleverQQApi_GetOffLineListHttpInput - { - } - /// - /// 向框架帐号列表增加一个登录QQ 成功失败均返回理由(Pro版可用) - /// - [HttpPost("Api_AddQQ")] - public Task Api_AddQQ([FromBody] CleverQQApi_AddQQHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_AddQQ), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.帐号), input.帐号}, -{nameof(input.密码), input.密码}, -{nameof(input.自动登录), input.自动登录}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 向框架帐号列表增加一个登录QQ 成功失败均返回理由(Pro版可用) - /// - public class CleverQQApi_AddQQHttpInput - { - /// - /// - /// - public string 帐号 { get; set; } - /// - /// - /// - public string 密码 { get; set; } - /// - /// 真 为自动登录 - /// - public bool 自动登录 { get; set; } - } - /// - /// 删除框架帐号列表内指定QQ,不可在执行登录过程中删除QQ否则有几率引起错误(Pro版可用) - /// - [HttpPost("Api_DelQQ")] - public Task Api_DelQQ([FromBody] CleverQQApi_DelQQHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_DelQQ), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.QQ号), input.QQ号}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 删除框架帐号列表内指定QQ,不可在执行登录过程中删除QQ否则有几率引起错误(Pro版可用) - /// - public class CleverQQApi_DelQQHttpInput - { - /// - /// - /// - public string QQ号 { get; set; } - } - /// - /// 登录指定QQ,应确保QQ号码在列表中已存在 - /// - [HttpPost("Api_LoginQQ")] - public Task Api_LoginQQ([FromBody] CleverQQApi_LoginQQHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_LoginQQ), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.登录QQ), input.登录QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 登录指定QQ,应确保QQ号码在列表中已存在 - /// - public class CleverQQApi_LoginQQHttpInput - { - /// - /// - /// - public string 登录QQ { get; set; } - } - /// - /// 令指定QQ下线,应确保QQ号码已在列表中且在线 - /// - [HttpPost("Api_OffLineQQ")] - public Task Api_OffLineQQ([FromBody] CleverQQApi_OffLineQQHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_OffLineQQ), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 令指定QQ下线,应确保QQ号码已在列表中且在线 - /// - public class CleverQQApi_OffLineQQHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - } - /// - /// 是否QQ好友 好友返回真 非好友或获取失败返回假 - /// - [HttpPost("Api_IfFriend")] - public Task Api_IfFriend([FromBody] CleverQQApi_IfFriendHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_IfFriend), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 是否QQ好友 好友返回真 非好友或获取失败返回假 - /// - public class CleverQQApi_IfFriendHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// - /// - public string 对象QQ { get; set; } - } - /// - /// 修改机器人在线状态 昵称 个性签名 性别 - /// - [HttpPost("Api_SetRInf")] - public Task Api_SetRInf([FromBody] CleverQQApi_SetRInfHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_SetRInf), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.类型), input.类型}, -{nameof(input.修改内容), input.修改内容}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 修改机器人在线状态 昵称 个性签名 性别 - /// - public class CleverQQApi_SetRInfHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// 1、我在线上 2、Q我吧 3、离开 4、忙碌 5、请勿打扰 6、隐身 7、修改昵称 8、修改个性签名 9、修改性别 - /// - public int 类型 { get; set; } - /// - /// 类型为7和8时填写修改内容 类型9时“1”为男 “2”为女 其他填“” - /// - public string 修改内容 { get; set; } - } - /// - /// 获取机器人状态信息,成功返回:昵称、帐号、在线状态、速度、收信、发信、在线时间,失败返回空 - /// - [HttpPost("Api_GetRInf")] - public Task Api_GetRInf([FromBody] CleverQQApi_GetRInfHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetRInf), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 获取机器人状态信息,成功返回:昵称、帐号、在线状态、速度、收信、发信、在线时间,失败返回空 - /// - public class CleverQQApi_GetRInfHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - } - /// - /// 删除好友 成功返回真 失败返回假 - /// - [HttpPost("Api_DelFriend")] - public Task Api_DelFriend([FromBody] CleverQQApi_DelFriendHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_DelFriend), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 删除好友 成功返回真 失败返回假 - /// - public class CleverQQApi_DelFriendHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 被删除对象 - /// - public string 对象QQ { get; set; } - } - /// - /// 将好友拉入黑名单 成功返回真 失败返回假 - /// - [HttpPost("Api_AddBkList")] - public Task Api_AddBkList([FromBody] CleverQQApi_AddBkListHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_AddBkList), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 将好友拉入黑名单 成功返回真 失败返回假 - /// - public class CleverQQApi_AddBkListHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// - /// - public string 对象QQ { get; set; } - } - /// - /// 解除好友黑名单 - /// - [HttpPost("Api_DelBkList")] - public Task Api_DelBkList([FromBody] CleverQQApi_DelBkListHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_DelBkList), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 解除好友黑名单 - /// - public class CleverQQApi_DelBkListHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// - /// - public string 对象QQ { get; set; } - } - /// - /// 屏蔽或接收某群消息 - /// - [HttpPost("Api_SetShieldedGroup")] - public Task Api_SetShieldedGroup([FromBody] CleverQQApi_SetShieldedGroupHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_SetShieldedGroup), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.类型), input.类型}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 屏蔽或接收某群消息 - /// - public class CleverQQApi_SetShieldedGroupHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// - /// - public string 群号 { get; set; } - /// - /// 真 为屏蔽接收 假为接收并提醒 - /// - public bool 类型 { get; set; } - } - /// - /// 好友语音上传并发送 (成功返回真 失败返回假) - /// - [HttpPost("Api_SendVoice")] - public Task Api_SendVoice([FromBody] CleverQQApi_SendVoiceHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_SendVoice), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.接收QQ), input.接收QQ}, -{nameof(input.语音数据), input.语音数据}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 好友语音上传并发送 (成功返回真 失败返回假) - /// - public class CleverQQApi_SendVoiceHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 接收语音人QQ - /// - public string 接收QQ { get; set; } - /// - /// 语音字节集数据(AMR Silk编码) - /// - public string 语音数据 { get; set; } - } - /// - /// 设置或取消群管理员 成功返回空 失败返回理由 - /// - [HttpPost("Api_SetAdmin")] - public Task Api_SetAdmin([FromBody] CleverQQApi_SetAdminHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_SetAdmin), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.对象QQ), input.对象QQ}, -{nameof(input.操作方式), input.操作方式}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 设置或取消群管理员 成功返回空 失败返回理由 - /// - public class CleverQQApi_SetAdminHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// - /// - public string 群号 { get; set; } - /// - /// - /// - public string 对象QQ { get; set; } - /// - /// 真 为设置管理 假为取消管理 - /// - public bool 操作方式 { get; set; } - } - /// - /// QQ群作业发布 - /// - [HttpPost("Api_PBHomeWork")] - public Task Api_PBHomeWork([FromBody] CleverQQApi_PBHomeWorkHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_PBHomeWork), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.作业名), input.作业名}, -{nameof(input.标题), input.标题}, -{nameof(input.内容), input.内容}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// QQ群作业发布 - /// - public class CleverQQApi_PBHomeWorkHttpInput - { - /// - /// - /// - public string 响应QQ { get; set; } - /// - /// - /// - public string 群号 { get; set; } - /// - /// - /// - public string 作业名 { get; set; } - /// - /// - /// - public string 标题 { get; set; } - /// - /// - /// - public string 内容 { get; set; } - } - /// - /// 取框架日志 - /// - [HttpPost("Api_GetLog")] - public Task Api_GetLog([FromBody] CleverQQApi_GetLogHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetLog), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary - { - } - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取框架日志 - /// - public class CleverQQApi_GetLogHttpInput - { - } - /// - /// 取得插件自身启用状态,启用真 禁用假 - /// - [HttpPost("Api_IsEnable")] - public Task Api_IsEnable([FromBody] CleverQQApi_IsEnableHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_IsEnable), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary - { - } - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取得插件自身启用状态,启用真 禁用假 - /// - public class CleverQQApi_IsEnableHttpInput - { - } - /// - /// 请求禁用插件自身 - /// - [HttpPost("Api_DisabledPlugin")] - public Task Api_DisabledPlugin([FromBody] CleverQQApi_DisabledPluginHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_DisabledPlugin), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary - { - } - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 请求禁用插件自身 - /// - public class CleverQQApi_DisabledPluginHttpInput - { - } - /// - /// 消息撤回(成功返回空,失败返回腾讯给出的理由)(Pro版可用) - /// - [HttpPost("Api_WithdrawMsg")] - public Task Api_WithdrawMsg([FromBody] CleverQQApi_WithdrawMsgHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_WithdrawMsg), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.消息序号), input.消息序号}, -{nameof(input.消息ID), input.消息ID}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 消息撤回(成功返回空,失败返回腾讯给出的理由)(Pro版可用) - /// - public class CleverQQApi_WithdrawMsgHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需撤回消息群号 - /// - public string 群号 { get; set; } - /// - /// 需撤回消息序号 - /// - public string 消息序号 { get; set; } - /// - /// 需撤回消息ID - /// - public string 消息ID { get; set; } - } - /// - /// 置正在输入状态(发送消息后会打断状态) - /// - [HttpPost("Api_BeInput")] - public Task Api_BeInput([FromBody] CleverQQApi_BeInputHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_BeInput), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 置正在输入状态(发送消息后会打断状态) - /// - public class CleverQQApi_BeInputHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 置正在输入状态接收对象 - /// - public string 对象QQ { get; set; } - } - /// - /// 取对象好友添加验证方式 (00 允许任何人 01 需要身份验证 03 需回答正确问题 04 需回答问题 99 已经是好友) (Pro版可用) - /// - [HttpPost("Api_GetQQAddMode")] - public Task Api_GetQQAddMode([FromBody] CleverQQApi_GetQQAddModeHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetQQAddMode), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取对象好友添加验证方式 (00 允许任何人 01 需要身份验证 03 需回答正确问题 04 需回答问题 99 已经是好友) (Pro版可用) - /// - public class CleverQQApi_GetQQAddModeHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需获取对象QQ - /// - public string 对象QQ { get; set; } - } - /// - /// 查询对象是否在线 - /// - [HttpPost("Api_IsOnline")] - public Task Api_IsOnline([FromBody] CleverQQApi_IsOnlineHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_IsOnline), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 查询对象是否在线 - /// - public class CleverQQApi_IsOnlineHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需获取对象QQ - /// - public string 对象QQ { get; set; } - } - /// - /// 查询对象在线状态 返回 1、在线 2、Q我 3、离开 4、忙碌 5、勿扰 6、隐身或离线(Pro可用) - /// - [HttpPost("Api_GetOnlineState")] - public Task Api_GetOnlineState([FromBody] CleverQQApi_GetOnlineStateHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetOnlineState), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 查询对象在线状态 返回 1、在线 2、Q我 3、离开 4、忙碌 5、勿扰 6、隐身或离线(Pro可用) - /// - public class CleverQQApi_GetOnlineStateHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需获取对象QQ - /// - public string 对象QQ { get; set; } - } - /// - /// 查询对象群当前人数和上限人数 - /// - [HttpPost("Api_GetGroupMemberNum")] - public Task Api_GetGroupMemberNum([FromBody] CleverQQApi_GetGroupMemberNumHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetGroupMemberNum), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 查询对象群当前人数和上限人数 - /// - public class CleverQQApi_GetGroupMemberNumHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需查询的群号 - /// - public string 群号 { get; set; } - } - /// - /// 查询对方是否允许在线状态临时会话消息(非讨论组和群临时)(Pro版可用) - /// - [HttpPost("Api_GetWpa")] - public Task Api_GetWpa([FromBody] CleverQQApi_GetWpaHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetWpa), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 查询对方是否允许在线状态临时会话消息(非讨论组和群临时)(Pro版可用) - /// - public class CleverQQApi_GetWpaHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需查询的对象QQ - /// - public string 对象QQ { get; set; } - } - /// - /// 查询对象群验证方式 1允许任何人 2需要验证消息 3不允许任何人加群 4需要正确回答问题 5需要回答问题并由管理员审核 6付费群 -1群号不存在(获取失败返回空)Pro版可用 - /// - [HttpPost("Api_GetGroupAddMode")] - public Task Api_GetGroupAddMode([FromBody] CleverQQApi_GetGroupAddModeHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetGroupAddMode), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 查询对象群验证方式 1允许任何人 2需要验证消息 3不允许任何人加群 4需要正确回答问题 5需要回答问题并由管理员审核 6付费群 -1群号不存在(获取失败返回空)Pro版可用 - /// - public class CleverQQApi_GetGroupAddModeHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需查询的群号 - /// - public string 群号 { get; set; } - } - /// - /// 查询QQ群等级,成功返回等级(失败返回-1)Pro版可用 - /// - [HttpPost("Api_GetGroupLv")] - public Task Api_GetGroupLv([FromBody] CleverQQApi_GetGroupLvHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetGroupLv), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 查询QQ群等级,成功返回等级(失败返回-1)Pro版可用 - /// - public class CleverQQApi_GetGroupLvHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需查询的群号 - /// - public string 群号 { get; set; } - } - /// - /// 修改好友备注姓名 - /// - [HttpPost("Api_SetFriendsRemark")] - public Task Api_SetFriendsRemark([FromBody] CleverQQApi_SetFriendsRemarkHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_SetFriendsRemark), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -{nameof(input.备注), input.备注}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 修改好友备注姓名 - /// - public class CleverQQApi_SetFriendsRemarkHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需获取对象好友QQ - /// - public string 对象QQ { get; set; } - /// - /// 需要修改的备注姓名 - /// - public string 备注 { get; set; } - } - /// - /// 取好友备注姓名(成功返回备注,失败或无备注返回空)Pro可用 - /// - [HttpPost("Api_GetFriendsRemark")] - public Task Api_GetFriendsRemark([FromBody] CleverQQApi_GetFriendsRemarkHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetFriendsRemark), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 取好友备注姓名(成功返回备注,失败或无备注返回空)Pro可用 - /// - public class CleverQQApi_GetFriendsRemarkHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需获取对象好友QQ - /// - public string 对象QQ { get; set; } - } - /// - /// QQ群签到(成功返回真 失败返回假) - /// - [HttpPost("Api_SignIn")] - public Task Api_SignIn([FromBody] CleverQQApi_SignInHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_SignIn), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.地名), input.地名}, -{nameof(input.想说的话), input.想说的话}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// QQ群签到(成功返回真 失败返回假) - /// - public class CleverQQApi_SignInHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// QQ群号 - /// - public string 群号 { get; set; } - /// - /// 签到地名(Pro可自定义) - /// - public string 地名 { get; set; } - /// - /// 想发表的内容 - /// - public string 想说的话 { get; set; } - } - /// - /// 抽取群礼物(返回结果Json,需群聊等级LV5后)Pro可用 - /// - [HttpPost("Api_TakeGift")] - public Task Api_TakeGift([FromBody] CleverQQApi_TakeGiftHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_TakeGift), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 抽取群礼物(返回结果Json,需群聊等级LV5后)Pro可用 - /// - public class CleverQQApi_TakeGiftHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 查询我的群礼物(返回Json格式)Pro可用 - /// - [HttpPost("Api_CheckGift")] - public Task Api_CheckGift([FromBody] CleverQQApi_CheckGiftHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_CheckGift), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 查询我的群礼物(返回Json格式)Pro可用 - /// - public class CleverQQApi_CheckGiftHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - } - /// - /// 送群礼物(成功返回1 失败返回-1)Pro可用 - /// - [HttpPost("Api_GiveGift")] - public Task Api_GiveGift([FromBody] CleverQQApi_GiveGiftHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GiveGift), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.对象QQ), input.对象QQ}, -{nameof(input.pid), input.pid}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 送群礼物(成功返回1 失败返回-1)Pro可用 - /// - public class CleverQQApi_GiveGiftHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需送礼物群号 - /// - public string 群号 { get; set; } - /// - /// 赠予礼物对象 - /// - public string 对象QQ { get; set; } - /// - /// 礼物pid - /// - public string pid { get; set; } - } - /// - /// 查询对象或自身群聊等级(返回实际等级 失败返回-1)Pro可用 - /// - [HttpPost("Api_GetGroupChatLv")] - public Task Api_GetGroupChatLv([FromBody] CleverQQApi_GetGroupChatLvHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetGroupChatLv), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.群号), input.群号}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 查询对象或自身群聊等级(返回实际等级 失败返回-1)Pro可用 - /// - public class CleverQQApi_GetGroupChatLvHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 查询群号 - /// - public string 群号 { get; set; } - /// - /// 需查询对象或机器人QQ - /// - public string 对象QQ { get; set; } - } - /// - /// 查询对象或自身QQ达人天数(返回实际天数 失败返回-1)Pro可用 - /// - [HttpPost("Api_GetExpertDays")] - public Task Api_GetExpertDays([FromBody] CleverQQApi_GetExpertDaysHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetExpertDays), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.对象QQ), input.对象QQ}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 查询对象或自身QQ达人天数(返回实际天数 失败返回-1)Pro可用 - /// - public class CleverQQApi_GetExpertDaysHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 需查询对象或机器人QQ - /// - public string 对象QQ { get; set; } - } - /// - /// 获取机器人QQ是否被屏蔽消息发送状态(真屏蔽 假未屏蔽) - /// - [HttpPost("Api_GetShieldedState")] - public Task Api_GetShieldedState([FromBody] CleverQQApi_GetShieldedStateHttpInput input) - { - var httpInput = new HttpInput - { - TypeCode = nameof(Api_GetShieldedState), - MahuaPlatform = MahuaPlatform.CleverQQ, - Data = new ReadOnlyDictionary(new Dictionary -{ -{nameof(input.响应QQ), input.响应QQ}, -{nameof(input.消息类型), input.消息类型}, -} - ) - } - ; - return _mahuaCenter.HandleMahuaInput(httpInput); - } - /// - /// 获取机器人QQ是否被屏蔽消息发送状态(真屏蔽 假未屏蔽) - /// - public class CleverQQApi_GetShieldedStateHttpInput - { - /// - /// 机器人QQ - /// - public string 响应QQ { get; set; } - /// - /// 0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话 - /// - public int 消息类型 { get; set; } - } - } -} diff --git a/src/Newbe.Mahua.Plugin.Agent/Nuspec/Newbe.Mahua.CleverQQ.Asset.nuspec b/src/Newbe.Mahua.Plugin.Agent/Nuspec/Newbe.Mahua.CleverQQ.Asset.nuspec deleted file mode 100644 index 96d856d..0000000 --- a/src/Newbe.Mahua.Plugin.Agent/Nuspec/Newbe.Mahua.CleverQQ.Asset.nuspec +++ /dev/null @@ -1,21 +0,0 @@ - - - - Newbe.Mahua.CleverQQ.Asset - $version$ - Newbe - Newbe - false - https://raw.githubusercontent.com/Newbe36524/Newbe.Mahua.Framework/master/LICENSE - http://www.newbe.pro/ - https://raw.githubusercontent.com/Newbe36524/Newbe.Mahua.Framework/master/logo.png - Newbe.Mahua 针对CleverQQ平台推出的平台支持包。【此包不能直接引用到项目中,若要使用该包,请参考: http://www.newbe.pro】 - CleverQQ是基于pc协议开发的一款多功能且扩展性强的机器人框架,我们提供了稳定的运行框架、简便的插件模板和专业的维护团队,力求给所有的正常用户更好的体验。 - 同时,为建造一个良好的使用环境,我们同样加入了不断完善的检测机制(人工、机器),对于黄、赌等各种非法用途一律采取不接受、不姑息的政策,也希望各位用户能够互相监督、自检自律。 - https://d.cleverqq.cn/forum.php - - 2.0 - Newbe Mahua IRQQ CleverQQ - - - \ No newline at end of file diff --git a/src/Newbe.Mahua.Plugin.Agent/build.ps1 b/src/Newbe.Mahua.Plugin.Agent/build.ps1 index e457ca4..b5a4eeb 100644 --- a/src/Newbe.Mahua.Plugin.Agent/build.ps1 +++ b/src/Newbe.Mahua.Plugin.Agent/build.ps1 @@ -7,14 +7,13 @@ properties { $currentBuild = "$releaseBase\$configuration\$fwVersion" $pluginName = (Get-ChildItem *.csproj).Name.Replace(".csproj", "") $nugetexe = "$rootNow\buildTools\nuget.exe" - $version = "2.2" + $version = "2.3" } $platforms = @( "Newbe.Mahua.CQP", "Newbe.Mahua.MPQ", -"Newbe.Mahua.QQLight", -"Newbe.Mahua.CleverQQ" +"Newbe.Mahua.QQLight" ) Task Default -depends Pack @@ -96,23 +95,7 @@ Task PackMPQ -depends Clean -Description "MPQ打包" { } } -Task PackCleverQQ -depends Clean -Description "CleverQQ打包" { - Exec { - New-Item -ItemType Directory "$releaseBase\CleverQQ" - New-Item -ItemType Directory "$releaseBase\CleverQQ\$pluginName" - New-Item -ItemType Directory "$releaseBase\CleverQQ\Plugin" - # 复制平台对应实现 - Copy-Item "../Newbe.Mahua.CleverQQ/bin/$configuration/$fwVersion/*" "$releaseBase/CleverQQ" -Recurse - # 插件运行时 - Copy-Item -Path "$currentBuild\*", "../Newbe.Mahua.CleverQQ/bin/$configuration/$fwVersion/*" -Destination "$releaseBase\CleverQQ\$pluginName" -Recurse - # 机器人平台入口文件 - Copy-Item -Path "../Newbe.Mahua.CleverQQ.Native/bin/$configuration/x86/Newbe.Mahua.CleverQQ.Native.dll" -Destination "$releaseBase\CleverQQ\Plugin\$pluginName.IR.dll" - # 复制配置文件 - Copy-Item -Path "Configs/*" "$releaseBase/CleverQQ" -Recurse - } -} - -Task Pack -depends PackCQP, PackMPQ, PackCleverQQ, PackQQLight -Description "打包" { +Task Pack -depends PackCQP, PackMPQ, PackQQLight -Description "打包" { Write-Output "构建完毕,当前时间为 $( Get-Date )" } diff --git a/src/Newbe.Mahua.Plugin.Agent/packages.config b/src/Newbe.Mahua.Plugin.Agent/packages.config deleted file mode 100644 index de37651..0000000 --- a/src/Newbe.Mahua.Plugin.Agent/packages.config +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/Newbe.Mahua.sln b/src/Newbe.Mahua.sln index 4f9603b..c168049 100644 --- a/src/Newbe.Mahua.sln +++ b/src/Newbe.Mahua.sln @@ -36,16 +36,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "0)Solution Items", "0)Solut EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Newbe.Mahua.MPQ.Native", "Newbe.Mahua.MPQ.Native\Newbe.Mahua.MPQ.Native.csproj", "{8E94685A-C2F5-4131-8D82-A7A74E42B559}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "1.4)CleverQQ", "1.4)CleverQQ", "{29538C19-8F8A-4493-B4AC-219942B77D92}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "1.2)QQLight", "1.2)QQLight", "{CF053B95-7235-45DB-A4FD-7C0C45B35348}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Newbe.Mahua.CleverQQ", "Newbe.Mahua.CleverQQ\Newbe.Mahua.CleverQQ.csproj", "{BEDD1F32-12FF-48AC-80DF-84CBB1B61835}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Newbe.Mahua.QQLight", "Newbe.Mahua.QQLight\Newbe.Mahua.QQLight.csproj", "{F5FFD098-5BE9-4CF0-9C96-9E56A9F28599}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Newbe.Mahua.CleverQQ.Native", "Newbe.Mahua.CleverQQ.Native\Newbe.Mahua.CleverQQ.Native.csproj", "{7BC544C3-166E-407C-893C-09933B98896D}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Newbe.Mahua.QQLight.Native", "Newbe.Mahua.QQLight.Native\Newbe.Mahua.QQLight.Native.csproj", "{F704EBE2-76FF-496E-96BC-B45B7D766BF0}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Newbe.Mahua.Plugin.Agent", "Newbe.Mahua.Plugin.Agent\Newbe.Mahua.Plugin.Agent.csproj", "{EF605DA0-2D59-4632-BCB8-531207DCDE14}" @@ -106,18 +100,10 @@ Global {8E94685A-C2F5-4131-8D82-A7A74E42B559}.Debug|Any CPU.Build.0 = Debug|Any CPU {8E94685A-C2F5-4131-8D82-A7A74E42B559}.Release|Any CPU.ActiveCfg = Release|Any CPU {8E94685A-C2F5-4131-8D82-A7A74E42B559}.Release|Any CPU.Build.0 = Release|Any CPU - {BEDD1F32-12FF-48AC-80DF-84CBB1B61835}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BEDD1F32-12FF-48AC-80DF-84CBB1B61835}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BEDD1F32-12FF-48AC-80DF-84CBB1B61835}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BEDD1F32-12FF-48AC-80DF-84CBB1B61835}.Release|Any CPU.Build.0 = Release|Any CPU {F5FFD098-5BE9-4CF0-9C96-9E56A9F28599}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F5FFD098-5BE9-4CF0-9C96-9E56A9F28599}.Debug|Any CPU.Build.0 = Debug|Any CPU {F5FFD098-5BE9-4CF0-9C96-9E56A9F28599}.Release|Any CPU.ActiveCfg = Release|Any CPU {F5FFD098-5BE9-4CF0-9C96-9E56A9F28599}.Release|Any CPU.Build.0 = Release|Any CPU - {7BC544C3-166E-407C-893C-09933B98896D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7BC544C3-166E-407C-893C-09933B98896D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7BC544C3-166E-407C-893C-09933B98896D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7BC544C3-166E-407C-893C-09933B98896D}.Release|Any CPU.Build.0 = Release|Any CPU {F704EBE2-76FF-496E-96BC-B45B7D766BF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F704EBE2-76FF-496E-96BC-B45B7D766BF0}.Debug|Any CPU.Build.0 = Debug|Any CPU {F704EBE2-76FF-496E-96BC-B45B7D766BF0}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -166,11 +152,8 @@ Global {DABD0D69-8757-4EDE-989D-5F65FF10D1FC} = {E8D7F78E-E7B5-41DB-B141-4CB5AE0FEACD} {563EB946-C844-46F4-B61F-3F192244DA83} = {A1D81992-C02F-413A-A208-28B89B0DF306} {8E94685A-C2F5-4131-8D82-A7A74E42B559} = {DABD0D69-8757-4EDE-989D-5F65FF10D1FC} - {29538C19-8F8A-4493-B4AC-219942B77D92} = {E8D7F78E-E7B5-41DB-B141-4CB5AE0FEACD} {CF053B95-7235-45DB-A4FD-7C0C45B35348} = {E8D7F78E-E7B5-41DB-B141-4CB5AE0FEACD} - {BEDD1F32-12FF-48AC-80DF-84CBB1B61835} = {29538C19-8F8A-4493-B4AC-219942B77D92} {F5FFD098-5BE9-4CF0-9C96-9E56A9F28599} = {CF053B95-7235-45DB-A4FD-7C0C45B35348} - {7BC544C3-166E-407C-893C-09933B98896D} = {29538C19-8F8A-4493-B4AC-219942B77D92} {F704EBE2-76FF-496E-96BC-B45B7D766BF0} = {CF053B95-7235-45DB-A4FD-7C0C45B35348} {EF605DA0-2D59-4632-BCB8-531207DCDE14} = {D6A2AC89-2895-4D73-88EA-20315EFC83B7} {BB486C62-98FF-4B6A-9195-127ED2B939CD} = {A1D81992-C02F-413A-A208-28B89B0DF306} diff --git a/src/Newbe.Mahua/Internals/MahuaPlatformValueProvider.cs b/src/Newbe.Mahua/Internals/MahuaPlatformValueProvider.cs index 18c47f1..4389f7b 100644 --- a/src/Newbe.Mahua/Internals/MahuaPlatformValueProvider.cs +++ b/src/Newbe.Mahua/Internals/MahuaPlatformValueProvider.cs @@ -16,9 +16,7 @@ internal static class MahuaPlatformValueProvider { new CqpPlatformResolver(), new MpqPlatformResolver(), - new AmandaPlatformResolver(), new QqLightPlatformResolver(), - new CleverQqPlatformResolver() } .FirstOrDefault(x => x.IsThis())?.MahuaPlatform; if (mahuaPlatform == null) @@ -55,29 +53,6 @@ public bool IsThis() } } - private class AmandaPlatformResolver : IPlatformResolver - { - public MahuaPlatform MahuaPlatform { get; } = MahuaPlatform.Amanda; - - public bool IsThis() - { - var currentDir = GetCurrentDir(); - return File.Exists(Path.Combine(currentDir, "Amanda.exe")); - } - } - - private class CleverQqPlatformResolver : IPlatformResolver - { - public MahuaPlatform MahuaPlatform { get; } = MahuaPlatform.CleverQQ; - - public bool IsThis() - { - var currentDir = GetCurrentDir(); - return File.Exists(Path.Combine(currentDir, "CleverQQ Pro.exe")) || - File.Exists(Path.Combine(currentDir, "CleverQQ Air.exe")); - } - } - private class QqLightPlatformResolver : IPlatformResolver { public MahuaPlatform MahuaPlatform { get; } = MahuaPlatform.QQLight; diff --git a/src/Newbe.Mahua/MahuaPlatform.cs b/src/Newbe.Mahua/MahuaPlatform.cs index 4289c64..1a98fc1 100644 --- a/src/Newbe.Mahua/MahuaPlatform.cs +++ b/src/Newbe.Mahua/MahuaPlatform.cs @@ -1,4 +1,6 @@ -namespace Newbe.Mahua +using System; + +namespace Newbe.Mahua { /// /// 机器人平台 @@ -18,11 +20,13 @@ public enum MahuaPlatform /// /// Amanda /// + [Obsolete("已经不再支持该平台")] Amanda, /// /// CleverQQ /// + [Obsolete("已经不再支持该平台")] CleverQQ, /// diff --git a/src/Newbe.Mahua/NativeApi/ICleverQQApi.cs b/src/Newbe.Mahua/NativeApi/ICleverQQApi.cs deleted file mode 100644 index 5bbc0ee..0000000 --- a/src/Newbe.Mahua/NativeApi/ICleverQQApi.cs +++ /dev/null @@ -1,1056 +0,0 @@ -using System.ComponentModel; - -namespace Newbe.Mahua.NativeApi -{ - // generate at 2019/1/22 13:43:08 +00:00 - public interface ICleverQQApi - { - /// - /// 发送普通文本消息 - /// - /// 机器人QQ - /// 0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版) - /// 发送群信息、讨论组、群或讨论组临时会话信息时填写,如发送对象为好友或信息类型是0时可空 - /// 收信对象QQ - /// 信息内容 - /// -1为随机气泡 - /// - [Description("发送普通文本消息")] - void Api_SendMsg([Description("机器人QQ")] string 响应QQ, - [Description("0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版)")] - int 信息类型, [Description("发送群信息、讨论组、群或讨论组临时会话信息时填写,如发送对象为好友或信息类型是0时可空")] - string 收信对象群_讨论组, [Description("收信对象QQ")] string 收信QQ, [Description("信息内容")] string 内容, - [Description("-1为随机气泡")] int 气泡ID); - - /// - /// 发送XML消息 - /// - /// 机器人QQ - /// 1普通 2匿名(匿名需要群开启) - /// 0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版) - /// 发送群信息、讨论组、群或讨论组临时会话信息时填写,如发送对象为好友或信息类型是0时可空 - /// 收信对象QQ - /// XML代码 - /// 0 基本 2 点歌 - /// - [Description("发送XML消息")] - void Api_SendXML([Description("机器人QQ")] string 响应QQ, [Description("1普通 2匿名(匿名需要群开启)")] int 发送方式, - [Description("0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版)")] - int 信息类型, [Description("发送群信息、讨论组、群或讨论组临时会话信息时填写,如发送对象为好友或信息类型是0时可空")] - string 收信对象所属群_讨论组, [Description("收信对象QQ")] string 收信对象QQ, [Description("XML代码")] string ObjectMsg, - [Description("0 基本 2 点歌")] int 结构子类型); - - /// - /// 发送JSON结构消息 - /// - /// 机器人QQ - /// 1普通 2匿名(匿名需要群开启) - /// 0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版) - /// 发送群信息、讨论组、群或讨论组临时会话信息时填,如发送对象为好友或信息类型是0时可空 - /// 收信对象QQ - /// Json结构内容 - /// - [Description("发送JSON结构消息")] - void Api_SendJSON([Description("机器人QQ")] string 响应QQ, [Description("1普通 2匿名(匿名需要群开启)")] int 发送方式, - [Description("0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话(0、7只支持Pro版)")] - int 信息类型, [Description("发送群信息、讨论组、群或讨论组临时会话信息时填,如发送对象为好友或信息类型是0时可空")] - string 收信对象所属群_讨论组, [Description("收信对象QQ")] string 收信对象QQ, [Description("Json结构内容")] string Json结构); - - /// - /// 调用一次点一下,成功返回空,失败返回理由如:每天最多给他点十个赞哦,调用此Api时应注意频率,每人每日可被赞10次,每日每Q最多可赞50人 - /// - /// 机器人QQ - /// 填写被赞人QQ - /// - [Description("调用一次点一下,成功返回空,失败返回理由如:每天最多给他点十个赞哦,调用此Api时应注意频率,每人每日可被赞10次,每日每Q最多可赞50人")] - string Api_UpVote([Description("机器人QQ")] string 响应QQ, [Description("填写被赞人QQ")] string 被赞QQ); - - /// - /// 取得机器人网页操作用的Cookies - /// - /// 机器人QQ - /// - [Description("取得机器人网页操作用的Cookies")] - string Api_GetCookies([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得腾讯微博页面操作用参数P_skey - /// - /// 机器人QQ - /// - [Description("取得腾讯微博页面操作用参数P_skey")] - string Api_GetBlogPsKey([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得QQ空间页面操作用参数P_skey - /// - /// 机器人QQ - /// - [Description("取得QQ空间页面操作用参数P_skey")] - string Api_GetZonePsKey([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得QQ群页面操作用参数P_skey - /// - /// 机器人QQ - /// - [Description("取得QQ群页面操作用参数P_skey")] - string Api_GetGroupPsKey([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得腾讯课堂页面操作用参数P_skey - /// - /// 机器人QQ - /// - [Description("取得腾讯课堂页面操作用参数P_skey")] - string Api_GetClassRoomPsKey([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得机器人网页操作用参数Bkn或G_tk - /// - /// 机器人QQ - /// - [Description("取得机器人网页操作用参数Bkn或G_tk")] - string Api_GetBkn([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得机器人网页操作用参数长Bkn或长G_tk - /// - /// 机器人QQ - /// - [Description("取得机器人网页操作用参数长Bkn或长G_tk")] - string Api_GetBkn32([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得机器人网页操作用参数长Ldw - /// - /// 机器人QQ - /// - [Description("取得机器人网页操作用参数长Ldw")] - string Api_GetLongLdw([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得机器人网页操作用的Clientkey - /// - /// 机器人QQ - /// - [Description("取得机器人网页操作用的Clientkey")] - string Api_GetClientkey([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得机器人网页操作用的长Clientkey - /// - /// 机器人QQ - /// - [Description("取得机器人网页操作用的长Clientkey")] - string Api_GetLongClientkey([Description("机器人QQ")] string 响应QQ); - - /// - /// 管理员邀请对象入群,频率过快会失败 - /// - /// 机器人QQ - /// 被邀请人QQ号码(多个号码使用 #换行符 分割) - /// 被邀请加入的群号 - /// - [Description("管理员邀请对象入群,频率过快会失败")] - void Api_AdminInviteGroup([Description("机器人QQ")] string 响应QQ, [Description("被邀请人QQ号码(多个号码使用 #换行符 分割)")] - string 对象QQ, [Description("被邀请加入的群号")] string 群号); - - /// - /// 非管理员邀请对象入群,频率过快会失败 - /// - /// 机器人QQ - /// 被邀请人QQ号码(多个号码使用 #换行符 分割) - /// 被邀请加入的群号 - /// - [Description("非管理员邀请对象入群,频率过快会失败")] - void Api_NoAdminInviteGroup([Description("机器人QQ")] string 响应QQ, [Description("被邀请人QQ号码(多个号码使用 #换行符 分割)")] - string 对象QQ, [Description("被邀请加入的群号")] string 群号); - - /// - /// 取对象昵称 - /// - /// 机器人QQ - /// 欲取得的QQ的号码 - /// - [Description("取对象昵称")] - string Api_GetNick([Description("机器人QQ")] string 响应QQ, [Description("欲取得的QQ的号码")] string 对象QQ); - - /// - /// 取对象群名片 - /// - /// 机器人QQ - /// 群号 - /// 欲取得群名片的QQ号码 - /// - [Description("取对象群名片")] - string Api_GetGroupCard([Description("机器人QQ")] string 响应QQ, [Description("群号")] string 群号, - [Description("欲取得群名片的QQ号码")] string 对象QQ); - - /// - /// 取对象QQ等级 成功返回等级 失败返回-1 - /// - /// 机器人QQ - /// 欲取得的QQ的号码 - /// - [Description("取对象QQ等级 成功返回等级 失败返回-1")] - int Api_GetObjLevel([Description("机器人QQ")] string 响应QQ, [Description("欲取得的QQ的号码")] string 对象QQ); - - /// - /// 取得好友列表,返回获取到的原始JSON格式信息,需自行解析 - /// - /// 机器人QQ - /// - [Description("取得好友列表,返回获取到的原始JSON格式信息,需自行解析")] - string Api_GetFriendList([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得好友列表,返回内容#换行符分割 - /// - /// 机器人QQ - /// - [Description("取得好友列表,返回内容#换行符分割")] - string Api_GetFriendList_B([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得企点QQ外部联系人好友列表 成功返回Json列表 失败或无返回空 - /// - /// 机器人QQ - /// - [Description("取得企点QQ外部联系人好友列表 成功返回Json列表 失败或无返回空")] - string Api_GetQidianQQFriendsList([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得群管理,返回获取到的原始JSON格式信息,需自行解析 - /// - /// 机器人QQ - /// 欲取管理员列表群号 - /// - [Description("取得群管理,返回获取到的原始JSON格式信息,需自行解析")] - string Api_GetGroupAdmin([Description("机器人QQ")] string 响应QQ, [Description("欲取管理员列表群号")] string 群号); - - /// - /// 取得群列表,#换行符分割 不受最高获取500群限制(如需获取群名称请对应调用 Api_GetGroupName 理论群名获取不会频繁) - /// - /// 机器人QQ - /// - [Description("取得群列表,#换行符分割 不受最高获取500群限制(如需获取群名称请对应调用 Api_GetGroupName 理论群名获取不会频繁)")] - string Api_GetGroupList_A([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得群列表,返回获取到的原始JSON格式信息,需自行解析 - /// - /// 机器人QQ - /// - [Description("取得群列表,返回获取到的原始JSON格式信息,需自行解析")] - string Api_GetGroupList([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得群列表,返回获取到的原始JSON格式信息,需自行解析 - /// - /// 机器人QQ - /// - [Description("取得群列表,返回获取到的原始JSON格式信息,需自行解析")] - string Api_GetGroupList_B([Description("机器人QQ")] string 响应QQ); - - /// - /// 取得群成员列表,返回获取到的原始JSON格式信息,需自行解析(有群员昵称) - /// - /// 机器人QQ - /// 欲取群成员列表群号 - /// - [Description("取得群成员列表,返回获取到的原始JSON格式信息,需自行解析(有群员昵称)")] - string Api_GetGroupMemberList([Description("机器人QQ")] string 响应QQ, [Description("欲取群成员列表群号")] string 群号); - - /// - /// 取得群成员列表,返回QQ号和身份Json格式信息 失败返回空(无群员昵称) - /// - /// 机器人QQ - /// 欲取群成员列表群号 - /// - [Description("取得群成员列表,返回QQ号和身份Json格式信息 失败返回空(无群员昵称)")] - string Api_GetGroupMemberList_B([Description("机器人QQ")] string 响应QQ, [Description("欲取群成员列表群号")] string 群号); - - /// - /// 取得群成员列表,返回获取到的原始JSON格式信息,需自行解析(有群员昵称) - /// - /// 机器人QQ - /// 欲取群成员列表群号 - /// - [Description("取得群成员列表,返回获取到的原始JSON格式信息,需自行解析(有群员昵称)")] - string Api_GetGroupMemberList_C([Description("机器人QQ")] string 响应QQ, [Description("欲取群成员列表群号")] string 群号); - - /// - /// 查询对象或自己是否被禁言 禁言返回真 失败或未禁言返回假 - /// - /// 机器人QQ - /// 欲查询的群号 - /// 需要查询的对象QQ - /// - [Description("查询对象或自己是否被禁言 禁言返回真 失败或未禁言返回假")] - bool Api_IsShutUp([Description("机器人QQ")] string 响应QQ, [Description("欲查询的群号")] string 群号, - [Description("需要查询的对象QQ")] string 对象QQ); - - /// - /// 群内禁言某人 - /// - /// 机器人QQ - /// 欲操作的群号 - /// 欲禁言的对象,如留空且机器人QQ为管理员,将设置该群为全群禁言 - /// 0为解除禁言 (禁言单位为秒),如为全群禁言,参数为非0,解除全群禁言为0 - /// - [Description("群内禁言某人")] - void Api_ShutUP([Description("机器人QQ")] string 响应QQ, [Description("欲操作的群号")] string 群号, - [Description("欲禁言的对象,如留空且机器人QQ为管理员,将设置该群为全群禁言")] - string 对象QQ, [Description("0为解除禁言 (禁言单位为秒),如为全群禁言,参数为非0,解除全群禁言为0")] - int 时间); - - /// - /// 申请加群 - /// - /// 机器人QQ - /// 欲申请加入的群号 - /// 附加理由,可留空(需回答正确问题时,请填写问题答案) - /// - [Description("申请加群")] - void Api_JoinGroup([Description("机器人QQ")] string 响应QQ, [Description("欲申请加入的群号")] string 群号, - [Description("附加理由,可留空(需回答正确问题时,请填写问题答案)")] - string 理由); - - /// - /// 退群 - /// - /// 机器人QQ - /// 欲退出的群号 - /// - [Description("退群")] - void Api_QuitGroup([Description("机器人QQ")] string 响应QQ, [Description("欲退出的群号")] string 群号); - - /// - /// 上传图片(通过读入字节集方式),可使用网页链接或本地读入,成功返回该图片GUID,失败返回空 - /// - /// 机器人QQ - /// 1好友、临时会话 2群、讨论组 Ps:好友临时会话用类型 1,群讨论组用类型 2;当填写错误时,图片GUID发送不会成功 - /// 上传该图片所属的群号或QQ - /// 图片字节集数据 - /// - [Description("上传图片(通过读入字节集方式),可使用网页链接或本地读入,成功返回该图片GUID,失败返回空")] - string Api_UpLoadPic([Description("机器人QQ")] string 响应QQ, - [Description("1好友、临时会话 2群、讨论组 Ps:好友临时会话用类型 1,群讨论组用类型 2;当填写错误时,图片GUID发送不会成功")] - int 上传类型, [Description("上传该图片所属的群号或QQ")] string 参考对象, [Description("图片字节集数据")] byte[] 图片数据); - - /// - /// 根据图片GUID取得图片下载连接 - /// - /// 机器人QQ - /// 1 群 讨论组 2临时会话和好友 - /// 图片所属对应的群号和好友QQ(可随意乱填写) - /// 例如[IR:pic={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.jpg] - /// - [Description("根据图片GUID取得图片下载连接")] - string Api_GetPicLink([Description("机器人QQ")] string 响应QQ, [Description("1 群 讨论组 2临时会话和好友")] int 图片类型, - [Description("图片所属对应的群号和好友QQ(可随意乱填写)")] - string 参考对象, [Description("例如[IR:pic={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.jpg]")] - string 图片GUID); - - /// - /// 向CleverQQ日志窗口发送一条本插件的日志,可用于调试输出需要的内容,或定位插件错误与运行状态 - /// - /// 任意想输出的文本格式信息 - /// - [Description("向CleverQQ日志窗口发送一条本插件的日志,可用于调试输出需要的内容,或定位插件错误与运行状态")] - void Api_OutPutLog([Description("任意想输出的文本格式信息")] string 内容); - - /// - /// 腾讯Tea加密 - /// - /// 需加密的内容 - /// 这里填Api_SessionKey - /// - [Description("腾讯Tea加密")] - string Api_Tea加密([Description("需加密的内容")] string 需加密内容, [Description("这里填Api_SessionKey")] string 会话KEY); - - /// - /// 腾讯Tea解密 - /// - /// 需解密的内容 - /// 这里填Api_SessionKey - /// - [Description("腾讯Tea解密")] - string Api_Tea解密([Description("需解密的内容")] string 需解密内容, [Description("这里填Api_SessionKey")] string 会话KEY); - - /// - /// 获取会话SessionKey密钥 - /// - /// 欲获取的QQ - /// - [Description("获取会话SessionKey密钥")] - string Api_SessionKey([Description("欲获取的QQ")] string 响应QQ); - - /// - /// 群号转群ID - /// - /// - /// - [Description("群号转群ID")] - string Api_GNTransGID([Description("")] string 群号); - - /// - /// 群ID转群号 - /// - /// - /// - [Description("群ID转群号")] - string Api_GIDTransGN([Description("")] string 群ID); - - /// - /// 发布群公告(成功返回真,失败返回假),调用此API应保证响应QQ为管理员 - /// - /// 机器人QQ - /// 欲发布公告的群号 - /// 公告标题 - /// 公告内容 - /// - [Description("发布群公告(成功返回真,失败返回假),调用此API应保证响应QQ为管理员")] - bool Api_PBGroupNotic([Description("机器人QQ")] string 响应QQ, [Description("欲发布公告的群号")] string 群号, - [Description("公告标题")] string 标题, [Description("公告内容")] string 内容); - - /// - /// 取群公告,返回该群最新公告 - /// - /// 机器人QQ - /// 欲取得公告的群号 - /// - [Description("取群公告,返回该群最新公告")] - string Api_GetNotice([Description("机器人QQ")] string 响应QQ, [Description("欲取得公告的群号")] string 群号); - - /// - /// 向好友发起窗口抖动,调用此Api腾讯会限制频率 - /// - /// 机器人QQ - /// 接收抖动消息的QQ - /// - [Description("向好友发起窗口抖动,调用此Api腾讯会限制频率")] - bool Api_ShakeWindow([Description("机器人QQ")] string 响应QQ, [Description("接收抖动消息的QQ")] string 接收QQ); - - /// - /// 某人申请入群 添加好友 被邀请入群 请求处理 - /// - /// 机器人QQ - /// 213请求入群 214我被邀请加入某群 215某人被邀请加入群 101某人请求添加好友 - /// 申请入群 被邀请人 请求添加好友人的QQ (当请求类型为214时这里为邀请人QQ) - /// 收到请求群号(好友添加时这里请为空) - /// 10同意 20拒绝 30忽略 - /// 拒绝入群,拒绝添加好友 附加信息 - /// - [Description("某人申请入群 添加好友 被邀请入群 请求处理")] - void Api_HandleEvent([Description("机器人QQ")] string 响应QQ, - [Description("213请求入群 214我被邀请加入某群 215某人被邀请加入群 101某人请求添加好友")] - int 请求类型, [Description("申请入群 被邀请人 请求添加好友人的QQ (当请求类型为214时这里为邀请人QQ)")] - string 对象QQ, [Description("收到请求群号(好友添加时这里请为空)")] string 群号, [Description("10同意 20拒绝 30忽略")] int 处理方式, - [Description("拒绝入群,拒绝添加好友 附加信息")] string 附加信息); - - /// - /// 处理群验证事件 第二模式(新手建议使用Api_HandleEvent) Pro可用 - /// - /// 机器人QQ - /// 213请求入群 214我被邀请加入某群 215某人被邀请加入群 101某人请求添加好友 - /// 申请入群 被邀请人 请求添加好友人的QQ (当请求类型为214时这里为邀请人QQ) - /// 收到请求群号(好友添加时这里请为空) - /// 需要处理事件的seq (好友事件留空) - /// 10同意 20拒绝 30忽略 - /// 拒绝入群,拒绝添加好友 附加信息 - /// - [Description("处理群验证事件 第二模式(新手建议使用Api_HandleEvent) Pro可用")] - void Api_HandleGroupEvent([Description("机器人QQ")] string 响应QQ, - [Description("213请求入群 214我被邀请加入某群 215某人被邀请加入群 101某人请求添加好友")] - int 请求类型, [Description("申请入群 被邀请人 请求添加好友人的QQ (当请求类型为214时这里为邀请人QQ)")] - string 对象QQ, [Description("收到请求群号(好友添加时这里请为空)")] string 群号, [Description("需要处理事件的seq (好友事件留空)")] string seq, - [Description("10同意 20拒绝 30忽略")] int 处理方式, [Description("拒绝入群,拒绝添加好友 附加信息")] string 附加信息); - - /// - /// 开关群匿名消息发送功能 成功返回真 失败返回假 - /// - /// 机器人QQ - /// 需开关群匿名功能群号 - /// 真开 假关 - /// - [Description("开关群匿名消息发送功能 成功返回真 失败返回假")] - bool Api_SetAnon([Description("机器人QQ")] string 响应QQ, [Description("需开关群匿名功能群号")] string 群号, - [Description("真开 假关")] bool 开关); - - /// - /// 修改对象群名片 成功返回真 失败返回假 - /// - /// 机器人QQ - /// 对象所处群号 - /// 被修改名片人QQ - /// 需要修改的名片 - /// - [Description("修改对象群名片 成功返回真 失败返回假")] - bool Api_SetGroupCard([Description("机器人QQ")] string 响应QQ, [Description("对象所处群号")] string 群号, - [Description("被修改名片人QQ")] string 对象QQ, [Description("需要修改的名片")] string 名片); - - /// - /// 退出讨论组 - /// - /// 机器人QQ - /// 需退出的讨论组ID - /// - [Description("退出讨论组")] - void Api_QuitDisGroup([Description("机器人QQ")] string 响应QQ, [Description("需退出的讨论组ID")] string 讨论组ID); - - /// - /// 创建一个讨论组 成功返回讨论组ID 失败返回空 - /// - /// 机器人 - /// 建立的讨论组名称 - /// - [Description("创建一个讨论组 成功返回讨论组ID 失败返回空")] - string Api_CreateDisGroup([Description("机器人")] string 响应QQ, [Description("建立的讨论组名称")] string 讨论组名称); - - /// - /// 将对象移除讨论组 成功返回空 失败返回理由 - /// - /// 机器人QQ - /// 需执行的讨论组ID - /// 被执行对象 - /// - [Description("将对象移除讨论组 成功返回空 失败返回理由")] - string Api_KickDisGroupMBR([Description("机器人QQ")] string 响应QQ, [Description("需执行的讨论组ID")] string 讨论组ID, - [Description("被执行对象")] string 对象QQ); - - /// - /// 邀请对象加入讨论组 成功返回空 失败返回理由 - /// - /// 机器人QQ - /// 需执行的讨论组ID - /// 被邀请对象QQ 多个用 #换行符 分割 - /// - [Description("邀请对象加入讨论组 成功返回空 失败返回理由")] - string Api_InviteDisGroup([Description("机器人QQ")] string 响应QQ, [Description("需执行的讨论组ID")] string 讨论组ID, - [Description("被邀请对象QQ 多个用 #换行符 分割")] string 邀请对象QQ); - - /// - /// 取出讨论组列表 (返回格式为 换行符分割开的) - /// - /// 机器人QQ - /// - [Description("取出讨论组列表 (返回格式为 换行符分割开的)")] - string Api_GetDisGroupList([Description("机器人QQ")] string 响应QQ); - - /// - /// 取出讨论组成员列表 (返回格式为 换行符分割开的) - /// - /// 机器人QQ - /// 需获取的讨论组ID - /// - [Description("取出讨论组成员列表 (返回格式为 换行符分割开的)")] - string Api_GetDisGroupMemberList([Description("机器人QQ")] string 响应QQ, [Description("需获取的讨论组ID")] string 讨论组ID); - - /// - /// 修改讨论组名称 - /// - /// 机器人QQ - /// 需执行的讨论组ID - /// 需修改的名称 - /// - [Description("修改讨论组名称")] - void Api_SetDisGroupName([Description("机器人QQ")] string 响应QQ, [Description("需执行的讨论组ID")] string 讨论组ID, - [Description("需修改的名称")] string 讨论组名称); - - /// - /// 将对象移除群 - /// - /// 机器人QQ - /// 被执行群号 - /// 被执行对象 - /// 真为不再接收,假为接收 - /// - [Description("将对象移除群")] - void Api_KickGroupMBR([Description("机器人QQ")] string 响应QQ, [Description("被执行群号")] string 群号, - [Description("被执行对象")] string 对象QQ, [Description("真为不再接收,假为接收")] bool 不再接收加群请求); - - /// - /// 获取对象当前赞数量 失败返回-1 成功返回赞数 (获取频繁会出现失败现象,请自行写判断处理失败问题) - /// - /// - /// - /// - [Description("获取对象当前赞数量 失败返回-1 成功返回赞数 (获取频繁会出现失败现象,请自行写判断处理失败问题)")] - long Api_GetObjVote([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 上传QQ语音,成功返回语音GUID 失败返回空 - /// - /// 机器人QQ - /// 2、QQ群 讨论组 - /// 需上传的群号 - /// 语音字节集数据(AMR Silk编码) - /// - [Description("上传QQ语音,成功返回语音GUID 失败返回空")] - string Api_UpLoadVoice([Description("机器人QQ")] string 响应QQ, [Description("2、QQ群 讨论组")] int 上传类型, - [Description("需上传的群号")] string 接收群号, [Description("语音字节集数据(AMR Silk编码)")] byte[] 语音数据); - - /// - /// 通过语音GUID获取下载连接 失败返回空 - /// - /// 机器人QQ - /// [IR:Voi={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx}.amr] - /// - [Description("通过语音GUID获取下载连接 失败返回空")] - string Api_GetVoiLink([Description("机器人QQ")] string 响应QQ, - [Description("[IR:Voi={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx}.amr]")] - string 语音GUID); - - /// - /// 获取当前框架内部时间戳 - /// - /// - [Description("获取当前框架内部时间戳")] - long Api_GetTimeStamp(); - - /// - /// 向腾讯发送原始封包(成功返回腾讯返回的包 失败返回空) - /// - /// - /// 封包内容 - /// - [Description("向腾讯发送原始封包(成功返回腾讯返回的包 失败返回空)")] - string Api_SendPack([Description("")] string 响应QQ, [Description("封包内容")] string 封包); - - /// - /// 获取对象资料 此方式为http,调用时应自行注意控制频率(成功返回JSON格式自行解析) - /// - /// - /// - /// - [Description("获取对象资料 此方式为http,调用时应自行注意控制频率(成功返回JSON格式自行解析)")] - string Api_GetObjInfo([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 取对象性别 1男 2女 未知或失败返回-1 - /// - /// - /// - /// - [Description("取对象性别 1男 2女 未知或失败返回-1")] - int Api_GetGender([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 取Q龄 成功返回Q龄 失败返回-1 - /// - /// - /// - /// - [Description("取Q龄 成功返回Q龄 失败返回-1")] - int Api_GetQQAge([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 取年龄 成功返回年龄 失败返回-1 - /// - /// - /// - /// - [Description("取年龄 成功返回年龄 失败返回-1")] - int Api_GetAge([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 取个人说明 - /// - /// - /// - /// - [Description("取个人说明")] - string Api_GetPerExp([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 取个人签名 - /// - /// - /// - /// - [Description("取个人签名")] - string Api_GetSign([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 取邮箱,获取对象QQ资料内邮箱栏为邮箱时返回 - /// - /// - /// - /// - [Description("取邮箱,获取对象QQ资料内邮箱栏为邮箱时返回")] - string Api_GetEmail([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 取QQ群名 - /// - /// - /// - /// - [Description("取QQ群名")] - string Api_GetGroupName([Description("")] string 响应QQ, [Description("")] string 群号); - - /// - /// 取框架版本号 - /// - /// - [Description("取框架版本号")] - string Api_GetVer(); - - /// - /// 取框架所有QQ号 换行符分割 - /// - /// - [Description("取框架所有QQ号 换行符分割")] - string Api_GetQQList(); - - /// - /// 取框架在线QQ号 换行符分割 - /// - /// - [Description("取框架在线QQ号 换行符分割")] - string Api_GetOnLineList(); - - /// - /// 取框架离线QQ号 (Pro版可用)换行符分割 - /// - /// - [Description("取框架离线QQ号 (Pro版可用)换行符分割")] - string Api_GetOffLineList(); - - /// - /// 向框架帐号列表增加一个登录QQ 成功失败均返回理由(Pro版可用) - /// - /// - /// - /// 真 为自动登录 - /// - [Description("向框架帐号列表增加一个登录QQ 成功失败均返回理由(Pro版可用)")] - string Api_AddQQ([Description("")] string 帐号, [Description("")] string 密码, [Description("真 为自动登录")] bool 自动登录); - - /// - /// 删除框架帐号列表内指定QQ,不可在执行登录过程中删除QQ否则有几率引起错误(Pro版可用) - /// - /// - /// - [Description("删除框架帐号列表内指定QQ,不可在执行登录过程中删除QQ否则有几率引起错误(Pro版可用)")] - string Api_DelQQ([Description("")] string QQ号); - - /// - /// 登录指定QQ,应确保QQ号码在列表中已存在 - /// - /// - /// - [Description("登录指定QQ,应确保QQ号码在列表中已存在")] - void Api_LoginQQ([Description("")] string 登录QQ); - - /// - /// 令指定QQ下线,应确保QQ号码已在列表中且在线 - /// - /// - /// - [Description("令指定QQ下线,应确保QQ号码已在列表中且在线")] - void Api_OffLineQQ([Description("")] string 响应QQ); - - /// - /// 是否QQ好友 好友返回真 非好友或获取失败返回假 - /// - /// - /// - /// - [Description("是否QQ好友 好友返回真 非好友或获取失败返回假")] - bool Api_IfFriend([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 修改机器人在线状态 昵称 个性签名 性别 - /// - /// - /// 1、我在线上 2、Q我吧 3、离开 4、忙碌 5、请勿打扰 6、隐身 7、修改昵称 8、修改个性签名 9、修改性别 - /// 类型为7和8时填写修改内容 类型9时“1”为男 “2”为女 其他填“” - /// - [Description("修改机器人在线状态 昵称 个性签名 性别")] - void Api_SetRInf([Description("")] string 响应QQ, - [Description("1、我在线上 2、Q我吧 3、离开 4、忙碌 5、请勿打扰 6、隐身 7、修改昵称 8、修改个性签名 9、修改性别")] - int 类型, [Description("类型为7和8时填写修改内容 类型9时“1”为男 “2”为女 其他填“”")] - string 修改内容); - - /// - /// 获取机器人状态信息,成功返回:昵称、帐号、在线状态、速度、收信、发信、在线时间,失败返回空 - /// - /// - /// - [Description("获取机器人状态信息,成功返回:昵称、帐号、在线状态、速度、收信、发信、在线时间,失败返回空")] - string Api_GetRInf([Description("")] string 响应QQ); - - /// - /// 删除好友 成功返回真 失败返回假 - /// - /// 机器人QQ - /// 被删除对象 - /// - [Description("删除好友 成功返回真 失败返回假")] - bool Api_DelFriend([Description("机器人QQ")] string 响应QQ, [Description("被删除对象")] string 对象QQ); - - /// - /// 将好友拉入黑名单 成功返回真 失败返回假 - /// - /// - /// - /// - [Description("将好友拉入黑名单 成功返回真 失败返回假")] - bool Api_AddBkList([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 解除好友黑名单 - /// - /// - /// - /// - [Description("解除好友黑名单")] - void Api_DelBkList([Description("")] string 响应QQ, [Description("")] string 对象QQ); - - /// - /// 屏蔽或接收某群消息 - /// - /// - /// - /// 真 为屏蔽接收 假为接收并提醒 - /// - [Description("屏蔽或接收某群消息")] - void Api_SetShieldedGroup([Description("")] string 响应QQ, [Description("")] string 群号, - [Description("真 为屏蔽接收 假为接收并提醒")] bool 类型); - - /// - /// 好友语音上传并发送 (成功返回真 失败返回假) - /// - /// 机器人QQ - /// 接收语音人QQ - /// 语音字节集数据(AMR Silk编码) - /// - [Description("好友语音上传并发送 (成功返回真 失败返回假)")] - bool Api_SendVoice([Description("机器人QQ")] string 响应QQ, [Description("接收语音人QQ")] string 接收QQ, - [Description("语音字节集数据(AMR Silk编码)")] byte[] 语音数据); - - /// - /// 设置或取消群管理员 成功返回空 失败返回理由 - /// - /// - /// - /// - /// 真 为设置管理 假为取消管理 - /// - [Description("设置或取消群管理员 成功返回空 失败返回理由")] - string Api_SetAdmin([Description("")] string 响应QQ, [Description("")] string 群号, [Description("")] string 对象QQ, - [Description("真 为设置管理 假为取消管理")] bool 操作方式); - - /// - /// QQ群作业发布 - /// - /// - /// - /// - /// - /// - /// - [Description("QQ群作业发布")] - void Api_PBHomeWork([Description("")] string 响应QQ, [Description("")] string 群号, [Description("")] string 作业名, - [Description("")] string 标题, [Description("")] string 内容); - - /// - /// 取框架日志 - /// - /// - [Description("取框架日志")] - string Api_GetLog(); - - /// - /// 取得插件自身启用状态,启用真 禁用假 - /// - /// - [Description("取得插件自身启用状态,启用真 禁用假")] - bool Api_IsEnable(); - - /// - /// 请求禁用插件自身 - /// - /// - [Description("请求禁用插件自身")] - void Api_DisabledPlugin(); - - /// - /// 消息撤回(成功返回空,失败返回腾讯给出的理由)(Pro版可用) - /// - /// 机器人QQ - /// 需撤回消息群号 - /// 需撤回消息序号 - /// 需撤回消息ID - /// - [Description("消息撤回(成功返回空,失败返回腾讯给出的理由)(Pro版可用)")] - string Api_WithdrawMsg([Description("机器人QQ")] string 响应QQ, [Description("需撤回消息群号")] string 群号, - [Description("需撤回消息序号")] string 消息序号, [Description("需撤回消息ID")] string 消息ID); - - /// - /// 置正在输入状态(发送消息后会打断状态) - /// - /// 机器人QQ - /// 置正在输入状态接收对象 - /// - [Description("置正在输入状态(发送消息后会打断状态)")] - void Api_BeInput([Description("机器人QQ")] string 响应QQ, [Description("置正在输入状态接收对象")] string 对象QQ); - - /// - /// 取对象好友添加验证方式 (00 允许任何人 01 需要身份验证 03 需回答正确问题 04 需回答问题 99 已经是好友) (Pro版可用) - /// - /// 机器人QQ - /// 需获取对象QQ - /// - [Description("取对象好友添加验证方式 (00 允许任何人 01 需要身份验证 03 需回答正确问题 04 需回答问题 99 已经是好友) (Pro版可用)")] - string Api_GetQQAddMode([Description("机器人QQ")] string 响应QQ, [Description("需获取对象QQ")] string 对象QQ); - - /// - /// 查询对象是否在线 - /// - /// 机器人QQ - /// 需获取对象QQ - /// - [Description("查询对象是否在线")] - bool Api_IsOnline([Description("机器人QQ")] string 响应QQ, [Description("需获取对象QQ")] string 对象QQ); - - /// - /// 查询对象在线状态 返回 1、在线 2、Q我 3、离开 4、忙碌 5、勿扰 6、隐身或离线(Pro可用) - /// - /// 机器人QQ - /// 需获取对象QQ - /// - [Description("查询对象在线状态 返回 1、在线 2、Q我 3、离开 4、忙碌 5、勿扰 6、隐身或离线(Pro可用)")] - int Api_GetOnlineState([Description("机器人QQ")] string 响应QQ, [Description("需获取对象QQ")] string 对象QQ); - - /// - /// 查询对象群当前人数和上限人数 - /// - /// 机器人QQ - /// 需查询的群号 - /// - [Description("查询对象群当前人数和上限人数")] - string Api_GetGroupMemberNum([Description("机器人QQ")] string 响应QQ, [Description("需查询的群号")] string 群号); - - /// - /// 查询对方是否允许在线状态临时会话消息(非讨论组和群临时)(Pro版可用) - /// - /// 机器人QQ - /// 需查询的对象QQ - /// - [Description("查询对方是否允许在线状态临时会话消息(非讨论组和群临时)(Pro版可用)")] - bool Api_GetWpa([Description("机器人QQ")] string 响应QQ, [Description("需查询的对象QQ")] string 对象QQ); - - /// - /// 查询对象群验证方式 1允许任何人 2需要验证消息 3不允许任何人加群 4需要正确回答问题 5需要回答问题并由管理员审核 6付费群 -1群号不存在(获取失败返回空)Pro版可用 - /// - /// 机器人QQ - /// 需查询的群号 - /// - [Description("查询对象群验证方式 1允许任何人 2需要验证消息 3不允许任何人加群 4需要正确回答问题 5需要回答问题并由管理员审核 6付费群 -1群号不存在(获取失败返回空)Pro版可用")] - string Api_GetGroupAddMode([Description("机器人QQ")] string 响应QQ, [Description("需查询的群号")] string 群号); - - /// - /// 查询QQ群等级,成功返回等级(失败返回-1)Pro版可用 - /// - /// 机器人QQ - /// 需查询的群号 - /// - [Description("查询QQ群等级,成功返回等级(失败返回-1)Pro版可用")] - int Api_GetGroupLv([Description("机器人QQ")] string 响应QQ, [Description("需查询的群号")] string 群号); - - /// - /// 修改好友备注姓名 - /// - /// 机器人QQ - /// 需获取对象好友QQ - /// 需要修改的备注姓名 - /// - [Description("修改好友备注姓名")] - void Api_SetFriendsRemark([Description("机器人QQ")] string 响应QQ, [Description("需获取对象好友QQ")] string 对象QQ, - [Description("需要修改的备注姓名")] string 备注); - - /// - /// 取好友备注姓名(成功返回备注,失败或无备注返回空)Pro可用 - /// - /// 机器人QQ - /// 需获取对象好友QQ - /// - [Description("取好友备注姓名(成功返回备注,失败或无备注返回空)Pro可用")] - string Api_GetFriendsRemark([Description("机器人QQ")] string 响应QQ, [Description("需获取对象好友QQ")] string 对象QQ); - - /// - /// QQ群签到(成功返回真 失败返回假) - /// - /// 机器人QQ - /// QQ群号 - /// 签到地名(Pro可自定义) - /// 想发表的内容 - /// - [Description("QQ群签到(成功返回真 失败返回假)")] - bool Api_SignIn([Description("机器人QQ")] string 响应QQ, [Description("QQ群号")] string 群号, - [Description("签到地名(Pro可自定义)")] string 地名, [Description("想发表的内容")] string 想说的话); - - /// - /// 抽取群礼物(返回结果Json,需群聊等级LV5后)Pro可用 - /// - /// 机器人QQ - /// - [Description("抽取群礼物(返回结果Json,需群聊等级LV5后)Pro可用")] - string Api_TakeGift([Description("机器人QQ")] string 响应QQ); - - /// - /// 查询我的群礼物(返回Json格式)Pro可用 - /// - /// 机器人QQ - /// - [Description("查询我的群礼物(返回Json格式)Pro可用")] - string Api_CheckGift([Description("机器人QQ")] string 响应QQ); - - /// - /// 送群礼物(成功返回1 失败返回-1)Pro可用 - /// - /// 机器人QQ - /// 需送礼物群号 - /// 赠予礼物对象 - /// 礼物pid - /// - [Description("送群礼物(成功返回1 失败返回-1)Pro可用")] - int Api_GiveGift([Description("机器人QQ")] string 响应QQ, [Description("需送礼物群号")] string 群号, - [Description("赠予礼物对象")] string 对象QQ, [Description("礼物pid")] string pid); - - /// - /// 查询对象或自身群聊等级(返回实际等级 失败返回-1)Pro可用 - /// - /// 机器人QQ - /// 查询群号 - /// 需查询对象或机器人QQ - /// - [Description("查询对象或自身群聊等级(返回实际等级 失败返回-1)Pro可用")] - int Api_GetGroupChatLv([Description("机器人QQ")] string 响应QQ, [Description("查询群号")] string 群号, - [Description("需查询对象或机器人QQ")] string 对象QQ); - - /// - /// 查询对象或自身QQ达人天数(返回实际天数 失败返回-1)Pro可用 - /// - /// 机器人QQ - /// 需查询对象或机器人QQ - /// - [Description("查询对象或自身QQ达人天数(返回实际天数 失败返回-1)Pro可用")] - int Api_GetExpertDays([Description("机器人QQ")] string 响应QQ, [Description("需查询对象或机器人QQ")] string 对象QQ); - - /// - /// 获取机器人QQ是否被屏蔽消息发送状态(真屏蔽 假未屏蔽) - /// - /// 机器人QQ - /// 0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话 - /// - [Description("获取机器人QQ是否被屏蔽消息发送状态(真屏蔽 假未屏蔽)")] - bool Api_GetShieldedState([Description("机器人QQ")] string 响应QQ, - [Description("0在线临时会话 1好友 2群 3讨论组 4群临时会话 5讨论组临时会话 7好友验证回复会话")] - int 消息类型); - } -} \ No newline at end of file diff --git a/src/NuGet.config b/src/NuGet.config index 7e11db3..567e0ff 100644 --- a/src/NuGet.config +++ b/src/NuGet.config @@ -1,6 +1,10 @@  + + + +