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

78 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;
/* renamed from: o.dog, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C9692dog extends TypeAdapter implements HJa {
private Gson a;
private InterfaceC15734iCu b;
private PYE e;
public C9692dog(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.a = gson;
this.b = interfaceC15734iCu;
this.e = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
return;
}
C9695doj c9695doj = (C9695doj) obj;
Gson gson = this.a;
PYE pye = this.e;
jsonWriter.beginObject();
String str = c9695doj.c;
pye.c(jsonWriter, 268);
String str2 = c9695doj.c;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
String str3 = c9695doj.d;
pye.c(jsonWriter, 551);
String str4 = c9695doj.d;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
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;
}
C9695doj c9695doj = new C9695doj();
Gson gson = this.a;
InterfaceC15734iCu interfaceC15734iCu = this.b;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 121) {
if (e != 516) {
jsonReader.skipValue();
} else if (z) {
c9695doj.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c9695doj.c = null;
jsonReader.nextNull();
}
} else if (z) {
c9695doj.d = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c9695doj.d = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return c9695doj;
}
}