Exemplo n.º 1
0
        public string FriendRequestSentNotifications()
        {
            string notification = "";

            NewsfeedDAL newsFeedDAL = new NewsfeedDAL();

            NotificationDAL notificationDAL = new NotificationDAL();

            List <Notification> NotificationsList = new List <Notification>();

            NotificationsList = notificationDAL.GetFriendRequestSentNotificationsForAMember(aMember);


            for (int i = 0; i < NotificationsList.Count; ++i)
            {
                #region FriendRequestSent
                //memberlist
                List <Member> MemberList = new List <Member>();
                Member        aFriend    = new Member(NotificationsList[i].MemberId);
                MemberList = notificationDAL.GetMemberDisplayName(aFriend);

                string FriendDisplayName = MemberList[0].DisplayName;


                notification += FriendDisplayName + " sent you a friend request\n\n";
                #endregion
            }
            return(notification);
        }
Exemplo n.º 2
0
        public int CountFriendRequestSentNotifications()
        {
            NewsfeedDAL newsFeedDAL = new NewsfeedDAL();

            NotificationDAL notificationDAL = new NotificationDAL();

            List <Notification> NotificationsList = new List <Notification>();

            NotificationsList = notificationDAL.GetFriendRequestSentNotificationsForAMember(aMember);

            return(NotificationsList.Count);
        }
Exemplo n.º 3
0
        public string FriendRequestSentNotifications()
        {
            string notification = "";

            NewsfeedDAL newsFeedDAL = new NewsfeedDAL();

            NotificationDAL notificationDAL = new NotificationDAL();

            List<Notification> NotificationsList = new List<Notification>();
            NotificationsList = notificationDAL.GetFriendRequestSentNotificationsForAMember(aMember);

            for (int i = 0; i < NotificationsList.Count; ++i)
            {
                #region FriendRequestSent
                //memberlist
                List<Member> MemberList = new List<Member>();
                Member aFriend = new Member(NotificationsList[i].MemberId);
                MemberList = notificationDAL.GetMemberDisplayName(aFriend);

                string FriendDisplayName = MemberList[0].DisplayName;

                notification += FriendDisplayName + " sent you a friend request\n\n";
                #endregion
            }
            return notification;
        }
Exemplo n.º 4
0
        public int CountFriendRequestSentNotifications()
        {
            NewsfeedDAL newsFeedDAL = new NewsfeedDAL();

            NotificationDAL notificationDAL = new NotificationDAL();

            List<Notification> NotificationsList = new List<Notification>();
            NotificationsList = notificationDAL.GetFriendRequestSentNotificationsForAMember(aMember);

            return NotificationsList.Count;
        }