예제 #1
0
        private void ignoreRequest(User user)
        {
            string message = "Group " + groupID.ToString() + " has ignored your request!";

            user.removeInvite(groupID);
            groupRequests.Remove(user);
        }
예제 #2
0
        private void acceptRequest(User user)
        {
            members.Add(user);
            user.removeInvite(groupID);
            groupRequests.Remove(user);
            string message = "Group " + groupID + " has accepdet your request! \tWelcome!";

            user.addGroup(groupID);
            user.addNews(message);
        }