what-the-bank/sources/o/C6700caP.java

129 lines
4.7 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import org.bouncycastle.crypto.tls.CipherSuite;
/* renamed from: o.caP, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C6700caP extends TypeAdapter implements HJa {
private InterfaceC15734iCu a;
private Gson c;
private PYE d;
public C6700caP(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.c = gson;
this.a = interfaceC15734iCu;
this.d = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
return;
}
KEo kEo = (KEo) obj;
Gson gson = this.c;
PYE pye = this.d;
jsonWriter.beginObject();
if (kEo != kEo.c) {
pye.c(jsonWriter, 253);
String str = kEo.c;
DTh.b(gson, String.class, str).write(jsonWriter, str);
}
if (kEo != kEo.e) {
pye.c(jsonWriter, 79);
String str2 = kEo.e;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
}
if (kEo != kEo.d) {
pye.c(jsonWriter, 7);
String str3 = kEo.d;
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
}
if (kEo != kEo.a) {
pye.c(jsonWriter, CipherSuite.TLS_RSA_PSK_WITH_NULL_SHA256);
String str4 = kEo.a;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
}
if (kEo != kEo.b) {
pye.c(jsonWriter, CipherSuite.TLS_PSK_WITH_AES_128_GCM_SHA256);
String str5 = kEo.b;
DTh.b(gson, String.class, str5).write(jsonWriter, str5);
}
if (kEo != kEo.h) {
pye.c(jsonWriter, 460);
Boolean bool = kEo.h;
DTh.b(gson, Boolean.class, bool).write(jsonWriter, bool);
}
jsonWriter.endObject();
}
@Override // com.google.gson.TypeAdapter
/* renamed from: read */
public final Object read2(JsonReader jsonReader) throws IOException {
if (jsonReader.peek() == JsonToken.NULL) {
jsonReader.skipValue();
return null;
}
KEo kEo = new KEo();
Gson gson = this.c;
InterfaceC15734iCu interfaceC15734iCu = this.a;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 0) {
if (e != 197) {
if (e != 210) {
if (e != 250) {
if (e != 485) {
if (e != 643) {
jsonReader.skipValue();
} else if (z) {
kEo.h = (Boolean) gson.getAdapter(Boolean.class).read2(jsonReader);
} else {
kEo.h = null;
jsonReader.nextNull();
}
} else if (z) {
kEo.a = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
kEo.a = null;
jsonReader.nextNull();
}
} else if (z) {
kEo.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
kEo.c = null;
jsonReader.nextNull();
}
} else if (z) {
kEo.b = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
kEo.b = null;
jsonReader.nextNull();
}
} else if (z) {
kEo.e = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
kEo.e = null;
jsonReader.nextNull();
}
} else if (z) {
kEo.d = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
kEo.d = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return kEo;
}
}