示例#1
0
        public async Task FollowBackAndGreetingAsync(ICharacter character)
        {
            var followBackedUsers = twitterHelper.FollowBack();


            foreach (var user in followBackedUsers)
            {
                string replyMessage = character.GetGreetingMessage(user.ScreenName, user.Name);

                await twitterHelper.UpdateStatusAsync(replyMessage);

                await Task.Delay(100);
            }
        }
示例#2
0
        public void FollowBackTest()
        {
            var followUsers = twitterHelper.FollowBack();

            if (followUsers.Any())
            {
                foreach (var user in followUsers)
                {
                    Console.WriteLine(user.Id);
                    Console.WriteLine(user.Name);
                    Console.WriteLine(user.ScreenName);
                    Console.WriteLine();
                }
            }
            else
            {
                Console.WriteLine("Nothing Follows Users");
            }
        }