示例#1
0
        public List <Message> GetConversationWithUser(int userId)
        {
            return(Operation(() =>
            {
                CheckIsUserAuthenticated();
                CheckDoesUserExist(userId);

                if (serverManager.DoesFriendExist(LoggedUser.Id, userId))
                {
                    return serverManager.GetConversation(LoggedUser.Id, userId).ToList();
                }

                return null;
            }));
        }