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

67 lines
2.0 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.Tv, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1017Tv extends TypeAdapter implements HJa {
private Gson a;
private PYE b;
private InterfaceC15734iCu d;
public C1017Tv(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.a = gson;
this.d = 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;
}
TL tl = (TL) obj;
Gson gson = this.a;
PYE pye = this.b;
jsonWriter.beginObject();
Boolean bool = tl.a;
pye.c(jsonWriter, 643);
Boolean bool2 = tl.a;
DTh.b(gson, Boolean.class, bool2).write(jsonWriter, bool2);
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;
}
TL tl = new TL();
Gson gson = this.a;
InterfaceC15734iCu interfaceC15734iCu = this.d;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 644) {
jsonReader.skipValue();
} else if (z) {
tl.a = (Boolean) gson.getAdapter(Boolean.class).read2(jsonReader);
} else {
tl.a = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return tl;
}
}