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

79 lines
2.5 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 Zeo extends TypeAdapter implements HJa {
private Gson a;
private PYE d;
private InterfaceC15734iCu e;
public Zeo(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.a = gson;
this.e = 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;
}
vrx vrxVar = (vrx) obj;
Gson gson = this.a;
PYE pye = this.d;
jsonWriter.beginObject();
if (vrxVar != vrxVar.c) {
pye.c(jsonWriter, 569);
String str = vrxVar.c;
DTh.b(gson, String.class, str).write(jsonWriter, str);
}
if (vrxVar != vrxVar.e) {
pye.c(jsonWriter, 664);
String str2 = vrxVar.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;
}
vrx vrxVar = new vrx();
Gson gson = this.a;
InterfaceC15734iCu interfaceC15734iCu = this.e;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 464) {
if (e != 565) {
jsonReader.skipValue();
} else if (z) {
vrxVar.e = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
vrxVar.e = null;
jsonReader.nextNull();
}
} else if (z) {
vrxVar.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
vrxVar.c = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return vrxVar;
}
}