예제 #1
0
        public Dictionary <int, VkWall> GetWallsForFriendsInUserGraph(List <VkUser> listGroupMembers)
        {
            var userWallDictionary = new Dictionary <int, VkWall>();

            foreach (var groupMember in listGroupMembers)
            {
                foreach (var friend in groupMember.FriendsList)
                {
                    var friendWall = new VkWall();

                    if (!userWallDictionary.ContainsKey(friend.Id) && friendWall.GetTopPosts(friend, 10))
                    {
                        userWallDictionary.Add(friend.Id, friendWall);
                    }
                }
            }
            return(userWallDictionary);
        }