Skip to content

Commit bb7df03

Browse files
authored
Merge pull request #79 from JauneQ/main
update core sdk to 3.8.2
2 parents f98c556 + f10f0f2 commit bb7df03

File tree

4 files changed

+10
-71
lines changed

4 files changed

+10
-71
lines changed

OpenIM-SDK/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ dependencies {
5252
implementation 'androidx.lifecycle:lifecycle-process:2.6.1'
5353
implementation 'androidx.annotation:annotation:1.6.0'
5454

55-
compileOnly fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
5655
compileOnly 'com.google.code.gson:gson:2.9.1'
57-
compileOnly 'io.openim:core-sdk:3.5.1@aar'
56+
implementation 'io.openim:core-sdk:3.8.2'
5857

5958
}

OpenIM-SDK/src/main/java/io/openim/android/sdk/listener/OnConnListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public interface OnConnListener {
1111
* 连接服务器失败
1212
* 可以提示用户当前网络连接不可用
1313
*/
14-
default void onConnectFailed(long code, String error){}
14+
default void onConnectFailed(int code, String error){}
1515

1616
/**
1717
* 已经成功连接到服务器

OpenIM-SDK/src/main/java/io/openim/android/sdk/models/ConversationReq.java

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ public class ConversationReq {
2828
* 是否置顶,1置顶
2929
*/
3030
private Boolean isPinned;
31-
/**
32-
*
33-
*/
34-
private String attachedInfo;
3531
/**
3632
* 是否开启私聊
3733
*/
@@ -44,26 +40,10 @@ public class ConversationReq {
4440
* 阅读时长 s,即超过了burnDuration秒触发销毁
4541
*/
4642
private Integer burnDuration;
47-
/**
48-
*
49-
*/
50-
private Long minSeq;
51-
/**
52-
*
53-
*/
54-
private Long maxSeq;
5543
/**
5644
* 强提示 如at消息,公告 {@link io.openim.android.sdk.enums.GroupAtType}
5745
*/
5846
private Integer groupAtType;
59-
/**
60-
* 定期删除时间
61-
*/
62-
private Long msgDestructTime;
63-
/**
64-
* 开启定期删除时间
65-
*/
66-
private Boolean isMsgDestruct;
6747

6848
public String getConversationID() {
6949
return conversationID;
@@ -97,22 +77,6 @@ public void setEx(String ex) {
9777
this.ex = ex;
9878
}
9979

100-
public String getAttachedInfo() {
101-
return attachedInfo;
102-
}
103-
104-
protected void setAttachedInfo(String attachedInfo) {
105-
this.attachedInfo = attachedInfo;
106-
}
107-
108-
public Boolean getMsgDestruct() {
109-
return isMsgDestruct;
110-
}
111-
112-
protected void setMsgDestruct(boolean msgDestruct) {
113-
isMsgDestruct = msgDestruct;
114-
}
115-
11680
public Boolean getPrivateChat() {
11781
return isPrivateChat;
11882
}
@@ -160,28 +124,4 @@ public Integer getGroupAtType() {
160124
public void setGroupAtType(int groupAtType) {
161125
this.groupAtType = groupAtType;
162126
}
163-
164-
public Long getMinSeq() {
165-
return minSeq;
166-
}
167-
168-
protected void setMinSeq(long minSeq) {
169-
this.minSeq = minSeq;
170-
}
171-
172-
public Long getMaxSeq() {
173-
return maxSeq;
174-
}
175-
176-
protected void setMaxSeq(long maxSeq) {
177-
this.maxSeq = maxSeq;
178-
}
179-
180-
public Long getMsgDestructTime() {
181-
return msgDestructTime;
182-
}
183-
184-
protected void setMsgDestructTime(long msgDestructTime) {
185-
this.msgDestructTime = msgDestructTime;
186-
}
187127
}

OpenIM-SDK/src/main/java/io/openim/android/sdk/models/UserInfo.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public void setFaceURL(String faceURL) {
123123
this.faceURL = faceURL;
124124
}
125125

126-
public int getGender() {
126+
public Integer getGender() {
127127
if ((isFriendship())) {
128128
return friendInfo.getGender();
129129
} else if (isBlacklist()) {
@@ -149,7 +149,7 @@ public void setPhoneNumber(String phoneNumber) {
149149
this.phoneNumber = phoneNumber;
150150
}
151151

152-
public long getBirth() {
152+
public Long getBirth() {
153153
if ((isFriendship())) {
154154
return friendInfo.getBirth();
155155
}
@@ -239,47 +239,47 @@ public boolean isFriendship() {
239239
return null != friendInfo;
240240
}
241241

242-
public int getGlobalRecvMsgOpt() {
242+
public Integer getGlobalRecvMsgOpt() {
243243
return globalRecvMsgOpt;
244244
}
245245

246246
public void setGlobalRecvMsgOpt(int globalRecvMsgOpt) {
247247
this.globalRecvMsgOpt = globalRecvMsgOpt;
248248
}
249249

250-
public int getAllowAddFriend() {
250+
public Integer getAllowAddFriend() {
251251
return allowAddFriend;
252252
}
253253

254254
public void setAllowAddFriend(int allowAddFriend) {
255255
this.allowAddFriend = allowAddFriend;
256256
}
257257

258-
public int getAllowBeep() {
258+
public Integer getAllowBeep() {
259259
return allowBeep;
260260
}
261261

262262
public void setAllowBeep(int allowBeep) {
263263
this.allowBeep = allowBeep;
264264
}
265265

266-
public int getAllowVibration() {
266+
public Integer getAllowVibration() {
267267
return allowVibration;
268268
}
269269

270270
public void setAllowVibration(int allowVibration) {
271271
this.allowVibration = allowVibration;
272272
}
273273

274-
public int getForbidden() {
274+
public Integer getForbidden() {
275275
return forbidden;
276276
}
277277

278278
public void setForbidden(int forbidden) {
279279
this.forbidden = forbidden;
280280
}
281281

282-
public long getCreateTime() {
282+
public Long getCreateTime() {
283283
return createTime;
284284
}
285285

0 commit comments

Comments
 (0)