Beispiel #1
0
        /// <summary>
        /// This method get the list of Following Users IDs
        /// </summary>
        /// <returns></returns>
        public static List <long> getFollowingIds()
        {
            List <long> auxIds = new List <long>();

            foreach (var user in Jarvis.getFollowingUsers())
            {
                auxIds.Add(user.Id);
            }
            return(auxIds);
        }
Beispiel #2
0
        /// <summary>
        /// This method return a String with de list of followers
        /// </summary>
        /// <returns></returns>
        public static string getFollowingString()
        {
            StringBuilder aux = new StringBuilder();

            Jarvis.getFollowingUsers();
            aux.Append("FOLLOWING\n");
            foreach (var follower in Jarvis.auxUserList)
            {
                aux.Append("NAME: " + follower.Name + " ID: " + follower.Id + " FOLLOWERS: " + follower.FollowersCount);
                aux.AppendLine("\n");
            }
            // Retornamos la colección.
            return(aux.ToString());
        }