C# 클래스 Evbpc.Framework.Integrations.Google.ReCaptcha.Response

This class is used by the Validator to return a proper response to a reCAPTCHA validation request.
파일 보기 프로젝트 열기: EBrown8534/Framework 1 사용 예제들

공개 메소드들

메소드 설명
TryParseJson ( string jsonResponse, Response &result ) : bool

Parses a JSON string into the current Response.

보호된 메소드들

메소드 설명
ErrorsToEnum ( string errorCodes ) : Errors?

Converts a string-array of reCAPTCHA errors to an enum of ReCaptcha.Errors.

메소드 상세

ErrorsToEnum() 보호된 정적인 메소드

Converts a string-array of reCAPTCHA errors to an enum of ReCaptcha.Errors.
protected static ErrorsToEnum ( string errorCodes ) : Errors?
errorCodes string The errors to convert.
리턴 Errors?

TryParseJson() 공개 정적인 메소드

Parses a JSON string into the current Response.
public static TryParseJson ( string jsonResponse, Response &result ) : bool
jsonResponse string The JSON string to transform.
result Response The parsed result.
리턴 bool