C# 클래스 Akismet.NET.Validator

This class is responsible validating information against Akismet.
상속: IValidator
파일 보기 프로젝트 열기: Gutek/MovingScrewdriver 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_key String

공개 메소드들

메소드 설명
IsSpam ( Comment comment ) : System.Boolean

Check if the input comment is valid or not.

SubmitHam ( Comment comment ) : void

This call is intended for the marking of false positives, things that were incorrectly marked as spam.

SubmitSpam ( Comment comment ) : void

This call is for submitting comments that weren't marked as spam but should've been.

Validator ( String key ) : System

Initialize class members based on the input parameters

VerifyKey ( String domain ) : System.Boolean

Check if the validator's key is valid or not.

보호된 메소드들

메소드 설명
ExtractResult ( String content ) : System.Boolean

Check the input data for valid content: "valid" string or "true" string.

PostRequest ( String url, NameValueCollection pars ) : String

Post parameters to the input url and return the response.

PreparePars ( Comment comment ) : NameValueCollection

Prepare request parameters based on the input comment.

PreparePars ( String key, String domain ) : NameValueCollection

Prepare request parameters based on the input parameters.

메소드 상세

ExtractResult() 보호된 메소드

Check the input data for valid content: "valid" string or "true" string.
protected ExtractResult ( String content ) : System.Boolean
content String The input content.
리턴 System.Boolean

IsSpam() 공개 메소드

Check if the input comment is valid or not.
public IsSpam ( Comment comment ) : System.Boolean
comment Comment The input comment to be checked.
리턴 System.Boolean

PostRequest() 보호된 메소드

Post parameters to the input url and return the response.
protected PostRequest ( String url, NameValueCollection pars ) : String
url String The input url (absolute).
pars System.Collections.Specialized.NameValueCollection The input parameters to send.
리턴 String

PreparePars() 보호된 메소드

Prepare request parameters based on the input comment.
protected PreparePars ( Comment comment ) : NameValueCollection
comment Comment The input comment.
리턴 System.Collections.Specialized.NameValueCollection

PreparePars() 보호된 메소드

Prepare request parameters based on the input parameters.
protected PreparePars ( String key, String domain ) : NameValueCollection
key String The input key.
domain String The input domain.
리턴 System.Collections.Specialized.NameValueCollection

SubmitHam() 공개 메소드

This call is intended for the marking of false positives, things that were incorrectly marked as spam.
public SubmitHam ( Comment comment ) : void
comment Comment The input comment to be sent as ham.
리턴 void

SubmitSpam() 공개 메소드

This call is for submitting comments that weren't marked as spam but should've been.
public SubmitSpam ( Comment comment ) : void
comment Comment The input comment to be sent as spam.
리턴 void

Validator() 공개 메소드

Initialize class members based on the input parameters
public Validator ( String key ) : System
key String The input Akismet key.
리턴 System

VerifyKey() 공개 메소드

Check if the validator's key is valid or not.
public VerifyKey ( String domain ) : System.Boolean
domain String
리턴 System.Boolean

프로퍼티 상세

m_key 보호되어 있는 프로퍼티

The Akismet key, if any.
protected String m_key
리턴 String