Skip to content

Commit c7b46ec

Browse files
committed
FEAT(m-5337441553):trans
1 parent c7e3707 commit c7b46ec

File tree

96 files changed

+1500
-1537
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1500
-1537
lines changed

src/main/java/io/rong/example/chatroom/BanAllMemberExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static void main(String[] args) throws Exception {
2828
BanAllMember banAllMember = rongCloud.chatroom.banAllMember;
2929

3030
/**
31-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
31+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
3232
* Mute all members in a chatroom
3333
* */
3434
ChatroomModel chatroom = new ChatroomModel();

src/main/java/io/rong/example/chatroom/BanAllMemberWhitelistExample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static void main(String[] args) throws Exception {
2828
BanAllMemberWhitelist banAllMemberWhitelist = rongCloud.chatroom.banAllMemberWhitelist;
2929

3030
/**
31-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
31+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
3232
* Add chatroom mute exceptions
3333
*/
3434
ChatroomMember[] members = {
@@ -43,15 +43,15 @@ public static void main(String[] args) throws Exception {
4343
System.out.println("addBanAllMemberWhitelist: " + result.toString());
4444

4545
/**
46-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
46+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
4747
* Get chatroom mute exceptions list
4848
*/
4949
GroupBanWhitelistResult groupBanWhitelistResult = banAllMemberWhitelist.getList(chatroom.getId());
5050
System.out.println("listBanAllMemberWhitelist: " + groupBanWhitelistResult.toString());
5151

5252
/**
5353
*
54-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
54+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
5555
* Remove the Mute Exceptions for all members in the chatroom
5656
*/
5757
ResponseResult removeResult = banAllMemberWhitelist.remove(chatroom);

src/main/java/io/rong/example/chatroom/BanExample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static void main(String[] args) throws Exception {
3030
Ban ban = rongCloud.chatroom.ban;
3131

3232
/**
33-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
33+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
3434
* Add global chatroom mute
3535
*/
3636
ChatroomMember[] members = {
@@ -43,7 +43,7 @@ public static void main(String[] args) throws Exception {
4343
System.out.println("addGagUser: " + result.toString());
4444

4545
/**
46-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
46+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
4747
* Get global chatroom mute list
4848
*/
4949

@@ -52,7 +52,7 @@ public static void main(String[] args) throws Exception {
5252

5353
/**
5454
*
55-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
55+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
5656
* Remove global mute in chatroom
5757
*/
5858
chatroom = new ChatroomModel()

src/main/java/io/rong/example/chatroom/BlockExample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static void main(String[] args) throws Exception {
3232
new ChatroomMember().setId("qawr34h"), new ChatroomMember().setId("qawr35h")
3333
};
3434
/**
35-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
35+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
3636
*
3737
* Add banned chatroom members
3838
*/
@@ -47,7 +47,7 @@ public static void main(String[] args) throws Exception {
4747

4848

4949
/**
50-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
50+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
5151
*
5252
* Method to unban chatroom members
5353
*/
@@ -58,7 +58,7 @@ public static void main(String[] args) throws Exception {
5858
//System.out.println("removeResult: " + removeResult.toString());
5959

6060
/**
61-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
61+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
6262
*
6363
* Method to query banned chatroom members
6464
*/

src/main/java/io/rong/example/chatroom/ChatroomExample.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static void main(String[] args) throws Exception {
2828
Chatroom chatroom = rongCloud.chatroom;
2929

3030
/**
31-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
31+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
3232
*
3333
* Create a chatroom
3434
*/
@@ -48,7 +48,7 @@ public static void main(String[] args) throws Exception {
4848

4949
/**
5050
*
51-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
51+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
5252
* Destroy a chatroom
5353
*
5454
* */
@@ -61,7 +61,7 @@ public static void main(String[] args) throws Exception {
6161

6262
/**
6363
*
64-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
64+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
6565
* Query chatroom members demo
6666
*
6767
* */
@@ -76,7 +76,7 @@ public static void main(String[] args) throws Exception {
7676

7777
/**
7878
*
79-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
79+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
8080
* Check if a chatroom member exists
8181
*
8282
* */
@@ -90,7 +90,7 @@ public static void main(String[] args) throws Exception {
9090

9191
/**
9292
*
93-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
93+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
9494
* Batch check if chatroom members exist
9595
*
9696
* */

src/main/java/io/rong/example/chatroom/DemotionExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ public static void main(String[] args) throws Exception {
2323
Demotion demotion = rongCloud.chatroom.demotion;
2424

2525
/**
26-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
26+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
2727
* Add in-app chatroom message demotion
2828
*/
2929
String[] messageType = {"RC:VcMsg", "RC:ImgTextMsg", "RC:ImgMsg"};
3030
ResponseResult addResult = demotion.add(messageType);
3131
System.out.println("add demotion: " + addResult.toString());
3232

3333
/**
34-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
34+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
3535
* Remove in-app chatroom message demotion
3636
*/
3737
ResponseResult removeResult = demotion.remove(messageType);

src/main/java/io/rong/example/chatroom/DistributeExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static void main(String[] args) throws Exception {
2626
Distribute distribute = rongCloud.chatroom.distribute;
2727

2828
/**
29-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
29+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
3030
*
3131
* Stop Chatroom Message Distribution
3232
*/
@@ -37,7 +37,7 @@ public static void main(String[] args) throws Exception {
3737
System.out.println("stopDistributionMessage: " + result.toString());
3838

3939
/**
40-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
40+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
4141
*
4242
* Resume Chatroom Message Distribution
4343
*/

src/main/java/io/rong/example/chatroom/EntryExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static void main(String[] args) throws Exception {
3636

3737
Reader reader = null;
3838
/**
39-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
39+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
4040
*
4141
* Create chatroom
4242
*

src/main/java/io/rong/example/chatroom/GagExample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static void main(String[] args) throws Exception {
3131
Gag gag = rongCloud.chatroom.gag;
3232

3333
/**
34-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
34+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
3535
* Add a muted user to the chatroom (When you want to prevent a user from sending messages in a chatroom, you can mute them.
3636
* The muted user can still receive and view messages in the chatroom but cannot send messages.)
3737
*/
@@ -48,7 +48,7 @@ public static void main(String[] args) throws Exception {
4848

4949

5050
/**
51-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
51+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
5252
* Method to query muted chatroom members
5353
*/
5454
chatroom = new ChatroomModel()
@@ -58,7 +58,7 @@ public static void main(String[] args) throws Exception {
5858

5959
/**
6060
*
61-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
61+
* API Documentation: https://docs.rongcloud.io/platform-chat-api/im-server-api-list-v1
6262
*
6363
* Method to remove muted chatroom members
6464
*/

src/main/java/io/rong/example/chatroom/KeepaliveExample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static void main(String[] args) throws Exception {
3333
Keepalive keepalive = rongCloud.chatroom.keepalive;
3434

3535
/**
36-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
36+
*
3737
*
3838
* Add a keepalive chatroom
3939
*
@@ -44,7 +44,7 @@ public static void main(String[] args) throws Exception {
4444
System.out.println("add keepalive result"+addResult.toString());
4545

4646
/**
47-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
47+
*
4848
*
4949
* Remove a keepalive chatroom
5050
*
@@ -54,7 +54,7 @@ public static void main(String[] args) throws Exception {
5454

5555
/**
5656
*
57-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
57+
*
5858
*
5959
* Retrieve Keepalive Chatroom
6060
*

src/main/java/io/rong/example/chatroom/mute/MuteMembersExample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static void main(String[] args) throws Exception {
2424
MuteMembers muteMembers = rongCloud.chatroom.muteMembers;
2525

2626
/**
27-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
27+
*
2828
* Add muted chatroom members (In the app, if you want to prevent a user from sending messages in a chatroom,
2929
* you can mute the user in the chatroom. Muted users can still receive and view messages in the chatroom but cannot send messages.)
3030
* Get the blocklist of a user
@@ -42,7 +42,7 @@ public static void main(String[] args) throws Exception {
4242

4343
/**
4444
*
45-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
45+
*
4646
* Query muted chatroom members
4747
*/
4848
chatroom = new ChatroomModel()
@@ -52,7 +52,7 @@ public static void main(String[] args) throws Exception {
5252

5353
/**
5454
*
55-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
55+
*
5656
*
5757
* Unmute chatroom members
5858
*/

src/main/java/io/rong/example/chatroom/whitelist/MessageExample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@ public static void main(String[] args) throws Exception {
2929
String[] messageType = {"RC:VcMsg", "RC:ImgTextMsg", "RC:ImgMsg"};
3030

3131
/**
32-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
32+
*
3333
* Add chatroom message allowlist
3434
*/
3535

3636
ResponseResult addResult = whitelist.message.add(messageType);
3737
System.out.println("add whitelist: " + addResult.toString());
3838
/**
39-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
39+
*
4040
* Get chatroom message allowlist
4141
*/
4242

4343
ChatroomWhitelistMsgResult getResult = whitelist.message.getList();
4444
System.out.println("get whitelist: " + getResult.toString());
4545

4646
/**
47-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
47+
*
4848
* Delete chatroom message allowlist
4949
*/
5050
ResponseResult removeResult = whitelist.message.remove(messageType);

src/main/java/io/rong/example/chatroom/whitelist/UserExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static void main(String[] args) throws Exception {
3939
System.out.println("add whitelist: " + addResult.toString());
4040

4141
/**
42-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
42+
*
4343
* Get the chatroom allowlist
4444
*/
4545

@@ -48,7 +48,7 @@ public static void main(String[] args) throws Exception {
4848

4949

5050
/**
51-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
51+
*
5252
* Remove Chatroom Allowlist Users
5353
*/
5454

src/main/java/io/rong/example/conversation/ConversationExample.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static void main(String[] args) throws Exception {
4040
.setTargetId("2iXiqVWUAWwaKA55FuZvY31");
4141
/**
4242
*
43-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
43+
*
4444
* Set Conversation Do Not Disturb
4545
*
4646
*/
@@ -50,7 +50,7 @@ public static void main(String[] args) throws Exception {
5050

5151
/**
5252
*
53-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
53+
*
5454
* Disable Conversation Do Not Disturb
5555
*
5656
* */
@@ -59,7 +59,7 @@ public static void main(String[] args) throws Exception {
5959
System.out.println("unMuteConversationResult: " + unMuteConversationResult.toString());
6060
/**
6161
*
62-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
62+
*
6363
* Get Conversation Do Not Disturb Status
6464
*
6565
* */
@@ -70,7 +70,7 @@ public static void main(String[] args) throws Exception {
7070

7171

7272
/**
73-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
73+
*
7474
* Set conversation top.
7575
*/
7676
ConversationSetTopModel setTopModel = new ConversationSetTopModel()

src/main/java/io/rong/example/group/GagExample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static void main(String[] args) throws Exception {
3535

3636
Gag Gag = rongCloud.group.gag;
3737
/**
38-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
38+
*
3939
* Method to mute group members
4040
*/
4141

@@ -49,14 +49,14 @@ public static void main(String[] args) throws Exception {
4949
System.out.println("group.gag.add: " + result.toString());
5050

5151
/**
52-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
52+
*
5353
* Query muted group members
5454
*/
5555
ListGagGroupUserResult groupLisGagUserResult = Gag.getList("groupId");
5656
System.out.println("group.gag.getList: " + groupLisGagUserResult.toString());
5757

5858
/**
59-
* API Documentation: https://doc.rongcloud.cn/imserver/server/v1/im-server-api-list-v1
59+
*
6060
* Remove muted group members
6161
*/
6262
group = new GroupModel()

0 commit comments

Comments
 (0)