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

111 lines
3.9 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 Rff extends TypeAdapter implements HJa {
private InterfaceC15734iCu a;
private Gson c;
private PYE e;
public Rff(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.c = gson;
this.a = 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;
}
wVN wvn = (wVN) obj;
Gson gson = this.c;
PYE pye = this.e;
jsonWriter.beginObject();
String str = wvn.a;
pye.c(jsonWriter, 95);
String str2 = wvn.a;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
String str3 = wvn.b;
pye.c(jsonWriter, 539);
String str4 = wvn.b;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
String str5 = wvn.d;
pye.c(jsonWriter, 383);
String str6 = wvn.d;
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
String str7 = wvn.c;
pye.c(jsonWriter, CipherSuite.TLS_DHE_PSK_WITH_AES_128_CBC_SHA);
String str8 = wvn.c;
DTh.b(gson, String.class, str8).write(jsonWriter, str8);
String str9 = wvn.e;
pye.c(jsonWriter, 289);
String str10 = wvn.e;
DTh.b(gson, String.class, str10).write(jsonWriter, str10);
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;
}
wVN wvn = new wVN();
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 != 79) {
if (e != 278) {
if (e != 304) {
if (e != 492) {
if (e != 511) {
jsonReader.skipValue();
} else if (z) {
wvn.b = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
wvn.b = null;
jsonReader.nextNull();
}
} else if (z) {
wvn.d = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
wvn.d = null;
jsonReader.nextNull();
}
} else if (z) {
wvn.a = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
wvn.a = null;
jsonReader.nextNull();
}
} else if (z) {
wvn.e = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
wvn.e = null;
jsonReader.nextNull();
}
} else if (z) {
wvn.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
wvn.c = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return wvn;
}
}