151 lines
5.6 KiB
Java
151 lines
5.6 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;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class vFA extends TypeAdapter implements HJa {
|
|
private Gson a;
|
|
private PYE c;
|
|
private InterfaceC15734iCu d;
|
|
|
|
public vFA(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;
|
|
}
|
|
GIr gIr = (GIr) obj;
|
|
Gson gson = this.a;
|
|
PYE pye = this.c;
|
|
jsonWriter.beginObject();
|
|
if (gIr != gIr.c) {
|
|
pye.c(jsonWriter, 263);
|
|
String str = gIr.c;
|
|
DTh.b(gson, String.class, str).write(jsonWriter, str);
|
|
}
|
|
if (gIr != gIr.b) {
|
|
pye.c(jsonWriter, 239);
|
|
String str2 = gIr.b;
|
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
|
}
|
|
if (gIr != gIr.a) {
|
|
pye.c(jsonWriter, 507);
|
|
String str3 = gIr.a;
|
|
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
|
|
}
|
|
if (gIr != gIr.d) {
|
|
pye.c(jsonWriter, 235);
|
|
String str4 = gIr.d;
|
|
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
|
|
}
|
|
if (gIr != gIr.e) {
|
|
pye.c(jsonWriter, 99);
|
|
String str5 = gIr.e;
|
|
DTh.b(gson, String.class, str5).write(jsonWriter, str5);
|
|
}
|
|
if (gIr != gIr.i) {
|
|
pye.c(jsonWriter, 89);
|
|
String str6 = gIr.i;
|
|
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
|
|
}
|
|
if (gIr != gIr.f) {
|
|
pye.c(jsonWriter, 394);
|
|
String str7 = gIr.f;
|
|
DTh.b(gson, String.class, str7).write(jsonWriter, str7);
|
|
}
|
|
if (gIr != gIr.h) {
|
|
pye.c(jsonWriter, 420);
|
|
String str8 = gIr.h;
|
|
DTh.b(gson, String.class, str8).write(jsonWriter, str8);
|
|
}
|
|
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;
|
|
}
|
|
GIr gIr = new GIr();
|
|
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 != 42) {
|
|
if (e != 165) {
|
|
if (e != 201) {
|
|
if (e != 315) {
|
|
if (e != 380) {
|
|
if (e != 390) {
|
|
if (e != 611) {
|
|
if (e != 619) {
|
|
jsonReader.skipValue();
|
|
} else if (z) {
|
|
gIr.a = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
gIr.a = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
gIr.b = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
gIr.b = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
gIr.c = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
gIr.c = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
gIr.e = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
gIr.e = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
gIr.d = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
gIr.d = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
gIr.h = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
gIr.h = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
gIr.i = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
gIr.i = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
gIr.f = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
gIr.f = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
}
|
|
jsonReader.endObject();
|
|
return gIr;
|
|
}
|
|
}
|