io.gitee.huangguiming.Imcode.service.GroupService Maven / Gradle / Ivy
package io.gitee.huangguiming.Imcode.service;
import io.gitee.huangguiming.Imcode.exception.IMException;
import io.gitee.huangguiming.Imcode.param.CreateGroupAbstractParam;
import io.gitee.huangguiming.Imcode.domain.GroupType;
import io.gitee.huangguiming.Imcode.param.PullGroupsParam;
import io.gitee.huangguiming.Imcode.responses.IMBashResponse;
import io.gitee.huangguiming.Imcode.responses.IMCreateGroupResponse;
import io.gitee.huangguiming.Imcode.responses.IMGetAllGroupResponses;
/**
* 群组相关服务
* @author huangguiming
*/
public interface GroupService {
/**
* 获取当前App下的所有群组
* @return 响应体
*/
public IMGetAllGroupResponses getGroups() throws IMException;
/**
* 分页拉取群组或是根据群类型拉取群组
* @return 响应体
* @throws IMException IM异常
* @param param 封装参数对象
*/
public IMGetAllGroupResponses getGroups(PullGroupsParam param) throws IMException;
/**
* 创建群组
* @return 统一返回题
* @param param 封装参数
* @throws IMException im异常
*/
public IMCreateGroupResponse createGroup(CreateGroupAbstractParam param) throws IMException;
/**
* 获取直播群在线人数
* @param GroupId 群组id
* @return 直播间人数
* @throws IMException 异常
*/
public Integer getLiveOnlineNum(String GroupId) throws IMException;
/**
* 解散直播群
* @param GroupId 群组id
* @return 返回的状态
*/
public String dissolutionGroup(String GroupId) throws IMException;
}