@drozdik.m/recaptcha
Version:
Intuitive and easy way to use Recaptcha
34 lines (33 loc) • 887 B
JavaScript
exports.__esModule = true;
var RecaptchaV2Args = /** @class */ (function () {
/**
* Recaptcha arguments
* @param id Captchas ID
* @param sitekey Captchas sitekey
*/
function RecaptchaV2Args(id, sitekey, validated) {
this.id = id;
this.sitekey = sitekey;
this.validated = validated;
}
/**
* Returns captchas ID
* */
RecaptchaV2Args.prototype.Id = function () {
return this.id;
};
/**
* Returns captchas sitekey
* */
RecaptchaV2Args.prototype.Sitekey = function () {
return this.sitekey;
};
/**
* Returns true if the captcha is validated, else false
* */
RecaptchaV2Args.prototype.Validated = function () {
return this.validated;
};
return RecaptchaV2Args;
}());
exports.RecaptchaV2Args = RecaptchaV2Args;