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

44 lines
1.2 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.JsonWriter;
import java.io.IOException;
import o.LhO;
/* loaded from: classes.dex */
public final class MoI extends TypeAdapter implements HJa {
private Gson a;
private PYE b;
private InterfaceC15734iCu d;
public MoI(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();
} else {
this.b.d(jsonWriter, obj == LhO.LWm.FakeWhite ? 679 : obj == LhO.LWm.FakeBlack ? 469 : -1);
}
}
@Override // com.google.gson.TypeAdapter
/* renamed from: read */
public final Object read2(JsonReader jsonReader) throws IOException {
int a = this.d.a(jsonReader);
if (a == 122) {
return LhO.LWm.FakeWhite;
}
if (a != 424) {
return null;
}
return LhO.LWm.FakeBlack;
}
}