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

80 lines
2.5 KiB
Java
Raw Permalink 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 FWq extends TypeAdapter implements HJa {
private InterfaceC15734iCu b;
private Gson d;
private PYE e;
public FWq(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.d = gson;
this.b = 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;
}
CgF cgF = (CgF) obj;
Gson gson = this.d;
PYE pye = this.e;
jsonWriter.beginObject();
if (cgF != cgF.b) {
pye.c(jsonWriter, CipherSuite.TLS_PSK_WITH_AES_256_GCM_SHA384);
String str = cgF.b;
DTh.b(gson, String.class, str).write(jsonWriter, str);
}
if (cgF != cgF.e) {
pye.c(jsonWriter, 558);
String str2 = cgF.e;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
}
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;
}
CgF cgF = new CgF();
Gson gson = this.d;
InterfaceC15734iCu interfaceC15734iCu = this.b;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 95) {
if (e != 266) {
jsonReader.skipValue();
} else if (z) {
cgF.e = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
cgF.e = null;
jsonReader.nextNull();
}
} else if (z) {
cgF.b = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
cgF.b = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return cgF;
}
}