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

53 lines
1.6 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 OBI extends TypeAdapter implements HJa {
private InterfaceC15734iCu a;
private PYE b;
private Gson c;
public OBI(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.c = gson;
this.a = 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;
}
Gson gson = this.c;
PYE pye = this.b;
jsonWriter.beginObject();
((C16562pOe) obj).d(gson, jsonWriter, pye);
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;
}
C16562pOe c16562pOe = new C16562pOe();
Gson gson = this.c;
InterfaceC15734iCu interfaceC15734iCu = this.a;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
c16562pOe.a(gson, jsonReader, interfaceC15734iCu.e(jsonReader));
}
jsonReader.endObject();
return c16562pOe;
}
}