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

88 lines
2.8 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;
/* loaded from: classes.dex */
public final class gTF extends TypeAdapter implements HJa {
private PYE b;
private InterfaceC15734iCu c;
private Gson e;
public gTF(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.e = gson;
this.c = interfaceC15734iCu;
this.b = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
return;
}
cHC chc = (cHC) obj;
Gson gson = this.e;
PYE pye = this.b;
jsonWriter.beginObject();
String str = chc.a;
pye.c(jsonWriter, 439);
String str2 = chc.a;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
String str3 = chc.c;
pye.c(jsonWriter, 488);
String str4 = chc.c;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
String str5 = chc.b;
pye.c(jsonWriter, 448);
String str6 = chc.b;
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
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;
}
cHC chc = new cHC();
Gson gson = this.e;
InterfaceC15734iCu interfaceC15734iCu = this.c;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 151) {
if (e != 478) {
if (e != 499) {
jsonReader.skipValue();
} else if (z) {
chc.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
chc.c = null;
jsonReader.nextNull();
}
} else if (z) {
chc.a = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
chc.a = null;
jsonReader.nextNull();
}
} else if (z) {
chc.b = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
chc.b = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return chc;
}
}