Exemple #1
0
        /// <summary>
        /// List all mentioning tweets in a colection.
        /// </summary>
        /// <returns>String</returns>
        public static string getMentionsString()
        {
            StringBuilder aux = new StringBuilder();

            foreach (var item in Jarvis.getMentions())
            {
                aux.Append("\nAUTOR:" + item.Author.ScreenName + "\nTEXT: " + item.Text);
            }
            return(aux.ToString());
        }
Exemple #2
0
        /// <summary>
        /// Like all mentioning tweets.
        /// </summary>
        /// <returns>int Count of likes</returns>
        public static int autoLikeMentions()
        {
            int count = 0;

            // Recorremos la colecion de Menciones
            foreach (var tweet in Jarvis.getMentions())
            {
                // En caso de que el Tweet en cuestión no esté Likeado, lo likeamos.
                if (tweet.IsFavorited == false)
                {
                    mainService.FavoriteTweet(new FavoriteTweetOptions {
                        Id = tweet.Id
                    });
                    count++;
                }
            }

            Jarvis.likeCount += count;
            return(count);
        }