Esempio n. 1
0
        public Profile GetNext()
        {
            if (!HasNext())
            {
                return(null);
            }

            String  friendEmail   = emails[currentPosition];
            Profile friendContact = contacts[currentPosition];

            if (friendContact == null)
            {
                friendContact = linkedIn.RequestContactInfoFromLinkedInAPI(friendEmail);
                contacts.Insert(currentPosition, friendContact);
            }
            currentPosition++;
            return(friendContact);
        }