Exemplo n.º 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);
        }
Exemplo n.º 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));
        }
Exemplo n.º 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);
        }
Exemplo n.º 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));
        }