-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: 消息相关API补充
- Loading branch information
Showing
9 changed files
with
304 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
qqbot-common/src/main/java/me/zhenxin/qqbot/entity/MessageDelete.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* qq-official-bot-sdk - QQ Official Bot SDK For Java | ||
* Copyright (C) 2021-2022 xiaoye-bot Project Team | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package me.zhenxin.qqbot.entity; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* 删除消息对象 | ||
* | ||
* @author 真心 | ||
* @since 2022/5/11 2:38 | ||
*/ | ||
@Data | ||
public class MessageDelete { | ||
/** | ||
* 被删除的消息 | ||
*/ | ||
private Message message; | ||
/** | ||
* 操作用户 | ||
*/ | ||
private User opUser; | ||
} |
39 changes: 39 additions & 0 deletions
39
qqbot-common/src/main/java/me/zhenxin/qqbot/entity/MessageKeyboard.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* qq-official-bot-sdk - QQ Official Bot SDK For Java | ||
* Copyright (C) 2021-2022 xiaoye-bot Project Team | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package me.zhenxin.qqbot.entity; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* Keyboard消息 | ||
* | ||
* @author 真心 | ||
* @since 2022/5/11 2:40 | ||
*/ | ||
@Data | ||
public class MessageKeyboard { | ||
/** | ||
* 模板ID | ||
*/ | ||
private String id; | ||
/** | ||
* Keyboard内容 | ||
*/ | ||
private String content; // 官方文档中没有该字段类型(InlineKeyboard) 待确认 | ||
} |
43 changes: 43 additions & 0 deletions
43
qqbot-common/src/main/java/me/zhenxin/qqbot/entity/MessageMarkdown.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* qq-official-bot-sdk - QQ Official Bot SDK For Java | ||
* Copyright (C) 2021-2022 xiaoye-bot Project Team | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package me.zhenxin.qqbot.entity; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* Markdown消息对象 | ||
* | ||
* @author 真心 | ||
* @since 2022/5/11 2:35 | ||
*/ | ||
@Data | ||
public class MessageMarkdown { | ||
/** | ||
* 模板ID | ||
*/ | ||
private String templateId; | ||
/** | ||
* 模板参数 | ||
*/ | ||
private MessageMarkdownParams params; | ||
/** | ||
* 消息内容 | ||
*/ | ||
private String content; | ||
} |
39 changes: 39 additions & 0 deletions
39
qqbot-common/src/main/java/me/zhenxin/qqbot/entity/MessageMarkdownParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* qq-official-bot-sdk - QQ Official Bot SDK For Java | ||
* Copyright (C) 2021-2022 xiaoye-bot Project Team | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package me.zhenxin.qqbot.entity; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* Markdown消息参数 | ||
* | ||
* @author 真心 | ||
* @since 2022/5/11 2:36 | ||
*/ | ||
@Data | ||
public class MessageMarkdownParams { | ||
/** | ||
* Markdown模版的Key值 | ||
*/ | ||
private String key; | ||
/** | ||
* Markdown模版的参数 | ||
*/ | ||
private String[] values; | ||
} |
Oops, something went wrong.