From 1a7451b872d2725b0fe16a788f3f665e70c2c10b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20=C5=BBydek?= Date: Tue, 27 Feb 2024 14:57:35 +0800 Subject: [PATCH] feat: update `originCountry` field to the `vpn` signal --- .../java/com/fingerprint/model/VpnResult.java | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/fingerprint/model/VpnResult.java b/src/main/java/com/fingerprint/model/VpnResult.java index 8f78bae..fcba0f1 100644 --- a/src/main/java/com/fingerprint/model/VpnResult.java +++ b/src/main/java/com/fingerprint/model/VpnResult.java @@ -35,6 +35,7 @@ @JsonPropertyOrder({ VpnResult.JSON_PROPERTY_RESULT, VpnResult.JSON_PROPERTY_ORIGIN_TIMEZONE, + VpnResult.JSON_PROPERTY_ORIGIN_COUNTRY, VpnResult.JSON_PROPERTY_METHODS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") @@ -45,6 +46,9 @@ public class VpnResult { public static final String JSON_PROPERTY_ORIGIN_TIMEZONE = "originTimezone"; private String originTimezone; + public static final String JSON_PROPERTY_ORIGIN_COUNTRY = "originCountry"; + private String originCountry; + public static final String JSON_PROPERTY_METHODS = "methods"; private VpnResultMethods methods; @@ -103,6 +107,32 @@ public void setOriginTimezone(String originTimezone) { } + public VpnResult originCountry(String originCountry) { + this.originCountry = originCountry; + return this; + } + + /** + * Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). + * @return originCountry + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "unknown", value = "Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown).") + @JsonProperty(JSON_PROPERTY_ORIGIN_COUNTRY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getOriginCountry() { + return originCountry; + } + + + @JsonProperty(JSON_PROPERTY_ORIGIN_COUNTRY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOriginCountry(String originCountry) { + this.originCountry = originCountry; + } + + public VpnResult methods(VpnResultMethods methods) { this.methods = methods; return this; @@ -143,12 +173,13 @@ public boolean equals(Object o) { VpnResult vpnResult = (VpnResult) o; return Objects.equals(this.result, vpnResult.result) && Objects.equals(this.originTimezone, vpnResult.originTimezone) && + Objects.equals(this.originCountry, vpnResult.originCountry) && Objects.equals(this.methods, vpnResult.methods); } @Override public int hashCode() { - return Objects.hash(result, originTimezone, methods); + return Objects.hash(result, originTimezone, originCountry, methods); } @Override @@ -157,6 +188,7 @@ public String toString() { sb.append("class VpnResult {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append(" originTimezone: ").append(toIndentedString(originTimezone)).append("\n"); + sb.append(" originCountry: ").append(toIndentedString(originCountry)).append("\n"); sb.append(" methods: ").append(toIndentedString(methods)).append("\n"); sb.append("}"); return sb.toString();