package com.cattong.weibo.api;
import java.util.List;
import com.cattong.commons.LibException;
import com.cattong.entity.Status;
import com.cattong.weibo.entity.ResponseCount;
import com.cattong.weibo.entity.UnreadCount;
import com.cattong.weibo.entity.UnreadType;
public interface CountService {
/**
* 获取指定微博的转发数和评论数
*
* @param status
* 微博消息对象
* @return ResponseCount对象
* @throws LibException
*/
ResponseCount getResponseCount(Status status) throws LibException;
/**
* 批量获取N条微博的转发数和评论数
*
* @param statusList
* 微博消息列表
* @return ResponseCount列表
* @throws LibException
*/
List<ResponseCount> getResponseCountList(List<Status> statusList) throws LibException;
/**
* 获取未读消息的数量,包括@提到我的,评论,私信,粉丝
*
*/
UnreadCount getUnreadCount() throws LibException;
/**
* 重置未读消息计数值
* @param unreadType 需要清零的计数类别,1、评论数;2、@提到我的;3、私信数;4、粉丝数
* @throws LibException
*/
boolean resetUnreadCount(UnreadType unreadType) throws LibException;
}