コード例 #1
0
        /// <summary>
        /// Unblocks the user specified as the authenticating user.
        /// </summary>
        /// <param name="tokens">The tokens.</param>
        /// <param name="screenName">The user's screen name.</param>
        /// <param name="options">The options.</param>
        /// <returns>
        /// The unblocked user in the requested format when successful.
        /// </returns>
        public static TwitterResponse <TwitterUser> Destroy(OAuthTokens tokens, string screenName, OptionalProperties options)
        {
            Commands.DestroyBlockCommand command = new Commands.DestroyBlockCommand(tokens, screenName, -1, options);

            return(Core.CommandPerformer.PerformAction(command));
        }
コード例 #2
0
ファイル: TwitterBlock.cs プロジェクト: smakhtin/Twitterizer
        /// <summary>
        /// Unblocks the user specified as the authenticating user.
        /// </summary>
        /// <param name="tokens">The tokens.</param>
        /// <param name="screenName">The user's screen name.</param>
        /// <param name="options">The options.</param>
        /// <returns>
        /// The unblocked user in the requested format when successful.
        /// </returns>
        public static TwitterResponse<TwitterUser> Destroy(OAuthTokens tokens, string screenName, OptionalProperties options)
        {
            Commands.DestroyBlockCommand command = new Commands.DestroyBlockCommand(tokens, screenName, -1, options);

            return Core.CommandPerformer<TwitterUser>.PerformAction(command);
        }
コード例 #3
0
        /// <summary>
        /// Unblocks the user specified as the authenticating user.
        /// </summary>
        /// <param name="tokens">The tokens.</param>
        /// <param name="userId">The user id.</param>
        /// <param name="options">The options.</param>
        /// <returns>
        /// The unblocked user in the requested format when successful.
        /// </returns>
        public static TwitterResponse <TwitterUser> Destroy(OAuthTokens tokens, decimal userId, OptionalProperties options)
        {
            Commands.DestroyBlockCommand command = new Commands.DestroyBlockCommand(tokens, string.Empty, userId, options);

            return(Core.CommandPerformer.PerformAction(command));
        }
コード例 #4
0
ファイル: TwitterBlock.cs プロジェクト: smakhtin/Twitterizer
        /// <summary>
        /// Unblocks the user specified as the authenticating user.
        /// </summary>
        /// <param name="tokens">The tokens.</param>
        /// <param name="userId">The user id.</param>
        /// <param name="options">The options.</param>
        /// <returns>
        /// The unblocked user in the requested format when successful.
        /// </returns>
        public static TwitterResponse<TwitterUser> Destroy(OAuthTokens tokens, decimal userId, OptionalProperties options)
        {
            Commands.DestroyBlockCommand command = new Commands.DestroyBlockCommand(tokens, string.Empty, userId, options);

            return Core.CommandPerformer<TwitterUser>.PerformAction(command);
        }