Exemplo n.º 1
0
        /// <summary>
        /// shows how to unblock a user
        /// </summary>
        /// <param name="twitterCtx"></param>
        private static void DestroyBlock(TwitterContext twitterCtx)
        {
            Console.Write("User Screen Name to Unblock: ");
            string userName = Console.ReadLine();

            var user = twitterCtx.DestroyBlock(0, userName, true);

            if (user == null) return;

            Console.WriteLine("User Name: " + user.Name);
        }
Exemplo n.º 2
0
        /// <summary>
        /// shows how to unblock a user
        /// </summary>
        /// <param name="twitterCtx"></param>
        private static void DestroyBlock(TwitterContext twitterCtx)
        {
            var user = twitterCtx.DestroyBlock("JoeMayo");

            if (user == null) return;

            Console.WriteLine("User Name: " + user.Name);
        }