92 lines
2.9 KiB
Java
92 lines
2.9 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;
|
|
import o.Aer;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class IEO extends TypeAdapter implements HJa {
|
|
private PYE b;
|
|
private InterfaceC15734iCu d;
|
|
private Gson e;
|
|
|
|
public IEO(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
|
this.e = gson;
|
|
this.d = interfaceC15734iCu;
|
|
this.b = pye;
|
|
}
|
|
|
|
@Override // com.google.gson.TypeAdapter
|
|
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
|
|
if (obj == null) {
|
|
jsonWriter.nullValue();
|
|
return;
|
|
}
|
|
Aer aer = (Aer) obj;
|
|
Gson gson = this.e;
|
|
PYE pye = this.b;
|
|
jsonWriter.beginObject();
|
|
String str = aer.b;
|
|
pye.c(jsonWriter, 363);
|
|
String str2 = aer.b;
|
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
|
if (aer != aer.d) {
|
|
pye.c(jsonWriter, 303);
|
|
LSA lsa = new LSA();
|
|
List<Aer.IeS> list = aer.d;
|
|
DTh.a(gson, lsa, list).write(jsonWriter, list);
|
|
}
|
|
String str3 = aer.e;
|
|
pye.c(jsonWriter, 502);
|
|
String str4 = aer.e;
|
|
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;
|
|
}
|
|
Aer aer = new Aer();
|
|
Gson gson = this.e;
|
|
InterfaceC15734iCu interfaceC15734iCu = this.d;
|
|
jsonReader.beginObject();
|
|
while (jsonReader.hasNext()) {
|
|
int e = interfaceC15734iCu.e(jsonReader);
|
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
|
if (e != 246) {
|
|
if (e != 598) {
|
|
if (e != 691) {
|
|
jsonReader.skipValue();
|
|
} else if (z) {
|
|
aer.b = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
aer.b = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
aer.e = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
aer.e = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
aer.d = (List) gson.getAdapter(new LSA()).read2(jsonReader);
|
|
} else {
|
|
aer.d = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
}
|
|
jsonReader.endObject();
|
|
return aer;
|
|
}
|
|
}
|