Akismet.NET.Validator.IsSpam C# (CSharp) Method

IsSpam() public method

Check if the input comment is valid or not.
public IsSpam ( Comment comment ) : System.Boolean
comment Comment The input comment to be checked.
return System.Boolean
        public Boolean IsSpam(Comment comment)
        {
            // prepare pars for the request
            NameValueCollection pars = PreparePars(comment);
            if (null != pars)
            {
                // extract result from the request
                return ExtractResult(PostRequest(String.Format("http://{0}.rest.akismet.com/1.1/comment-check", m_key), pars));
            }

            // return no spam
            return false;
        }