From 91a235d32f7e35e6a20ecf86e97c995525fb910f Mon Sep 17 00:00:00 2001 From: Joonas Griesinger Date: Sat, 29 Feb 2020 16:12:02 +0200 Subject: [PATCH] Added V3 response properties to the ValidationResponse model. Those will be always null for V2 validation requests. --- src/ReCaptcha/Models/ValidationResponse.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ReCaptcha/Models/ValidationResponse.cs b/src/ReCaptcha/Models/ValidationResponse.cs index 1f3bccd..fcc2312 100644 --- a/src/ReCaptcha/Models/ValidationResponse.cs +++ b/src/ReCaptcha/Models/ValidationResponse.cs @@ -17,6 +17,18 @@ public class ValidationResponse [JsonProperty(PropertyName = "success")] public bool Success { get; set; } + /// + /// The score for this request (0.0 - 1.0). Only used with reCAPTCHA V3. + /// + [JsonProperty(PropertyName = "score")] + public double? Score { get; set; } = null; + + /// + /// The action name for this request (important to verify). Only used with reCAPTCHA V3. + /// + [JsonProperty(PropertyName = "action")] + public string? Action { get; set; } = null; + /// /// Timestamp of the challenge load. ///