Skip to content

Commit b5d1302

Browse files
authored
build: release v0.4.03 (#183)
* feat: add callback entity * feat: upgrade
1 parent 332164f commit b5d1302

20 files changed

+1317
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If you're using Maven, just add the following dependency in `pom.xml`.
2626
<dependency>
2727
<groupId>io.github.doocs</groupId>
2828
<artifactId>im-server-sdk-java</artifactId>
29-
<version>0.4.02</version>
29+
<version>0.4.03</version>
3030
</dependency>
3131
```
3232

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<dependency>
2727
<groupId>io.github.doocs</groupId>
2828
<artifactId>im-server-sdk-java</artifactId>
29-
<version>0.4.02</version>
29+
<version>0.4.03</version>
3030
</dependency>
3131
```
3232

docs/guide/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 介绍
22

3-
本文档基于腾讯云 IM Server SDK Java <Badge type="tip" text="v0.4.02" vertical="top" /> 编写。
3+
本文档基于腾讯云 IM Server SDK Java <Badge type="tip" text="v0.4.03" vertical="top" /> 编写。
44

55
## 前提条件
66

docs/guide/quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
<dependency>
1111
<groupId>io.github.doocs</groupId>
1212
<artifactId>im-server-sdk-java</artifactId>
13-
<version>0.4.02</version>
13+
<version>0.4.03</version>
1414
</dependency>
1515
```
1616

1717
### Gradle
1818

1919
```gradle
20-
implementation group: 'io.github.doocs', name: 'im-server-sdk-java', version: '0.4.02'
20+
implementation group: 'io.github.doocs', name: 'im-server-sdk-java', version: '0.4.03'
2121
```
2222

2323
### 下载 JAR

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "qcloud-im-server-sdk-java",
3-
"version": "0.4.02",
3+
"version": "0.4.03",
44
"description": "腾讯云 IM 服务端 SDK API 文档 Java 版",
55
"main": "index.js",
66
"scripts": {

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.doocs</groupId>
88
<artifactId>im-server-sdk-java</artifactId>
9-
<version>0.4.02</version>
9+
<version>0.4.03</version>
1010
<packaging>jar</packaging>
1111

1212
<name>qcloud-im-server-sdk-java</name>

src/main/java/io/github/doocs/im/constant/CallbackCommand.java

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
* @since 2021/11/16 11:27
88
*/
99
public class CallbackCommand {
10+
11+
/**
12+
* 接口超频告警回调
13+
*/
14+
public static final String REQUEST_OVER_LIMIT = "Alert.RequestOverLimit";
15+
1016
/**
1117
* 状态变更回调(在线状态)
1218
*/
@@ -169,11 +175,36 @@ public class CallbackCommand {
169175
*/
170176
public static final String GROUP_CALLBACK_AFTER_TOPIC_INFO_CHANGED = "Group.CallbackAfterTopicInfoChanged";
171177

178+
/**
179+
* 群成员资料变更后回调
180+
*/
181+
public static final String GROUP_CALLBACK_AFTER_MEMBER_FIELD_CHANGED = "Group.CallbackAfterMemberFieldChanged";
182+
183+
/**
184+
* 群自定义属性变更后回调
185+
*/
186+
public static final String GROUP_CALLBACK_AFTER_GROUP_ATTR_CHANGED = "Group.CallbackAfterGroupAttrChanged";
187+
188+
/**
189+
* 已读回执后回调
190+
*/
191+
public static final String GROUP_CALLBACK_AFTER_READ_RECEIPT = "Group.CallbackAfterReadReceipt";
192+
193+
/**
194+
* 转让群主后回调
195+
*/
196+
public static final String GROUP_CALLBACK_AFTER_CHANGE_GROUP_OWNER = "Group.CallbackAfterChangeGroupOwner";
197+
172198
/**
173199
* 群内@机器人之后回调
174200
*/
175201
public static final String BOT_CALLBACK_ON_GROUP_MESSAGE = "Bot.OnGroupMessage";
176202

203+
/**
204+
* 智能机器人单聊消息自定义回调
205+
*/
206+
public static final String CHAT_BOT_ON_C2C_SIGNAL_MESSAGE = "Chatbot.OnC2CSignalMessage";
207+
177208
// --------------------------------------------------------------------------------------------------------
178209

179210
/**
@@ -238,6 +269,19 @@ public class CallbackCommand {
238269
*/
239270
public static final String OFFICIAL_ACCOUNT_CALLBACK_AFTER_MSG_WITHDRAW = "OfficialAccount.CallbackAfterMsgWithDraw";
240271

272+
// --------------------------------------------------------------------------------------------------------
273+
274+
/**
275+
* 普通推送结果回调
276+
*/
277+
public static final String PUSH_OFFLINE_PUSH = "Push.OfflinePush";
278+
279+
/**
280+
* 全员推送结果回调
281+
*/
282+
public static final String PUSH_ALL_MEMBER_PUSH = "Push.AllMemberPush";
283+
284+
241285
private CallbackCommand() {
242286

243287
}
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
package io.github.doocs.im.model.callback;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import io.github.doocs.im.model.group.GroupAttr;
5+
6+
import java.io.Serializable;
7+
import java.util.List;
8+
9+
/**
10+
* 群自定义属性变更后回调
11+
*
12+
* @author bingo
13+
* @since 2024/7/14 10:18
14+
*/
15+
public class AfterGroupAttrChangedCallback implements Serializable {
16+
17+
private static final long serialVersionUID = -8602621515102445503L;
18+
19+
/**
20+
* 回调命令
21+
*/
22+
@JsonProperty("CallbackCommand")
23+
private String callbackCommand;
24+
25+
/**
26+
* 操作的群 ID
27+
*/
28+
@JsonProperty("GroupId")
29+
private String groupId;
30+
31+
/**
32+
* 群组类型 群组类型介绍,例如:Public
33+
*/
34+
@JsonProperty("Type")
35+
private String type;
36+
37+
/**
38+
* 发起群自定义属性变更请求的操作者 UserID
39+
*/
40+
@JsonProperty("Operator_Account")
41+
private String operatorAccount;
42+
43+
/**
44+
* "set" : 重置自定义属性; "modify": 修改自定义属性; "clear": 清空自定义属性; "delete" : 删除自定义属性
45+
*/
46+
@JsonProperty("OptionType")
47+
private String optionType;
48+
49+
/**
50+
* 自定义属性列表,key 为自定义属性的键,value 为自定义属性的值
51+
*/
52+
@JsonProperty("GroupAttr")
53+
private List<GroupAttr> groupAttr;
54+
55+
/**
56+
* 事件触发的毫秒级别时间戳
57+
*/
58+
@JsonProperty("EventTime")
59+
private Long eventTime;
60+
61+
public String getCallbackCommand() {
62+
return callbackCommand;
63+
}
64+
65+
public void setCallbackCommand(String callbackCommand) {
66+
this.callbackCommand = callbackCommand;
67+
}
68+
69+
public String getGroupId() {
70+
return groupId;
71+
}
72+
73+
public void setGroupId(String groupId) {
74+
this.groupId = groupId;
75+
}
76+
77+
public String getType() {
78+
return type;
79+
}
80+
81+
public void setType(String type) {
82+
this.type = type;
83+
}
84+
85+
public String getOperatorAccount() {
86+
return operatorAccount;
87+
}
88+
89+
public void setOperatorAccount(String operatorAccount) {
90+
this.operatorAccount = operatorAccount;
91+
}
92+
93+
public String getOptionType() {
94+
return optionType;
95+
}
96+
97+
public void setOptionType(String optionType) {
98+
this.optionType = optionType;
99+
}
100+
101+
public List<GroupAttr> getGroupAttr() {
102+
return groupAttr;
103+
}
104+
105+
public void setGroupAttr(List<GroupAttr> groupAttr) {
106+
this.groupAttr = groupAttr;
107+
}
108+
109+
public Long getEventTime() {
110+
return eventTime;
111+
}
112+
113+
public void setEventTime(Long eventTime) {
114+
this.eventTime = eventTime;
115+
}
116+
}
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
package io.github.doocs.im.model.callback;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
5+
import java.io.Serializable;
6+
7+
/**
8+
* 群成员资料变更后回调
9+
*
10+
* @author bingo
11+
* @since 2024/7/14 10:18
12+
*/
13+
public class AfterGroupMemberFieldChangedCallback implements Serializable {
14+
private static final long serialVersionUID = -7463001570593065039L;
15+
16+
/**
17+
* 回调命令
18+
*/
19+
@JsonProperty("CallbackCommand")
20+
private String callbackCommand;
21+
22+
/**
23+
* 群组 ID
24+
*/
25+
@JsonProperty("GroupId")
26+
private String groupId;
27+
28+
/**
29+
* 群组类型
30+
*/
31+
@JsonProperty("Type")
32+
private String type;
33+
34+
/**
35+
* 发起变更请求的操作者 UserID
36+
*/
37+
@JsonProperty("Operator_Account")
38+
private String operatorAccount;
39+
40+
/**
41+
* 变更成员 UserID
42+
*/
43+
@JsonProperty("Modified_Account")
44+
private String modifiedAccount;
45+
46+
/**
47+
* 变更后成员身份,Admin/Member 分别为设置/取消管理员
48+
*/
49+
@JsonProperty("Role")
50+
private String role;
51+
52+
/**
53+
* 变更后群名片
54+
*/
55+
@JsonProperty("NameCard")
56+
private String nameCard;
57+
58+
/**
59+
* 事件触发的毫秒级别时间戳
60+
*/
61+
@JsonProperty("EventTime")
62+
private Long eventTime;
63+
64+
public String getCallbackCommand() {
65+
return callbackCommand;
66+
}
67+
68+
public void setCallbackCommand(String callbackCommand) {
69+
this.callbackCommand = callbackCommand;
70+
}
71+
72+
public String getGroupId() {
73+
return groupId;
74+
}
75+
76+
public void setGroupId(String groupId) {
77+
this.groupId = groupId;
78+
}
79+
80+
public String getType() {
81+
return type;
82+
}
83+
84+
public void setType(String type) {
85+
this.type = type;
86+
}
87+
88+
public String getOperatorAccount() {
89+
return operatorAccount;
90+
}
91+
92+
public void setOperatorAccount(String operatorAccount) {
93+
this.operatorAccount = operatorAccount;
94+
}
95+
96+
public String getModifiedAccount() {
97+
return modifiedAccount;
98+
}
99+
100+
public void setModifiedAccount(String modifiedAccount) {
101+
this.modifiedAccount = modifiedAccount;
102+
}
103+
104+
public String getRole() {
105+
return role;
106+
}
107+
108+
public void setRole(String role) {
109+
this.role = role;
110+
}
111+
112+
public String getNameCard() {
113+
return nameCard;
114+
}
115+
116+
public void setNameCard(String nameCard) {
117+
this.nameCard = nameCard;
118+
}
119+
120+
public Long getEventTime() {
121+
return eventTime;
122+
}
123+
124+
public void setEventTime(Long eventTime) {
125+
this.eventTime = eventTime;
126+
}
127+
}

0 commit comments

Comments
 (0)