discord-jadx/app/src/main/java/com/hcaptcha/sdk/HCaptchaConfig.java

401 lines
12 KiB
Java

package com.hcaptcha.sdk;
import java.io.Serializable;
import java.util.Locale;
import java.util.Objects;
public class HCaptchaConfig implements Serializable {
private String apiEndpoint;
private String assethost;
private String endpoint;
private String imghost;
private Boolean loading;
private String locale;
private String reportapi;
private String rqdata;
private Boolean sentry;
private String siteKey;
private HCaptchaSize size;
private HCaptchaTheme theme;
public static class a {
public String a;
/* renamed from: b reason: collision with root package name */
public boolean f3101b;
public Boolean c;
public boolean d;
public Boolean e;
public String f;
public boolean g;
public String h;
public String i;
public String j;
public String k;
public String l;
public boolean m;
public String n;
public boolean o;
public HCaptchaSize p;
public boolean q;
public HCaptchaTheme r;
public String toString() {
StringBuilder R = b.d.b.a.a.R("HCaptchaConfig.HCaptchaConfigBuilder(siteKey=");
R.append(this.a);
R.append(", sentry$value=");
R.append(this.c);
R.append(", loading$value=");
R.append(this.e);
R.append(", rqdata=");
R.append(this.f);
R.append(", apiEndpoint$value=");
R.append(this.h);
R.append(", endpoint=");
R.append(this.i);
R.append(", reportapi=");
R.append(this.j);
R.append(", assethost=");
R.append(this.k);
R.append(", imghost=");
R.append(this.l);
R.append(", locale$value=");
R.append(this.n);
R.append(", size$value=");
R.append(this.p);
R.append(", theme$value=");
R.append(this.r);
R.append(")");
return R.toString();
}
}
private static String $default$apiEndpoint() {
return "https://hcaptcha.com/1/api.js";
}
private static Boolean $default$loading() {
return Boolean.TRUE;
}
private static String $default$locale() {
return Locale.getDefault().getLanguage();
}
private static Boolean $default$sentry() {
return Boolean.TRUE;
}
private static HCaptchaSize $default$size() {
return HCaptchaSize.INVISIBLE;
}
private static HCaptchaTheme $default$theme() {
return HCaptchaTheme.LIGHT;
}
public HCaptchaConfig(String str, Boolean bool, Boolean bool2, String str2, String str3, String str4, String str5, String str6, String str7, String str8, HCaptchaSize hCaptchaSize, HCaptchaTheme hCaptchaTheme) {
Objects.requireNonNull(str, "siteKey is marked non-null but is null");
this.siteKey = str;
this.sentry = bool;
this.loading = bool2;
this.rqdata = str2;
this.apiEndpoint = str3;
this.endpoint = str4;
this.reportapi = str5;
this.assethost = str6;
this.imghost = str7;
this.locale = str8;
this.size = hCaptchaSize;
this.theme = hCaptchaTheme;
}
public static /* synthetic */ Boolean access$000() {
return $default$sentry();
}
public static /* synthetic */ Boolean access$100() {
return $default$loading();
}
public static /* synthetic */ String access$200() {
return $default$apiEndpoint();
}
public static /* synthetic */ String access$300() {
return $default$locale();
}
public static /* synthetic */ HCaptchaSize access$400() {
return $default$size();
}
public static /* synthetic */ HCaptchaTheme access$500() {
return $default$theme();
}
public static a builder() {
return new a();
}
public boolean canEqual(Object obj) {
return obj instanceof HCaptchaConfig;
}
@Override // java.lang.Object
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof HCaptchaConfig)) {
return false;
}
HCaptchaConfig hCaptchaConfig = (HCaptchaConfig) obj;
if (!hCaptchaConfig.canEqual(this)) {
return false;
}
Boolean sentry = getSentry();
Boolean sentry2 = hCaptchaConfig.getSentry();
if (sentry != null ? !sentry.equals(sentry2) : sentry2 != null) {
return false;
}
Boolean loading = getLoading();
Boolean loading2 = hCaptchaConfig.getLoading();
if (loading != null ? !loading.equals(loading2) : loading2 != null) {
return false;
}
String siteKey = getSiteKey();
String siteKey2 = hCaptchaConfig.getSiteKey();
if (siteKey != null ? !siteKey.equals(siteKey2) : siteKey2 != null) {
return false;
}
String rqdata = getRqdata();
String rqdata2 = hCaptchaConfig.getRqdata();
if (rqdata != null ? !rqdata.equals(rqdata2) : rqdata2 != null) {
return false;
}
String apiEndpoint = getApiEndpoint();
String apiEndpoint2 = hCaptchaConfig.getApiEndpoint();
if (apiEndpoint != null ? !apiEndpoint.equals(apiEndpoint2) : apiEndpoint2 != null) {
return false;
}
String endpoint = getEndpoint();
String endpoint2 = hCaptchaConfig.getEndpoint();
if (endpoint != null ? !endpoint.equals(endpoint2) : endpoint2 != null) {
return false;
}
String reportapi = getReportapi();
String reportapi2 = hCaptchaConfig.getReportapi();
if (reportapi != null ? !reportapi.equals(reportapi2) : reportapi2 != null) {
return false;
}
String assethost = getAssethost();
String assethost2 = hCaptchaConfig.getAssethost();
if (assethost != null ? !assethost.equals(assethost2) : assethost2 != null) {
return false;
}
String imghost = getImghost();
String imghost2 = hCaptchaConfig.getImghost();
if (imghost != null ? !imghost.equals(imghost2) : imghost2 != null) {
return false;
}
String locale = getLocale();
String locale2 = hCaptchaConfig.getLocale();
if (locale != null ? !locale.equals(locale2) : locale2 != null) {
return false;
}
HCaptchaSize size = getSize();
HCaptchaSize size2 = hCaptchaConfig.getSize();
if (size != null ? !size.equals(size2) : size2 != null) {
return false;
}
HCaptchaTheme theme = getTheme();
HCaptchaTheme theme2 = hCaptchaConfig.getTheme();
return theme != null ? theme.equals(theme2) : theme2 == null;
}
public String getApiEndpoint() {
return this.apiEndpoint;
}
public String getAssethost() {
return this.assethost;
}
public String getEndpoint() {
return this.endpoint;
}
public String getImghost() {
return this.imghost;
}
public Boolean getLoading() {
return this.loading;
}
public String getLocale() {
return this.locale;
}
public String getReportapi() {
return this.reportapi;
}
public String getRqdata() {
return this.rqdata;
}
public Boolean getSentry() {
return this.sentry;
}
public String getSiteKey() {
return this.siteKey;
}
public HCaptchaSize getSize() {
return this.size;
}
public HCaptchaTheme getTheme() {
return this.theme;
}
@Override // java.lang.Object
public int hashCode() {
Boolean sentry = getSentry();
int i = 43;
int hashCode = sentry == null ? 43 : sentry.hashCode();
Boolean loading = getLoading();
int hashCode2 = ((hashCode + 59) * 59) + (loading == null ? 43 : loading.hashCode());
String siteKey = getSiteKey();
int hashCode3 = (hashCode2 * 59) + (siteKey == null ? 43 : siteKey.hashCode());
String rqdata = getRqdata();
int hashCode4 = (hashCode3 * 59) + (rqdata == null ? 43 : rqdata.hashCode());
String apiEndpoint = getApiEndpoint();
int hashCode5 = (hashCode4 * 59) + (apiEndpoint == null ? 43 : apiEndpoint.hashCode());
String endpoint = getEndpoint();
int hashCode6 = (hashCode5 * 59) + (endpoint == null ? 43 : endpoint.hashCode());
String reportapi = getReportapi();
int hashCode7 = (hashCode6 * 59) + (reportapi == null ? 43 : reportapi.hashCode());
String assethost = getAssethost();
int hashCode8 = (hashCode7 * 59) + (assethost == null ? 43 : assethost.hashCode());
String imghost = getImghost();
int hashCode9 = (hashCode8 * 59) + (imghost == null ? 43 : imghost.hashCode());
String locale = getLocale();
int hashCode10 = (hashCode9 * 59) + (locale == null ? 43 : locale.hashCode());
HCaptchaSize size = getSize();
int hashCode11 = (hashCode10 * 59) + (size == null ? 43 : size.hashCode());
HCaptchaTheme theme = getTheme();
int i2 = hashCode11 * 59;
if (theme != null) {
i = theme.hashCode();
}
return i2 + i;
}
public void setApiEndpoint(String str) {
this.apiEndpoint = str;
}
public void setAssethost(String str) {
this.assethost = str;
}
public void setEndpoint(String str) {
this.endpoint = str;
}
public void setImghost(String str) {
this.imghost = str;
}
public void setLoading(Boolean bool) {
this.loading = bool;
}
public void setLocale(String str) {
this.locale = str;
}
public void setReportapi(String str) {
this.reportapi = str;
}
public void setRqdata(String str) {
this.rqdata = str;
}
public void setSentry(Boolean bool) {
this.sentry = bool;
}
public void setSiteKey(String str) {
Objects.requireNonNull(str, "siteKey is marked non-null but is null");
this.siteKey = str;
}
public void setSize(HCaptchaSize hCaptchaSize) {
this.size = hCaptchaSize;
}
public void setTheme(HCaptchaTheme hCaptchaTheme) {
this.theme = hCaptchaTheme;
}
public a toBuilder() {
a aVar = new a();
String str = this.siteKey;
Objects.requireNonNull(str, "siteKey is marked non-null but is null");
aVar.a = str;
aVar.c = this.sentry;
aVar.f3101b = true;
aVar.e = this.loading;
aVar.d = true;
aVar.f = this.rqdata;
aVar.h = this.apiEndpoint;
aVar.g = true;
aVar.i = this.endpoint;
aVar.j = this.reportapi;
aVar.k = this.assethost;
aVar.l = this.imghost;
aVar.n = this.locale;
aVar.m = true;
aVar.p = this.size;
aVar.o = true;
aVar.r = this.theme;
aVar.q = true;
return aVar;
}
@Override // java.lang.Object
public String toString() {
StringBuilder R = b.d.b.a.a.R("HCaptchaConfig(siteKey=");
R.append(getSiteKey());
R.append(", sentry=");
R.append(getSentry());
R.append(", loading=");
R.append(getLoading());
R.append(", rqdata=");
R.append(getRqdata());
R.append(", apiEndpoint=");
R.append(getApiEndpoint());
R.append(", endpoint=");
R.append(getEndpoint());
R.append(", reportapi=");
R.append(getReportapi());
R.append(", assethost=");
R.append(getAssethost());
R.append(", imghost=");
R.append(getImghost());
R.append(", locale=");
R.append(getLocale());
R.append(", size=");
R.append(getSize());
R.append(", theme=");
R.append(getTheme());
R.append(")");
return R.toString();
}
}