142 lines
5.8 KiB
Java
142 lines
5.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 YnV extends TypeAdapter implements HJa {
|
|
private PYE a;
|
|
private Gson c;
|
|
private InterfaceC15734iCu d;
|
|
|
|
public YnV(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
|
this.c = gson;
|
|
this.d = interfaceC15734iCu;
|
|
this.a = pye;
|
|
}
|
|
|
|
@Override // com.google.gson.TypeAdapter
|
|
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
|
|
if (obj == null) {
|
|
jsonWriter.nullValue();
|
|
return;
|
|
}
|
|
C16329nXS c16329nXS = (C16329nXS) obj;
|
|
Gson gson = this.c;
|
|
PYE pye = this.a;
|
|
jsonWriter.beginObject();
|
|
String str = c16329nXS.e;
|
|
pye.c(jsonWriter, 610);
|
|
String str2 = c16329nXS.e;
|
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
|
String str3 = c16329nXS.c;
|
|
pye.c(jsonWriter, 392);
|
|
String str4 = c16329nXS.c;
|
|
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
|
|
String str5 = c16329nXS.d;
|
|
pye.c(jsonWriter, 410);
|
|
String str6 = c16329nXS.d;
|
|
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
|
|
String str7 = c16329nXS.b;
|
|
pye.c(jsonWriter, 535);
|
|
String str8 = c16329nXS.b;
|
|
DTh.b(gson, String.class, str8).write(jsonWriter, str8);
|
|
pye.c(jsonWriter, 356);
|
|
Class cls = Integer.TYPE;
|
|
Integer valueOf = Integer.valueOf(c16329nXS.a);
|
|
DTh.b(gson, cls, valueOf).write(jsonWriter, valueOf);
|
|
pye.c(jsonWriter, 81);
|
|
Class cls2 = Integer.TYPE;
|
|
Integer valueOf2 = Integer.valueOf(c16329nXS.j);
|
|
DTh.b(gson, cls2, valueOf2).write(jsonWriter, valueOf2);
|
|
String str9 = c16329nXS.g;
|
|
pye.c(jsonWriter, CipherSuite.TLS_DH_anon_WITH_AES_256_GCM_SHA384);
|
|
String str10 = c16329nXS.g;
|
|
DTh.b(gson, String.class, str10).write(jsonWriter, str10);
|
|
String str11 = c16329nXS.h;
|
|
pye.c(jsonWriter, 442);
|
|
String str12 = c16329nXS.h;
|
|
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;
|
|
}
|
|
C16329nXS c16329nXS = new C16329nXS();
|
|
Gson gson = this.c;
|
|
InterfaceC15734iCu interfaceC15734iCu = this.d;
|
|
jsonReader.beginObject();
|
|
while (jsonReader.hasNext()) {
|
|
int e = interfaceC15734iCu.e(jsonReader);
|
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
|
if (e != 170) {
|
|
if (e != 200) {
|
|
if (e != 531) {
|
|
if (e != 580) {
|
|
if (e != 612) {
|
|
if (e != 666) {
|
|
if (e != 592) {
|
|
if (e != 593) {
|
|
jsonReader.skipValue();
|
|
} else if (z) {
|
|
c16329nXS.b = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
c16329nXS.b = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
c16329nXS.a = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue();
|
|
} else {
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
c16329nXS.e = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
c16329nXS.e = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
c16329nXS.g = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
c16329nXS.g = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
c16329nXS.j = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue();
|
|
} else {
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
c16329nXS.c = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
c16329nXS.c = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
c16329nXS.h = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
c16329nXS.h = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
c16329nXS.d = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
c16329nXS.d = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
}
|
|
jsonReader.endObject();
|
|
return c16329nXS;
|
|
}
|
|
}
|