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

81 lines
2.6 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;
/* loaded from: classes.dex */
public final class hqR extends TypeAdapter implements HJa {
private InterfaceC15734iCu c;
private Gson d;
private PYE e;
public hqR(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.d = gson;
this.c = interfaceC15734iCu;
this.e = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
return;
}
AeX aeX = (AeX) obj;
Gson gson = this.d;
PYE pye = this.e;
jsonWriter.beginObject();
if (aeX != aeX.d) {
pye.c(jsonWriter, CipherSuite.TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256);
String str = aeX.d;
DTh.b(gson, String.class, str).write(jsonWriter, str);
}
if (aeX != aeX.a) {
pye.c(jsonWriter, CipherSuite.TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA);
JZY jzy = aeX.a;
DTh.b(gson, JZY.class, jzy).write(jsonWriter, jzy);
}
aeX.d(gson, jsonWriter, pye);
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;
}
AeX aeX = new AeX();
Gson gson = this.d;
InterfaceC15734iCu interfaceC15734iCu = this.c;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 279) {
if (e != 418) {
aeX.c(gson, jsonReader, e);
} else if (z) {
aeX.d = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
aeX.d = null;
jsonReader.nextNull();
}
} else if (z) {
aeX.a = (JZY) gson.getAdapter(JZY.class).read2(jsonReader);
} else {
aeX.a = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return aeX;
}
}