imessengerservice.java
来自「针对网络跑步爱好者作为用户而开发的」· Java 代码 · 共 69 行
JAVA
69 行
package com.briup.run.service;
import java.util.List;
import com.briup.run.common.exception.MemberServiceException;
import com.briup.run.common.exception.MessengerServiceException;
import com.briup.run.dao.bean.BlackRecord;
import com.briup.run.dao.bean.FriendRecord;
import com.briup.run.dao.bean.MessageRecord;
public interface IMessengerService {
int findUnreadedMessagesNumber(String nickname)
throws MemberServiceException;
@SuppressWarnings("unchecked")
List findNewMessages(String nickname) throws MessengerServiceException;
@SuppressWarnings("unchecked")
List findReMessages(String nickname,int start,int end) throws MessengerServiceException;
@SuppressWarnings("unchecked")
List findSeMessages(String nickname,int start,int end) throws MessengerServiceException;
String sendMessage(MessageRecord record) throws MessengerServiceException;
void delReMessage(Long id) throws MessengerServiceException;
void delSeMessage(Long id) throws MessengerServiceException;
void addFriend(FriendRecord record) throws MessengerServiceException;
@SuppressWarnings("unchecked")
List findAllFriends(String selfname,int start,int end) throws MessengerServiceException;
void delFriendByRecordId(Long recordid) throws MessengerServiceException;
void AddBlack(BlackRecord record) throws MessengerServiceException;
@SuppressWarnings("unchecked")
List findAllBlacks(String selfname,int start,int end) throws MessengerServiceException;
void delBlackByRecordId(Long recordid) throws MessengerServiceException;
MessageRecord findMessageDetail(Long messageid)
throws MessengerServiceException;
void delFriendRecord(String selfName, String friendName)
throws MessengerServiceException;
void moveToBlackList(String selfName, String blackName)
throws MessengerServiceException;
void delBlackRecord(String selfName, String blackName)
throws MessengerServiceException;
void moveToBuddyList(String selfName, String friendName)
throws MessengerServiceException;
@SuppressWarnings("unchecked")
List findAllMember(int start, int end) throws MessengerServiceException;
Integer findReMessages(String nickname) throws MessengerServiceException;
Integer findSeMessages(String nickname) throws MessengerServiceException;
Integer getAllFriendNum(String selfName) throws MessengerServiceException;
Integer getAllBlackNum(String selfName) throws MessengerServiceException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?