Skip to content

Commit f22aa73

Browse files
committed
build: release v0.4.02
* fix #179 * fix #180 * fix #181
1 parent 4dd069a commit f22aa73

20 files changed

+214
-84
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.01</version>
29+
<version>0.4.02</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.01</version>
29+
<version>0.4.02</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.01" vertical="top" /> 编写。
3+
本文档基于腾讯云 IM Server SDK Java <Badge type="tip" text="v0.4.02" 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.01</version>
13+
<version>0.4.02</version>
1414
</dependency>
1515
```
1616

1717
### Gradle
1818

1919
```gradle
20-
implementation group: 'io.github.doocs', name: 'im-server-sdk-java', version: '0.4.01'
20+
implementation group: 'io.github.doocs', name: 'im-server-sdk-java', version: '0.4.02'
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.01",
3+
"version": "0.4.02",
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.01</version>
9+
<version>0.4.02</version>
1010
<packaging>jar</packaging>
1111

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

src/main/java/io/github/doocs/im/ClientConfiguration.java

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import io.github.doocs.im.util.VersionInfoUtil;
44
import okhttp3.ConnectionPool;
55

6+
import java.util.Objects;
7+
68
/**
79
* 客户端配置类
810
*
@@ -163,6 +165,47 @@ public void setConnectionPool(ConnectionPool connectionPool) {
163165
this.connectionPool = connectionPool;
164166
}
165167

168+
@Override
169+
public boolean equals(Object o) {
170+
if (this == o) {
171+
return true;
172+
}
173+
if (o == null || getClass() != o.getClass()) {
174+
return false;
175+
}
176+
177+
ClientConfiguration that = (ClientConfiguration) o;
178+
if (maxRetries != that.maxRetries) {
179+
return false;
180+
}
181+
if (connectTimeout != that.connectTimeout) {
182+
return false;
183+
}
184+
if (readTimeout != that.readTimeout) {
185+
return false;
186+
}
187+
if (writeTimeout != that.writeTimeout) {
188+
return false;
189+
}
190+
if (callTimeout != that.callTimeout) {
191+
return false;
192+
}
193+
if (expireTime != that.expireTime) {
194+
return false;
195+
}
196+
if (autoRenewSig != that.autoRenewSig) {
197+
return false;
198+
}
199+
if (!userAgent.equals(that.userAgent)) {
200+
return false;
201+
}
202+
return connectionPool.equals(that.connectionPool);
203+
}
204+
205+
@Override
206+
public int hashCode() {
207+
return Objects.hash(maxRetries, connectTimeout, readTimeout, writeTimeout, callTimeout, expireTime, autoRenewSig, userAgent, connectionPool);
208+
}
166209

167210
public static final class Builder {
168211
private int maxRetries = DEFAULT_MAX_RETRIES;

src/main/java/io/github/doocs/im/model/request/GetMembersRequest.java

Lines changed: 40 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,26 @@ public class GetMembersRequest extends GenericRequest implements Serializable {
2424
* 首次请求传0,当直播群中人数较多时,后台返回非0的 Timestamp 表示需要分页拉取,后续请求将 Timestamp 传回,直到后台返回0
2525
*/
2626
@JsonProperty("Timestamp")
27-
private Integer timestamp;
27+
private Long timestamp;
28+
29+
/**
30+
* 按某个标记过滤拉取用户列表
31+
*/
32+
@JsonProperty("Mark")
33+
private Long mark;
2834

2935
public GetMembersRequest() {
3036
}
3137

