public class ConversationAPI extends Object
| 构造器和说明 |
|---|
ConversationAPI() |
| 限定符和类型 | 方法和说明 |
|---|---|
static MsgResponse |
clearnotify(String chatidOrUserid,
String type,
String opUser,
String accessToken)
清除会话状态
|
static MsgResponse |
createConversation(Conversation conversation,
String accessToken)
创建会话
|
static Conversation |
getConversation(String chatid,
String accessToken)
获取会话信息
|
static MsgResponse |
quit(String chatid,
String opUser,
String accessToken)
退出会话
|
static MsgResponse |
sendMessage(BaseMessage message,
String accessToken)
会话中发送消息
|
static MsgResponse |
setMute(List<Mute> userlist,
String accessToken)
设置用户消息
|
static MsgResponse |
updateConversation(Conversation4Update converstation,
String accessToken)
修改会话信息
|
public static MsgResponse createConversation(Conversation conversation, String accessToken)
conversation - public static Conversation getConversation(String chatid, String accessToken)
chatid - 会话IDaccessToken - TOKENpublic static MsgResponse updateConversation(Conversation4Update converstation, String accessToken)
chatid - 会话IDopUser - 操作用户IDname - 修改为会话名称owner - 修改管理员IDaddUserlist - 新增会话成员delUserlist - 删除会话成员accessToken - public static MsgResponse quit(String chatid, String opUser, String accessToken)
chatid - 会话IDopUser - 操作员IDaccessToken - public static MsgResponse clearnotify(String chatidOrUserid, String type, String opUser, String accessToken)
chatidOrUserid - 会话ID或用户IDtype - 类型:single或group 即 群聊或单聊opUser - 操作人IDaccessToken - public static MsgResponse sendMessage(BaseMessage message, String accessToken)
textMessage - 消息对象 发送不同消息,创建不同子类即可accessToken - public static MsgResponse setMute(List<Mute> userlist, String accessToken)
userlist - accessToken - Copyright © 2022. All rights reserved.