88 lines
3.0 KiB
Java
88 lines
3.0 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.gsu, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class C15525gsu extends TypeAdapter implements HJa {
|
||
|
private Gson a;
|
||
|
private PYE c;
|
||
|
private InterfaceC15734iCu d;
|
||
|
|
||
|
public C15525gsu(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
||
|
this.a = gson;
|
||
|
this.d = interfaceC15734iCu;
|
||
|
this.c = pye;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.gson.TypeAdapter
|
||
|
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
|
||
|
if (obj == null) {
|
||
|
jsonWriter.nullValue();
|
||
|
return;
|
||
|
}
|
||
|
C10195dyG c10195dyG = (C10195dyG) obj;
|
||
|
Gson gson = this.a;
|
||
|
PYE pye = this.c;
|
||
|
jsonWriter.beginObject();
|
||
|
String str = c10195dyG.a;
|
||
|
pye.c(jsonWriter, 12);
|
||
|
String str2 = c10195dyG.a;
|
||
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
||
|
String str3 = c10195dyG.d;
|
||
|
pye.c(jsonWriter, 658);
|
||
|
String str4 = c10195dyG.d;
|
||
|
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
|
||
|
pye.c(jsonWriter, 496);
|
||
|
Class cls = Boolean.TYPE;
|
||
|
Boolean valueOf = Boolean.valueOf(c10195dyG.b);
|
||
|
DTh.b(gson, cls, valueOf).write(jsonWriter, valueOf);
|
||
|
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;
|
||
|
}
|
||
|
C10195dyG c10195dyG = new C10195dyG();
|
||
|
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 != 89) {
|
||
|
if (e != 117) {
|
||
|
if (e != 407) {
|
||
|
jsonReader.skipValue();
|
||
|
} else if (z) {
|
||
|
c10195dyG.b = ((Boolean) gson.getAdapter(Boolean.class).read2(jsonReader)).booleanValue();
|
||
|
} else {
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
c10195dyG.a = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
c10195dyG.a = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
c10195dyG.d = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
c10195dyG.d = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
}
|
||
|
jsonReader.endObject();
|
||
|
return c10195dyG;
|
||
|
}
|
||
|
}
|