package com.cattong.weibo.api;
import java.util.List;
import com.cattong.commons.LibException;
import com.cattong.commons.Paging;
import com.cattong.entity.Status;
/**
* FavoriteMethods
*
* @version
* @author cattong.com
* @time 2010-7-28 下午02:38:09
*/
public interface FavoriteService {
/**
* 收藏指定ID的微博消息
*
* @param statusId
* 微博消息ID
* @return 微博消息对象
* @throws LibException
*/
Status createFavorite(String statusId) throws LibException;
/**
* 取消收藏指定ID的微博消息
*
* @param statusId
* 微博消息ID
* @return 微博消息对象
* @throws LibException
*/
Status destroyFavorite(String statusId) throws LibException;
/**
* 返回当前登录用户收藏的微博列表
*
* @param paging
* 分页控制参数,不能为空
* @return 微博消息列表
* @throws LibException
*/
List<Status> getFavorites(Paging<Status> paging) throws LibException;
/**
* 返回指定用户收藏的微博列表
*
* @param userId
* 用户唯一标识名
* @param paging
* 分页控制参数,不能为空
* @return 微博消息列表
* @throws LibException
*/
List<Status> getFavorites(String userId, Paging<Status> paging) throws LibException;
}