68 lines
2.1 KiB
Java
68 lines
2.1 KiB
Java
|
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.Fy, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class C0407Fy extends TypeAdapter implements HJa {
|
||
|
private PYE a;
|
||
|
private InterfaceC15734iCu c;
|
||
|
private Gson e;
|
||
|
|
||
|
public C0407Fy(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
||
|
this.e = 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;
|
||
|
}
|
||
|
C0408Fz c0408Fz = (C0408Fz) obj;
|
||
|
Gson gson = this.e;
|
||
|
PYE pye = this.a;
|
||
|
jsonWriter.beginObject();
|
||
|
if (c0408Fz != c0408Fz.d) {
|
||
|
pye.c(jsonWriter, 433);
|
||
|
String str = c0408Fz.d;
|
||
|
DTh.b(gson, String.class, str).write(jsonWriter, str);
|
||
|
}
|
||
|
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;
|
||
|
}
|
||
|
C0408Fz c0408Fz = new C0408Fz();
|
||
|
Gson gson = this.e;
|
||
|
InterfaceC15734iCu interfaceC15734iCu = this.c;
|
||
|
jsonReader.beginObject();
|
||
|
while (jsonReader.hasNext()) {
|
||
|
int e = interfaceC15734iCu.e(jsonReader);
|
||
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
||
|
if (e != 515) {
|
||
|
jsonReader.skipValue();
|
||
|
} else if (z) {
|
||
|
c0408Fz.d = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
c0408Fz.d = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
}
|
||
|
jsonReader.endObject();
|
||
|
return c0408Fz;
|
||
|
}
|
||
|
}
|