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;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class QQN extends TypeAdapter implements HJa {
|
||
|
private Gson a;
|
||
|
private PYE b;
|
||
|
private InterfaceC15734iCu e;
|
||
|
|
||
|
public QQN(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
||
|
this.a = gson;
|
||
|
this.e = 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;
|
||
|
}
|
||
|
idH idh = (idH) obj;
|
||
|
Gson gson = this.a;
|
||
|
PYE pye = this.b;
|
||
|
jsonWriter.beginObject();
|
||
|
if (idh != idh.d) {
|
||
|
pye.c(jsonWriter, 511);
|
||
|
String str = idh.d;
|
||
|
DTh.b(gson, String.class, str).write(jsonWriter, str);
|
||
|
}
|
||
|
if (idh != idh.a) {
|
||
|
pye.c(jsonWriter, 313);
|
||
|
String str2 = idh.a;
|
||
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
||
|
}
|
||
|
if (idh != idh.j) {
|
||
|
pye.c(jsonWriter, 378);
|
||
|
FHJ fhj = idh.j;
|
||
|
DTh.b(gson, FHJ.class, fhj).write(jsonWriter, fhj);
|
||
|
}
|
||
|
idh.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;
|
||
|
}
|
||
|
idH idh = new idH();
|
||
|
Gson gson = this.a;
|
||
|
InterfaceC15734iCu interfaceC15734iCu = this.e;
|
||
|
jsonReader.beginObject();
|
||
|
while (jsonReader.hasNext()) {
|
||
|
int e = interfaceC15734iCu.e(jsonReader);
|
||
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
||
|
if (e != 141) {
|
||
|
if (e != 231) {
|
||
|
if (e != 307) {
|
||
|
idh.c(gson, jsonReader, e);
|
||
|
} else if (z) {
|
||
|
idh.a = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
idh.a = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
idh.d = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
idh.d = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
idh.j = (FHJ) gson.getAdapter(FHJ.class).read2(jsonReader);
|
||
|
} else {
|
||
|
idh.j = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
}
|
||
|
jsonReader.endObject();
|
||
|
return idh;
|
||
|
}
|
||
|
}
|