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

100 lines
3.3 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 o.Aer;
/* loaded from: classes.dex */
public final class lRa extends TypeAdapter implements HJa {
private InterfaceC15734iCu a;
private Gson c;
private PYE d;
public lRa(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.c = gson;
this.a = interfaceC15734iCu;
this.d = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
return;
}
Aer.IeS ieS = (Aer.IeS) obj;
Gson gson = this.c;
PYE pye = this.d;
jsonWriter.beginObject();
String str = ieS.c;
pye.c(jsonWriter, 560);
String str2 = ieS.c;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
String str3 = ieS.a;
pye.c(jsonWriter, 251);
String str4 = ieS.a;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
String str5 = ieS.d;
pye.c(jsonWriter, 656);
String str6 = ieS.d;
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
String str7 = ieS.e;
pye.c(jsonWriter, 415);
String str8 = ieS.e;
DTh.b(gson, String.class, str8).write(jsonWriter, str8);
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;
}
Aer.IeS ieS = new Aer.IeS();
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 != 50) {
if (e != 198) {
if (e != 277) {
if (e != 378) {
jsonReader.skipValue();
} else if (z) {
ieS.e = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
ieS.e = null;
jsonReader.nextNull();
}
} else if (z) {
ieS.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
ieS.c = null;
jsonReader.nextNull();
}
} else if (z) {
ieS.a = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
ieS.a = null;
jsonReader.nextNull();
}
} else if (z) {
ieS.d = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
ieS.d = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return ieS;
}
}