126 lines
4.5 KiB
Java
126 lines
4.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;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class TfS extends TypeAdapter implements HJa {
|
||
|
private Gson b;
|
||
|
private InterfaceC15734iCu c;
|
||
|
private PYE e;
|
||
|
|
||
|
public TfS(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
||
|
this.b = gson;
|
||
|
this.c = interfaceC15734iCu;
|
||
|
this.e = pye;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.gson.TypeAdapter
|
||
|
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
|
||
|
if (obj == null) {
|
||
|
jsonWriter.nullValue();
|
||
|
return;
|
||
|
}
|
||
|
zhB zhb = (zhB) obj;
|
||
|
Gson gson = this.b;
|
||
|
PYE pye = this.e;
|
||
|
jsonWriter.beginObject();
|
||
|
pye.c(jsonWriter, 220);
|
||
|
Class cls = Integer.TYPE;
|
||
|
Integer valueOf = Integer.valueOf(zhb.a);
|
||
|
DTh.b(gson, cls, valueOf).write(jsonWriter, valueOf);
|
||
|
if (zhb != zhb.d) {
|
||
|
pye.c(jsonWriter, 537);
|
||
|
KaW kaW = new KaW();
|
||
|
List<qRQ> list = zhb.d;
|
||
|
DTh.a(gson, kaW, list).write(jsonWriter, list);
|
||
|
}
|
||
|
pye.c(jsonWriter, 42);
|
||
|
Class cls2 = Integer.TYPE;
|
||
|
Integer valueOf2 = Integer.valueOf(zhb.c);
|
||
|
DTh.b(gson, cls2, valueOf2).write(jsonWriter, valueOf2);
|
||
|
if (zhb != zhb.e) {
|
||
|
pye.c(jsonWriter, 206);
|
||
|
jee jeeVar = new jee();
|
||
|
List<C17104tuu> list2 = zhb.e;
|
||
|
DTh.a(gson, jeeVar, list2).write(jsonWriter, list2);
|
||
|
}
|
||
|
pye.c(jsonWriter, 503);
|
||
|
Class cls3 = Integer.TYPE;
|
||
|
Integer valueOf3 = Integer.valueOf(zhb.b);
|
||
|
DTh.b(gson, cls3, valueOf3).write(jsonWriter, valueOf3);
|
||
|
if (zhb != zhb.g) {
|
||
|
pye.c(jsonWriter, 375);
|
||
|
PeR peR = new PeR();
|
||
|
List<C17104tuu> list3 = zhb.g;
|
||
|
DTh.a(gson, peR, list3).write(jsonWriter, list3);
|
||
|
}
|
||
|
zhb.d(gson, jsonWriter, pye);
|
||
|
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;
|
||
|
}
|
||
|
zhB zhb = new zhB();
|
||
|
Gson gson = this.b;
|
||
|
InterfaceC15734iCu interfaceC15734iCu = this.c;
|
||
|
jsonReader.beginObject();
|
||
|
while (jsonReader.hasNext()) {
|
||
|
int e = interfaceC15734iCu.e(jsonReader);
|
||
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
||
|
if (e != 300) {
|
||
|
if (e != 312) {
|
||
|
if (e != 621) {
|
||
|
if (e != 659) {
|
||
|
if (e != 684) {
|
||
|
if (e != 692) {
|
||
|
zhb.a(gson, jsonReader, e);
|
||
|
} else if (z) {
|
||
|
zhb.e = (List) gson.getAdapter(new jee()).read2(jsonReader);
|
||
|
} else {
|
||
|
zhb.e = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
zhb.c = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue();
|
||
|
} else {
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
zhb.b = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue();
|
||
|
} else {
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
zhb.a = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue();
|
||
|
} else {
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
zhb.g = (List) gson.getAdapter(new PeR()).read2(jsonReader);
|
||
|
} else {
|
||
|
zhb.g = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
zhb.d = (List) gson.getAdapter(new KaW()).read2(jsonReader);
|
||
|
} else {
|
||
|
zhb.d = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
}
|
||
|
jsonReader.endObject();
|
||
|
return zhb;
|
||
|
}
|
||
|
}
|