Ejemplo n.º 1
0
        /// <summary>
        /// Blocks the user specified as the authenticating user. Destroys a friendship to the blocked user if it exists.
        /// </summary>
        /// <param name="tokens">The tokens.</param>
        /// <param name="screenName">The user's screen name.</param>
        /// <param name="options">The options.</param>
        /// <returns>
        /// The blocked user in the requested format when successful.
        /// </returns>
        public static TwitterResponse <TwitterUser> Create(OAuthTokens tokens, string screenName, OptionalProperties options)
        {
            Commands.CreateBlockCommand command = new Commands.CreateBlockCommand(tokens, screenName, -1, options);

            return(Core.CommandPerformer.PerformAction(command));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Blocks the user specified as the authenticating user. Destroys a friendship to the blocked user if it exists.
        /// </summary>
        /// <param name="tokens">The tokens.</param>
        /// <param name="screenName">The user's screen name.</param>
        /// <param name="options">The options.</param>
        /// <returns>
        /// The blocked user in the requested format when successful.
        /// </returns>
        public static TwitterResponse<TwitterUser> Create(OAuthTokens tokens, string screenName, OptionalProperties options)
        {
            Commands.CreateBlockCommand command = new Commands.CreateBlockCommand(tokens, screenName, -1, options);

            return Core.CommandPerformer<TwitterUser>.PerformAction(command);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Blocks the user specified as the authenticating user. Destroys a friendship to the blocked user if it exists.
        /// </summary>
        /// <param name="tokens">The tokens.</param>
        /// <param name="userId">The user id.</param>
        /// <param name="options">The options.</param>
        /// <returns>
        /// The blocked user in the requested format when successful.
        /// </returns>
        public static TwitterResponse <TwitterUser> Create(OAuthTokens tokens, decimal userId, OptionalProperties options)
        {
            Commands.CreateBlockCommand command = new Commands.CreateBlockCommand(tokens, string.Empty, userId, options);

            return(Core.CommandPerformer.PerformAction(command));
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Blocks the user specified as the authenticating user. Destroys a friendship to the blocked user if it exists.
        /// </summary>
        /// <param name="tokens">The tokens.</param>
        /// <param name="userId">The user id.</param>
        /// <param name="options">The options.</param>
        /// <returns>
        /// The blocked user in the requested format when successful.
        /// </returns>
        public static TwitterResponse<TwitterUser> Create(OAuthTokens tokens, decimal userId, OptionalProperties options)
        {
            Commands.CreateBlockCommand command = new Commands.CreateBlockCommand(tokens, string.Empty, userId, options);

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