예제 #1
0
        /// <summary>
        /// Blocks the user and reports them for spam/abuse.
        /// </summary>
        /// <param name="tokens">The tokens.</param>
        /// <param name="screenName">The user's screen name.</param>
        /// <param name="options">The options.</param>
        /// <returns>The user details.</returns>
        public static TwitterResponse<TwitterUser> ReportUser(OAuthTokens tokens, string screenName, OptionalProperties options)
        {
            Commands.ReportSpamCommand command = new Commands.ReportSpamCommand(tokens, 0, screenName, options);

            return Core.CommandPerformer.PerformAction(command);
        }
예제 #2
0
        /// <summary>
        /// Blocks the user and reports them for spam/abuse.
        /// </summary>
        /// <param name="tokens">The tokens.</param>
        /// <param name="screenName">The user's screen name.</param>
        /// <param name="options">The options.</param>
        /// <returns>The user details.</returns>
        public static TwitterResponse <TwitterUser> ReportUser(OAuthTokens tokens, string screenName, OptionalProperties options)
        {
            Commands.ReportSpamCommand command = new Commands.ReportSpamCommand(tokens, 0, screenName, options);

            return(Core.CommandPerformer.PerformAction(command));
        }
예제 #3
0
        /// <summary>
        /// Blocks the user and reports them for spam/abuse.
        /// </summary>
        /// <param name="tokens">The tokens.</param>
        /// <param name="userId">The user id.</param>
        /// <param name="options">The options.</param>
        /// <returns>The user details.</returns>
        public static TwitterResponse<TwitterUser> ReportUser(OAuthTokens tokens, decimal userId, OptionalProperties options)
        {
            Commands.ReportSpamCommand command = new Commands.ReportSpamCommand(tokens, userId, string.Empty, options);

            return Core.CommandPerformer.PerformAction(command);
        }
예제 #4
0
        /// <summary>
        /// Blocks the user and reports them for spam/abuse.
        /// </summary>
        /// <param name="tokens">The tokens.</param>
        /// <param name="userId">The user id.</param>
        /// <param name="options">The options.</param>
        /// <returns>The user details.</returns>
        public static TwitterResponse <TwitterUser> ReportUser(OAuthTokens tokens, decimal userId, OptionalProperties options)
        {
            Commands.ReportSpamCommand command = new Commands.ReportSpamCommand(tokens, userId, string.Empty, options);

            return(Core.CommandPerformer.PerformAction(command));
        }