32-
public GetMembersRequest(String groupId, Integer timestamp) {
38+
public GetMembersRequest(String groupId, Long timestamp) {
3339
this.groupId = groupId;
3440
this.timestamp = timestamp;
3541
}
3642

37-
private GetMembersRequest(Builder builder) {
38-
this.groupId = builder.groupId;
39-
this.timestamp = builder.timestamp;
40-
}
41-
42-
public static Builder builder() {
43-
return new Builder();
43+
public GetMembersRequest(String groupId, Long timestamp, Long mark) {
44+
this.groupId = groupId;
45+
this.timestamp = timestamp;
46+
this.mark = mark;
4447
}
4548

4649
public String getGroupId() {
@@ -51,34 +54,57 @@ public void setGroupId(String groupId) {
5154
this.groupId = groupId;
5255
}
5356

54-
public Integer getTimestamp() {
57+
public Long getTimestamp() {
5558
return timestamp;
5659
}
5760

58-
public void setTimestamp(Integer timestamp) {
61+
public void setTimestamp(Long timestamp) {
5962
this.timestamp = timestamp;
6063
}
6164

65+
public Long getMark() {
66+
return mark;
67+
}
68+
69+
public void setMark(Long mark) {
70+
this.mark = mark;
71+
}
72+
73+
private GetMembersRequest(Builder builder) {
74+
this.groupId = builder.groupId;
75+
this.timestamp = builder.timestamp;
76+
this.mark = builder.mark;
77+
}
78+
79+
public static Builder builder() {
80+
return new Builder();
81+
}
82+
6283

6384
public static final class Builder {
6485
private String groupId;
65-
private Integer timestamp;
86+
private Long timestamp;
87+
private Long mark;
6688

6789
private Builder() {
6890
}
6991

7092
public GetMembersRequest build() {
7193
return new GetMembersRequest(this);
7294
}
73-
7495
public Builder groupId(String groupId) {
7596
this.groupId = groupId;
7697
return this;
7798
}
7899

79-
public Builder timestamp(Integer timestamp) {
100+
public Builder timestamp(Long timestamp) {
80101
this.timestamp = timestamp;
81102
return this;
82103
}
104+
105+
public Builder mark(Long mark) {
106+
this.mark = mark;
107+
return this;
108+
}
83109
}
84110
}

src/main/java/io/github/doocs/im/model/request/GetRecentContactListRequest.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class GetRecentContactListRequest extends GenericRequest implements Seria
2424
* 普通会话的起始时间,第一页填 0
2525
*/
2626
@JsonProperty("TimeStamp")
27-
private Integer timestamp;
27+
private Long timestamp;
2828

2929
/**
3030
* 普通会话的起始位置,第一页填 0
@@ -36,7 +36,7 @@ public class GetRecentContactListRequest extends GenericRequest implements Seria
3636
* 置顶会话的起始时间,第一页填 0
3737
*/
3838
@JsonProperty("TopTimeStamp")
39-
private Integer topTimestamp;
39+
private Long topTimestamp;
4040

4141
/**
4242
* 置顶会话的起始位置,第一页填 0
@@ -57,8 +57,8 @@ public class GetRecentContactListRequest extends GenericRequest implements Seria
5757
public GetRecentContactListRequest() {
5858
}
5959

60-
public GetRecentContactListRequest(String fromAccount, Integer timestamp, Integer startIndex,
61-
Integer topTimestamp, Integer topStartIndex, Integer assistFlags) {
60+
public GetRecentContactListRequest(String fromAccount, Long timestamp, Integer startIndex,
61+
Long topTimestamp, Integer topStartIndex, Integer assistFlags) {
6262
this.fromAccount = fromAccount;
6363
this.timestamp = timestamp;
6464
this.startIndex = startIndex;
@@ -88,11 +88,11 @@ public void setFromAccount(String fromAccount) {
8888
this.fromAccount = fromAccount;
8989
}
9090

91-
public Integer getTimestamp() {
91+
public Long getTimestamp() {
9292
return timestamp;
9393
}
9494

95-
public void setTimestamp(Integer timestamp) {
95+
public void setTimestamp(Long timestamp) {
9696
this.timestamp = timestamp;
9797
}
9898

@@ -104,11 +104,11 @@ public void setStartIndex(Integer startIndex) {
104104
this.startIndex = startIndex;
105105
}
106106

107-
public Integer getTopTimestamp() {
107+
public Long getTopTimestamp() {
108108
return topTimestamp;
109109
}
110110

111-
public void setTopTimestamp(Integer topTimestamp) {
111+
public void setTopTimestamp(Long topTimestamp) {
112112
this.topTimestamp = topTimestamp;
113113
}
114114

@@ -131,9 +131,9 @@ public void setAssistFlags(Integer assistFlags) {
131131

132132
public static final class Builder {
133133
private String fromAccount;
134-
private Integer timestamp;
134+
private Long timestamp;
135135
private Integer startIndex;
136-
private Integer topTimestamp;
136+
private Long topTimestamp;
137137
private Integer topStartIndex;
138138
private Integer assistFlags;
139139

@@ -149,7 +149,7 @@ public Builder fromAccount(String fromAccount) {
149149
return this;
150150
}
151151

152-
public Builder timestamp(Integer timestamp) {
152+
public Builder timestamp(Long timestamp) {
153153
this.timestamp = timestamp;
154154
return this;
155155
}
@@ -159,7 +159,7 @@ public Builder startIndex(Integer startIndex) {
159159
return this;
160160
}
161161

162-
public Builder topTimestamp(Integer topTimestamp) {
162+
public Builder topTimestamp(Long topTimestamp) {
163163
this.topTimestamp = topTimestamp;
164164
return this;
165165
}

0 commit comments

Comments
 (0)