78 lines
2.5 KiB
Java
78 lines
2.5 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.vhO, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class C17310vhO extends TypeAdapter implements HJa {
|
||
|
private Gson a;
|
||
|
private InterfaceC15734iCu c;
|
||
|
private PYE d;
|
||
|
|
||
|
public C17310vhO(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
||
|
this.a = gson;
|
||
|
this.c = interfaceC15734iCu;
|
||
|
this.d = pye;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.gson.TypeAdapter
|
||
|
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
|
||
|
if (obj == null) {
|
||
|
jsonWriter.nullValue();
|
||
|
return;
|
||
|
}
|
||
|
C15377goq c15377goq = (C15377goq) obj;
|
||
|
Gson gson = this.a;
|
||
|
PYE pye = this.d;
|
||
|
jsonWriter.beginObject();
|
||
|
String str = c15377goq.b;
|
||
|
pye.c(jsonWriter, 399);
|
||
|
String str2 = c15377goq.b;
|
||
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
||
|
String str3 = c15377goq.d;
|
||
|
pye.c(jsonWriter, 624);
|
||
|
String str4 = c15377goq.d;
|
||
|
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
|
||
|
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;
|
||
|
}
|
||
|
C15377goq c15377goq = new C15377goq();
|
||
|
Gson gson = this.a;
|
||
|
InterfaceC15734iCu interfaceC15734iCu = this.c;
|
||
|
jsonReader.beginObject();
|
||
|
while (jsonReader.hasNext()) {
|
||
|
int e = interfaceC15734iCu.e(jsonReader);
|
||
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
||
|
if (e != 223) {
|
||
|
if (e != 389) {
|
||
|
jsonReader.skipValue();
|
||
|
} else if (z) {
|
||
|
c15377goq.b = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
c15377goq.b = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
c15377goq.d = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
c15377goq.d = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
}
|
||
|
jsonReader.endObject();
|
||
|
return c15377goq;
|
||
|
}
|
||
|
}
|