Esempio n. 1
0
        /// <summary>
        /// Shows how to block a user
        /// </summary>
        /// <param name="twitterCtx">TwitterContext</param>
        private static void CreateBlock(TwitterContext twitterCtx)
        {
            Console.Write("User Screen Name to Block: ");
            string userName = Console.ReadLine();

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

            if (user == null) return;

            Console.WriteLine("User Name: " + user.Name);
        }
Esempio n. 2
0
        /// <summary>
        /// Shows how to block a user
        /// </summary>
        /// <param name="twitterCtx">TwitterContext</param>
        private static void CreateBlock(TwitterContext twitterCtx)
        {
            var user = twitterCtx.CreateBlock("JoeMayo");

            if (user == null) return;

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