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

116 lines
4.0 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 VKQ extends TypeAdapter implements HJa {
private PYE a;
private Gson b;
private InterfaceC15734iCu d;
public VKQ(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.b = gson;
this.d = interfaceC15734iCu;
this.a = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
return;
}
NVG nvg = (NVG) obj;
Gson gson = this.b;
PYE pye = this.a;
jsonWriter.beginObject();
if (nvg != nvg.e) {
pye.c(jsonWriter, 622);
Sxy sxy = nvg.e;
DTh.b(gson, Sxy.class, sxy).write(jsonWriter, sxy);
}
if (nvg != nvg.b) {
pye.c(jsonWriter, 151);
String str = nvg.b;
DTh.b(gson, String.class, str).write(jsonWriter, str);
}
if (nvg != nvg.a) {
pye.c(jsonWriter, CipherSuite.TLS_DHE_PSK_WITH_AES_128_GCM_SHA256);
String str2 = nvg.a;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
}
if (nvg != nvg.d) {
pye.c(jsonWriter, 302);
String str3 = nvg.d;
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
}
if (nvg != nvg.c) {
pye.c(jsonWriter, 552);
Sxy sxy2 = nvg.c;
DTh.b(gson, Sxy.class, sxy2).write(jsonWriter, sxy2);
}
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;
}
NVG nvg = new NVG();
Gson gson = this.b;
InterfaceC15734iCu interfaceC15734iCu = this.d;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 28) {
if (e != 64) {
if (e != 124) {
if (e != 350) {
if (e != 399) {
jsonReader.skipValue();
} else if (z) {
nvg.d = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
nvg.d = null;
jsonReader.nextNull();
}
} else if (z) {
nvg.e = (Sxy) gson.getAdapter(Sxy.class).read2(jsonReader);
} else {
nvg.e = null;
jsonReader.nextNull();
}
} else if (z) {
nvg.b = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
nvg.b = null;
jsonReader.nextNull();
}
} else if (z) {
nvg.a = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
nvg.a = null;
jsonReader.nextNull();
}
} else if (z) {
nvg.c = (Sxy) gson.getAdapter(Sxy.class).read2(jsonReader);
} else {
nvg.c = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return nvg;
}
}