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.
Datei anzeigen Open project: EBrown8534/Framework Class Usage Examples

Public Methods

Method Description
TryParseJson ( string jsonResponse, Response &result ) : bool

Parses a JSON string into the current Response.

Protected Methods

Method Description
ErrorsToEnum ( string errorCodes ) : Errors?

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

Method Details

ErrorsToEnum() protected static method

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.
return Errors?

TryParseJson() public static method

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.
return bool