230 lines
7.8 KiB
Java
230 lines
7.8 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 org.bouncycastle.crypto.tls.CipherSuite;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class JZQ extends TypeAdapter implements HJa {
|
|
private PYE b;
|
|
private Gson c;
|
|
private InterfaceC15734iCu e;
|
|
|
|
public JZQ(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
|
this.c = 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;
|
|
}
|
|
AQm aQm = (AQm) obj;
|
|
Gson gson = this.c;
|
|
PYE pye = this.b;
|
|
jsonWriter.beginObject();
|
|
if (aQm != aQm.d) {
|
|
pye.c(jsonWriter, 102);
|
|
Double d = aQm.d;
|
|
DTh.b(gson, Double.class, d).write(jsonWriter, d);
|
|
}
|
|
if (aQm != aQm.c) {
|
|
pye.c(jsonWriter, 506);
|
|
String str = aQm.c;
|
|
DTh.b(gson, String.class, str).write(jsonWriter, str);
|
|
}
|
|
if (aQm != aQm.e) {
|
|
pye.c(jsonWriter, 676);
|
|
String str2 = aQm.e;
|
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
|
}
|
|
if (aQm != aQm.a) {
|
|
pye.c(jsonWriter, 22);
|
|
String str3 = aQm.a;
|
|
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
|
|
}
|
|
if (aQm != aQm.b) {
|
|
pye.c(jsonWriter, 322);
|
|
String str4 = aQm.b;
|
|
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
|
|
}
|
|
if (aQm != aQm.i) {
|
|
pye.c(jsonWriter, 79);
|
|
String str5 = aQm.i;
|
|
DTh.b(gson, String.class, str5).write(jsonWriter, str5);
|
|
}
|
|
if (aQm != aQm.g) {
|
|
pye.c(jsonWriter, 297);
|
|
String str6 = aQm.g;
|
|
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
|
|
}
|
|
if (aQm != aQm.j) {
|
|
pye.c(jsonWriter, 585);
|
|
String str7 = aQm.j;
|
|
DTh.b(gson, String.class, str7).write(jsonWriter, str7);
|
|
}
|
|
if (aQm != aQm.f) {
|
|
pye.c(jsonWriter, 15);
|
|
String str8 = aQm.f;
|
|
DTh.b(gson, String.class, str8).write(jsonWriter, str8);
|
|
}
|
|
if (aQm != aQm.h) {
|
|
pye.c(jsonWriter, 346);
|
|
String str9 = aQm.h;
|
|
DTh.b(gson, String.class, str9).write(jsonWriter, str9);
|
|
}
|
|
if (aQm != aQm.m) {
|
|
pye.c(jsonWriter, 355);
|
|
String str10 = aQm.m;
|
|
DTh.b(gson, String.class, str10).write(jsonWriter, str10);
|
|
}
|
|
if (aQm != aQm.l) {
|
|
pye.c(jsonWriter, 222);
|
|
String str11 = aQm.l;
|
|
DTh.b(gson, String.class, str11).write(jsonWriter, str11);
|
|
}
|
|
if (aQm != aQm.n) {
|
|
pye.c(jsonWriter, 495);
|
|
String str12 = aQm.n;
|
|
DTh.b(gson, String.class, str12).write(jsonWriter, str12);
|
|
}
|
|
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;
|
|
}
|
|
AQm aQm = new AQm();
|
|
Gson gson = this.c;
|
|
InterfaceC15734iCu interfaceC15734iCu = this.e;
|
|
jsonReader.beginObject();
|
|
while (jsonReader.hasNext()) {
|
|
int e = interfaceC15734iCu.e(jsonReader);
|
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
|
switch (e) {
|
|
case 39:
|
|
if (!z) {
|
|
aQm.l = null;
|
|
break;
|
|
} else {
|
|
aQm.l = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case CipherSuite.TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256 /* 197 */:
|
|
if (!z) {
|
|
aQm.i = null;
|
|
break;
|
|
} else {
|
|
aQm.i = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 199:
|
|
if (!z) {
|
|
aQm.n = null;
|
|
break;
|
|
} else {
|
|
aQm.n = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 227:
|
|
if (!z) {
|
|
aQm.d = null;
|
|
break;
|
|
} else {
|
|
aQm.d = (Double) gson.getAdapter(Double.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 313:
|
|
if (!z) {
|
|
aQm.a = null;
|
|
break;
|
|
} else {
|
|
aQm.a = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 330:
|
|
if (!z) {
|
|
aQm.c = null;
|
|
break;
|
|
} else {
|
|
aQm.c = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 362:
|
|
if (!z) {
|
|
aQm.b = null;
|
|
break;
|
|
} else {
|
|
aQm.b = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 430:
|
|
if (!z) {
|
|
aQm.e = null;
|
|
break;
|
|
} else {
|
|
aQm.e = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 438:
|
|
if (!z) {
|
|
aQm.f = null;
|
|
break;
|
|
} else {
|
|
aQm.f = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 487:
|
|
if (!z) {
|
|
aQm.j = null;
|
|
break;
|
|
} else {
|
|
aQm.j = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 528:
|
|
if (!z) {
|
|
aQm.g = null;
|
|
break;
|
|
} else {
|
|
aQm.g = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 651:
|
|
if (!z) {
|
|
aQm.h = null;
|
|
break;
|
|
} else {
|
|
aQm.h = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 653:
|
|
if (!z) {
|
|
aQm.m = null;
|
|
break;
|
|
} else {
|
|
aQm.m = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
default:
|
|
jsonReader.skipValue();
|
|
continue;
|
|
}
|
|
jsonReader.nextNull();
|
|
}
|
|
jsonReader.endObject();
|
|
return aQm;
|
|
}
|
|
}
|