public class CommunityAdminAction
extends java.lang.Object
| 构造器和说明 |
|---|
CommunityAdminAction(WpimApiConfig config)
管理功能处理类构造函数.
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.json.JSONObject |
addMember(int communityId,
int uin)
添加群组成员
|
org.json.JSONObject |
create(org.json.JSONObject data)
创建群组
|
org.json.JSONObject |
delete(int communityId)
删除群组(数据库中删除群,不可恢复,会踢出已有的群用户)
|
org.json.JSONObject |
dissolve(int communityId)
解散群(逻辑删除,仅在数据库做删除标记,会踢出已有的群用户)
|
org.json.JSONObject |
getMembers(int communityId)
获取群组成员
|
org.json.JSONObject |
kickMember(int communityId,
int uin)
踢成员出群组
|
org.json.JSONObject |
read(int communityId)
读取群组资料
|
org.json.JSONObject |
readMsgRecord(org.json.JSONObject filter)
读取群组消息记录
|
org.json.JSONObject |
readMsgRecord(org.json.JSONObject filter,
java.lang.String fields,
java.lang.String order,
int pageSize,
int pageIndex)
读取群消息
|
org.json.JSONObject |
sendMessage(int communityId,
int fromUin,
java.lang.String message)
发送群消息,以某一成员的身份发送群消息
|
org.json.JSONObject |
update(org.json.JSONObject data)
修改群组信息
|
public CommunityAdminAction(WpimApiConfig config)
config - 即时通接口配置public org.json.JSONObject read(int communityId)
communityId - 群组IDpublic org.json.JSONObject create(org.json.JSONObject data)
data - 群组JSON数据public org.json.JSONObject update(org.json.JSONObject data)
data - 群组JSON数据(未提交的字段则不修改)public org.json.JSONObject dissolve(int communityId)
communityId - 群组IDpublic org.json.JSONObject delete(int communityId)
communityId - 删除群组public org.json.JSONObject getMembers(int communityId)
communityId - 群组IDpublic org.json.JSONObject addMember(int communityId,
int uin)
communityId - 群组IDuin - 即时通号码public org.json.JSONObject kickMember(int communityId,
int uin)
communityId - 群组IDuin - 即时通号码public org.json.JSONObject sendMessage(int communityId,
int fromUin,
java.lang.String message)
communityId - 群组IDfromUin - 发送者即时通号码message - 消息内容public org.json.JSONObject readMsgRecord(org.json.JSONObject filter)
filter - 查询过滤public org.json.JSONObject readMsgRecord(org.json.JSONObject filter,
java.lang.String fields,
java.lang.String order,
int pageSize,
int pageIndex)
filter - 查询过滤fields - 所需字段order - 排序pageSize - 页面大小(每页记录数)pageIndex - 页数(当前页)