Пример #1
0
        //获得好友分组列表
        public IList <Model.Group> getGroupList(int uId)
        {
            DataTable           result = groupDal.getGroupList(uId);
            IList <Model.Group> list   = ModelConvertUtil <Model.Group> .ConvertToModel(result);

            return(list);
        }
Пример #2
0
        public IList <Chatroom> getChatRoomDetail(int uId)//获得每个群组列表信息
        {
            DataTable        result = chatRoomMemberDal.getChatRoomDetail(uId);
            IList <Chatroom> list   = ModelConvertUtil <Chatroom> .ConvertToModel(result);

            return(list);
        }
Пример #3
0
        //查找群主信息
        public User searchLeader(int uId)
        {
            DataTable    result = chatRoomMemberDal.searchLeader(uId);
            IList <User> list   = ModelConvertUtil <User> .ConvertToModel(result);

            return(list[0]);
        }
Пример #4
0
        //获得所有好友的信息
        public IList <Friend> getAllFriend(int uId)
        {
            DataTable      result = friendDal.getAllFriend(uId);
            IList <Friend> list   = ModelConvertUtil <Friend> .ConvertToModel(result);

            return(list);
        }
Пример #5
0
        //获得某个分组下的好友列表
        public IList <Friend> getFriendByGroup(int uId, int groupId)
        {
            DataTable      result = friendDal.getFriendByGroup(uId, groupId);
            IList <Friend> list   = ModelConvertUtil <Friend> .ConvertToModel(result);

            return(list);
        }
Пример #6
0
        //获得某个特定好友的信息
        public Friend getOneFriend(int uId, int friendId)
        {
            DataTable      result = friendDal.getOneFriend(uId, friendId);
            IList <Friend> list   = ModelConvertUtil <Friend> .ConvertToModel(result);

            return(list[0]);
        }
Пример #7
0
        public User getUser(int uId)
        {
            DataTable    result = userDal.getUserById(uId);
            IList <User> list   = ModelConvertUtil <User> .ConvertToModel(result);

            return(list[0]);
        }
Пример #8
0
        public User getUser(string email)
        {
            DataTable    result = userDal.getUserByEmail(email);
            IList <User> list   = ModelConvertUtil <User> .ConvertToModel(result);

            return(list[0]);
        }