102 lines
3.5 KiB
Java
102 lines
3.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.Tr, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C1012Tr extends TypeAdapter implements HJa {
|
|
private PYE a;
|
|
private InterfaceC15734iCu b;
|
|
private Gson e;
|
|
|
|
public C1012Tr(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
|
this.e = gson;
|
|
this.b = 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;
|
|
}
|
|
C0999Ti c0999Ti = (C0999Ti) obj;
|
|
Gson gson = this.e;
|
|
PYE pye = this.a;
|
|
jsonWriter.beginObject();
|
|
pye.c(jsonWriter, 19);
|
|
Class cls = Boolean.TYPE;
|
|
Boolean valueOf = Boolean.valueOf(c0999Ti.d);
|
|
DTh.b(gson, cls, valueOf).write(jsonWriter, valueOf);
|
|
if (c0999Ti != c0999Ti.a) {
|
|
pye.c(jsonWriter, 678);
|
|
String str = c0999Ti.a;
|
|
DTh.b(gson, String.class, str).write(jsonWriter, str);
|
|
}
|
|
if (c0999Ti != c0999Ti.c) {
|
|
pye.c(jsonWriter, 314);
|
|
String str2 = c0999Ti.c;
|
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
|
}
|
|
if (c0999Ti != c0999Ti.e) {
|
|
pye.c(jsonWriter, 433);
|
|
TK tk = c0999Ti.e;
|
|
DTh.b(gson, TK.class, tk).write(jsonWriter, tk);
|
|
}
|
|
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;
|
|
}
|
|
C0999Ti c0999Ti = new C0999Ti();
|
|
Gson gson = this.e;
|
|
InterfaceC15734iCu interfaceC15734iCu = this.b;
|
|
jsonReader.beginObject();
|
|
while (jsonReader.hasNext()) {
|
|
int e = interfaceC15734iCu.e(jsonReader);
|
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
|
if (e != 453) {
|
|
if (e != 515) {
|
|
if (e != 570) {
|
|
if (e != 650) {
|
|
jsonReader.skipValue();
|
|
} else if (z) {
|
|
c0999Ti.d = ((Boolean) gson.getAdapter(Boolean.class).read2(jsonReader)).booleanValue();
|
|
} else {
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
c0999Ti.c = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
c0999Ti.c = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
c0999Ti.e = (TK) gson.getAdapter(TK.class).read2(jsonReader);
|
|
} else {
|
|
c0999Ti.e = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
c0999Ti.a = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
c0999Ti.a = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
}
|
|
jsonReader.endObject();
|
|
return c0999Ti;
|
|
}
|
|
}
|