128 lines
4.5 KiB
Java
128 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;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class wGc extends TypeAdapter implements HJa {
|
||
|
private Gson a;
|
||
|
private InterfaceC15734iCu b;
|
||
|
private PYE d;
|
||
|
|
||
|
public wGc(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
||
|
this.a = gson;
|
||
|
this.b = interfaceC15734iCu;
|
||
|
this.d = pye;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.gson.TypeAdapter
|
||
|
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
|
||
|
if (obj == null) {
|
||
|
jsonWriter.nullValue();
|
||
|
return;
|
||
|
}
|
||
|
hAo hao = (hAo) obj;
|
||
|
Gson gson = this.a;
|
||
|
PYE pye = this.d;
|
||
|
jsonWriter.beginObject();
|
||
|
if (hao != hao.a) {
|
||
|
pye.c(jsonWriter, 511);
|
||
|
String str = hao.a;
|
||
|
DTh.b(gson, String.class, str).write(jsonWriter, str);
|
||
|
}
|
||
|
if (hao != hao.d) {
|
||
|
pye.c(jsonWriter, 528);
|
||
|
String str2 = hao.d;
|
||
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
||
|
}
|
||
|
if (hao != hao.j) {
|
||
|
pye.c(jsonWriter, 313);
|
||
|
String str3 = hao.j;
|
||
|
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
|
||
|
}
|
||
|
if (hao != hao.i) {
|
||
|
pye.c(jsonWriter, 134);
|
||
|
String str4 = hao.i;
|
||
|
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
|
||
|
}
|
||
|
if (hao != hao.g) {
|
||
|
pye.c(jsonWriter, 473);
|
||
|
String str5 = hao.g;
|
||
|
DTh.b(gson, String.class, str5).write(jsonWriter, str5);
|
||
|
}
|
||
|
if (hao != hao.f) {
|
||
|
pye.c(jsonWriter, 538);
|
||
|
String str6 = hao.f;
|
||
|
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
|
||
|
}
|
||
|
hao.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;
|
||
|
}
|
||
|
hAo hao = new hAo();
|
||
|
Gson gson = this.a;
|
||
|
InterfaceC15734iCu interfaceC15734iCu = this.b;
|
||
|
jsonReader.beginObject();
|
||
|
while (jsonReader.hasNext()) {
|
||
|
int e = interfaceC15734iCu.e(jsonReader);
|
||
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
||
|
if (e != 203) {
|
||
|
if (e != 221) {
|
||
|
if (e != 231) {
|
||
|
if (e != 307) {
|
||
|
if (e != 470) {
|
||
|
if (e != 646) {
|
||
|
hao.c(gson, jsonReader, e);
|
||
|
} else if (z) {
|
||
|
hao.g = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
hao.g = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
hao.d = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
hao.d = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
hao.j = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
hao.j = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
hao.a = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
hao.a = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
hao.f = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
hao.f = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
hao.i = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
hao.i = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
}
|
||
|
jsonReader.endObject();
|
||
|
return hao;
|
||
|
}
|
||
|
}
|