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

ExtractResult() protected method

Check the input data for valid content: "valid" string or "true" string.
protected ExtractResult ( String content ) : System.Boolean
content String The input content.
return System.Boolean
        protected virtual Boolean ExtractResult(String content)
        {
            // check the input parameters
            if (String.IsNullOrEmpty(content))
                return false;

            // check for valid content
            if (content.ToLower().Equals("valid") || content.ToLower().Equals("true"))
                return true;

            // return failure
            return false;
        }