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

91 lines
2.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;
/* loaded from: classes.dex */
public final class EYJ extends TypeAdapter implements HJa {
private PYE a;
private Gson b;
private InterfaceC15734iCu c;
public EYJ(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.b = gson;
this.c = 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;
}
Sxy sxy = (Sxy) obj;
Gson gson = this.b;
PYE pye = this.a;
jsonWriter.beginObject();
if (sxy != sxy.c) {
pye.c(jsonWriter, 239);
String str = sxy.c;
DTh.b(gson, String.class, str).write(jsonWriter, str);
}
if (sxy != sxy.e) {
pye.c(jsonWriter, 235);
String str2 = sxy.e;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
}
if (sxy != sxy.a) {
pye.c(jsonWriter, 89);
String str3 = sxy.a;
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
}
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;
}
Sxy sxy = new Sxy();
Gson gson = this.b;
InterfaceC15734iCu interfaceC15734iCu = this.c;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 165) {
if (e != 315) {
if (e != 611) {
jsonReader.skipValue();
} else if (z) {
sxy.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
sxy.c = null;
jsonReader.nextNull();
}
} else if (z) {
sxy.e = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
sxy.e = null;
jsonReader.nextNull();
}
} else if (z) {
sxy.a = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
sxy.a = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return sxy;
}
}