예제 #1
0
        /// <summary>
        /// Checks for a block against the 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 blocked user in the requested format when successful.
        /// </returns>
        public static TwitterResponse <TwitterUser> Exists(OAuthTokens tokens, string screenName, OptionalProperties options)
        {
            Commands.ExistsBlockCommand command = new Commands.ExistsBlockCommand(tokens, screenName, -1, options);

            return(Core.CommandPerformer.PerformAction(command));
        }
예제 #2
0
        /// <summary>
        /// Checks for a block against the 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 blocked user in the requested format when successful.
        /// </returns>
        public static TwitterResponse<TwitterUser> Exists(OAuthTokens tokens, string screenName, OptionalProperties options)
        {
            Commands.ExistsBlockCommand command = new Commands.ExistsBlockCommand(tokens, screenName, -1, options);

            return Core.CommandPerformer<TwitterUser>.PerformAction(command);
        }
예제 #3
0
        /// <summary>
        /// Checks for a block against the 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 blocked user in the requested format when successful.
        /// </returns>
        public static TwitterResponse <TwitterUser> Exists(OAuthTokens tokens, decimal userId, OptionalProperties options)
        {
            Commands.ExistsBlockCommand command = new Commands.ExistsBlockCommand(tokens, string.Empty, userId, options);

            return(Core.CommandPerformer.PerformAction(command));
        }
예제 #4
0
        /// <summary>
        /// Checks for a block against the 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 blocked user in the requested format when successful.
        /// </returns>
        public static TwitterResponse<TwitterUser> Exists(OAuthTokens tokens, decimal userId, OptionalProperties options)
        {
            Commands.ExistsBlockCommand command = new Commands.ExistsBlockCommand(tokens, string.Empty, userId, options);

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