C# Class Evbpc.Framework.Integrations.Google.ReCaptcha.Response

This class is used by the Validator to return a proper response to a reCAPTCHA validation request.
Afficher le fichier Open project: EBrown8534/Framework Class Usage Examples

Méthodes publiques

Méthode Description
TryParseJson ( string jsonResponse, Response &result ) : bool

Parses a JSON string into the current Response.

Méthodes protégées

Méthode Description
ErrorsToEnum ( string errorCodes ) : Errors?

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

Method Details

ErrorsToEnum() protected static méthode

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.
Résultat Errors?

TryParseJson() public static méthode

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.
Résultat bool