org.ccs.openim.service.api.OpenImApiGroupService Maven / Gradle / Ivy
package org.ccs.openim.service.api;
import org.ccs.openim.api.OpenImApiGroupRest;
import org.ccs.openim.api.group.req.*;
import org.ccs.openim.api.group.resp.*;
import org.ccs.openim.base.OpenImResult;
import org.ccs.openim.base.OpenImToken;
public class OpenImApiGroupService {
private OpenImApiGroupRest openImApiGroupRest = new OpenImApiGroupRest();
/**
* 创建群
*
* @param req
* @return
*/
public OpenImResult createGroup(OpenImToken openImToken, CreateGroupReq req) {
return openImApiGroupRest.createGroup(openImToken, req);
}
/**
* 设置群信息
*
* @param req
* @return
*/
public OpenImResult setGroupInfo(OpenImToken openImToken, SetGroupInfoReq req) {
return openImApiGroupRest.setGroupInfo(openImToken, req);
}
/**
* 获取指定群信息
*
* @param req
* @return
*/
public OpenImResult getGroupInfo(OpenImToken openImToken, GetGroupsInfoReq req) {
return openImApiGroupRest.getGroupInfo(openImToken, req);
}
/**
* (以管理员或群主身份)获取群的加群申请
*
* @param req
* @return
*/
public OpenImResult getRecvGroupApplicationList(OpenImToken openImToken, GetGroupApplicationListReq req) {
return openImApiGroupRest.getRecvGroupApplicationList(openImToken, req);
}
/**
* 获取用户自己的主动加群申请
*
* @param req
* @return
*/
public OpenImResult getUserReqApplicationList(OpenImToken openImToken, GetUserReqApplicationListReq req) {
return openImApiGroupRest.getUserReqApplicationList(openImToken, req);
}
/**
* 获取该群用户的加群申请
*
* @param req
* @return
*/
public OpenImResult getGroupUsersReqApplicationList(OpenImToken openImToken, GetGroupUsersReqApplicationListReq req) {
return openImApiGroupRest.getGroupUsersReqApplicationList(openImToken, req);
}
/**
* 设置群成员昵称
* 设置群成员信息
*
* @param req
* @return
*/
public OpenImResult setGroupMemberInfo(OpenImToken openImToken, SetGroupMemberInfoReq req) {
return openImApiGroupRest.setGroupMemberInfo(openImToken, req);
}
/**
* 获取群信息hash值
*
* @param req
* @return
*/
public OpenImResult getGroupAbstractInfo(OpenImToken openImToken, GetGroupAbstractInfoReq req) {
return openImApiGroupRest.getGroupAbstractInfo(openImToken, req);
}
/**
* 申请加群
*
* @param req
* @return
*/
public OpenImResult joinGroup(OpenImToken openImToken, JoinGroupReq req) {
return openImApiGroupRest.joinGroup(openImToken, req);
}
/**
* 退出群
*
* @param req
* @return
*/
public OpenImResult quitGroup(OpenImToken openImToken, QuitGroupReq req) {
return openImApiGroupRest.quitGroup(openImToken, req);
}
/**
* 踢出群
*
* @param req
* @return
*/
public OpenImResult kickGroupMember(OpenImToken openImToken, KickGroupMemberReq req) {
return openImApiGroupRest.kickGroupMember(openImToken, req);
}
/**
* 解散群
*
* @param req
* @return
*/
public OpenImResult dismissGroup(OpenImToken openImToken, DismissGroupReq req) {
return openImApiGroupRest.dismissGroup(openImToken, req);
}
/**
* 对某个群成员禁言
*
* @param req
* @return
*/
public OpenImResult muteGroupMember(OpenImToken openImToken, MuteGroupMemberReq req) {
return openImApiGroupRest.muteGroupMember(openImToken, req);
}
/**
* 对某个群成员取消禁言
*
* @param req
* @return
*/
public OpenImResult cancelMuteGroupMember(OpenImToken openImToken, CancelMuteGroupMemberReq req) {
return openImApiGroupRest.cancelMuteGroupMember(openImToken, req);
}
/**
* 对某个群禁言
*
* @param req
* @return
*/
public OpenImResult muteGroup(OpenImToken openImToken, MuteGroupReq req) {
return openImApiGroupRest.muteGroup(openImToken, req);
}
/**
* 对某个群取消禁言
*
* @param req
* @return
*/
public OpenImResult cancelMuteGroup(OpenImToken openImToken, CancelMuteGroupReq req) {
return openImApiGroupRest.cancelMuteGroup(openImToken, req);
}
/**
* 群主或管理员处理进群申请
*
* @param req
* @return
*/
public OpenImResult applicationGroupResponse(OpenImToken openImToken, GroupApplicationResponseReq req) {
return openImApiGroupRest.applicationGroupResponse(openImToken, req);
}
/**
* 获取某个群的群成员
*
* @param req
* @return
*/
public OpenImResult getGroupMemberList(OpenImToken openImToken, GetGroupMemberListReq req) {
return openImApiGroupRest.getGroupMemberList(openImToken, req);
}
/**
* 获取某个群的指定群成员
*
* @param req
* @return
*/
public OpenImResult getGroupMembersInfo(OpenImToken openImToken, GetGroupMembersInfoReq req) {
return openImApiGroupRest.getGroupMembersInfo(openImToken, req);
}
/**
* 转让群主
*
* @param req
* @return
*/
public OpenImResult transferGroupOwner(OpenImToken openImToken, TransferGroupOwnerReq req) {
return openImApiGroupRest.transferGroupOwner(openImToken, req);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy