245 lines
9.3 KiB
Java
245 lines
9.3 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 zlR extends TypeAdapter implements HJa {
|
|
private InterfaceC15734iCu b;
|
|
private Gson c;
|
|
private PYE e;
|
|
|
|
public zlR(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
|
this.c = gson;
|
|
this.b = interfaceC15734iCu;
|
|
this.e = pye;
|
|
}
|
|
|
|
@Override // com.google.gson.TypeAdapter
|
|
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
|
|
if (obj == null) {
|
|
jsonWriter.nullValue();
|
|
return;
|
|
}
|
|
C17104tuu c17104tuu = (C17104tuu) obj;
|
|
Gson gson = this.c;
|
|
PYE pye = this.e;
|
|
jsonWriter.beginObject();
|
|
pye.c(jsonWriter, 534);
|
|
Class cls = Integer.TYPE;
|
|
Integer valueOf = Integer.valueOf(c17104tuu.e);
|
|
DTh.b(gson, cls, valueOf).write(jsonWriter, valueOf);
|
|
if (c17104tuu != c17104tuu.b) {
|
|
pye.c(jsonWriter, 535);
|
|
String str = c17104tuu.b;
|
|
DTh.b(gson, String.class, str).write(jsonWriter, str);
|
|
}
|
|
pye.c(jsonWriter, 26);
|
|
Class cls2 = Long.TYPE;
|
|
Long valueOf2 = Long.valueOf(c17104tuu.a);
|
|
DTh.b(gson, cls2, valueOf2).write(jsonWriter, valueOf2);
|
|
pye.c(jsonWriter, 81);
|
|
Class cls3 = Integer.TYPE;
|
|
Integer valueOf3 = Integer.valueOf(c17104tuu.d);
|
|
DTh.b(gson, cls3, valueOf3).write(jsonWriter, valueOf3);
|
|
pye.c(jsonWriter, 350);
|
|
Class cls4 = Integer.TYPE;
|
|
Integer valueOf4 = Integer.valueOf(c17104tuu.c);
|
|
DTh.b(gson, cls4, valueOf4).write(jsonWriter, valueOf4);
|
|
pye.c(jsonWriter, 280);
|
|
Class cls5 = Integer.TYPE;
|
|
Integer valueOf5 = Integer.valueOf(c17104tuu.g);
|
|
DTh.b(gson, cls5, valueOf5).write(jsonWriter, valueOf5);
|
|
pye.c(jsonWriter, 66);
|
|
Class cls6 = Long.TYPE;
|
|
Long valueOf6 = Long.valueOf(c17104tuu.h);
|
|
DTh.b(gson, cls6, valueOf6).write(jsonWriter, valueOf6);
|
|
if (c17104tuu != c17104tuu.f) {
|
|
pye.c(jsonWriter, 606);
|
|
String str2 = c17104tuu.f;
|
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
|
}
|
|
if (c17104tuu != c17104tuu.j) {
|
|
pye.c(jsonWriter, 362);
|
|
String str3 = c17104tuu.j;
|
|
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
|
|
}
|
|
if (c17104tuu != c17104tuu.i) {
|
|
pye.c(jsonWriter, CipherSuite.TLS_PSK_WITH_AES_128_CBC_SHA);
|
|
String str4 = c17104tuu.i;
|
|
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
|
|
}
|
|
if (c17104tuu != c17104tuu.n) {
|
|
pye.c(jsonWriter, 691);
|
|
String str5 = c17104tuu.n;
|
|
DTh.b(gson, String.class, str5).write(jsonWriter, str5);
|
|
}
|
|
if (c17104tuu != c17104tuu.f9281o) {
|
|
pye.c(jsonWriter, 107);
|
|
String str6 = c17104tuu.f9281o;
|
|
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
|
|
}
|
|
if (c17104tuu != c17104tuu.k) {
|
|
pye.c(jsonWriter, CipherSuite.TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256);
|
|
C15999kNl c15999kNl = c17104tuu.k;
|
|
DTh.b(gson, C15999kNl.class, c15999kNl).write(jsonWriter, c15999kNl);
|
|
}
|
|
if (c17104tuu != c17104tuu.l) {
|
|
pye.c(jsonWriter, 358);
|
|
EnumC15824isw enumC15824isw = c17104tuu.l;
|
|
DTh.b(gson, EnumC15824isw.class, enumC15824isw).write(jsonWriter, enumC15824isw);
|
|
}
|
|
if (c17104tuu != c17104tuu.m) {
|
|
pye.c(jsonWriter, 311);
|
|
EnumC14464fth enumC14464fth = c17104tuu.m;
|
|
DTh.b(gson, EnumC14464fth.class, enumC14464fth).write(jsonWriter, enumC14464fth);
|
|
}
|
|
c17104tuu.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;
|
|
}
|
|
C17104tuu c17104tuu = new C17104tuu();
|
|
Gson gson = this.c;
|
|
InterfaceC15734iCu interfaceC15734iCu = this.b;
|
|
jsonReader.beginObject();
|
|
while (jsonReader.hasNext()) {
|
|
int e = interfaceC15734iCu.e(jsonReader);
|
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
|
switch (e) {
|
|
case 1:
|
|
if (!z) {
|
|
c17104tuu.l = null;
|
|
break;
|
|
} else {
|
|
c17104tuu.l = (EnumC15824isw) gson.getAdapter(EnumC15824isw.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 62:
|
|
if (!z) {
|
|
break;
|
|
} else {
|
|
c17104tuu.h = ((Long) gson.getAdapter(Long.class).read2(jsonReader)).longValue();
|
|
break;
|
|
}
|
|
case 75:
|
|
if (!z) {
|
|
c17104tuu.i = null;
|
|
break;
|
|
} else {
|
|
c17104tuu.i = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 100:
|
|
if (!z) {
|
|
break;
|
|
} else {
|
|
c17104tuu.a = ((Long) gson.getAdapter(Long.class).read2(jsonReader)).longValue();
|
|
break;
|
|
}
|
|
case 129:
|
|
if (!z) {
|
|
c17104tuu.m = null;
|
|
break;
|
|
} else {
|
|
c17104tuu.m = (EnumC14464fth) gson.getAdapter(EnumC14464fth.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case CipherSuite.TLS_DHE_PSK_WITH_AES_256_CBC_SHA /* 145 */:
|
|
if (!z) {
|
|
c17104tuu.f9281o = null;
|
|
break;
|
|
} else {
|
|
c17104tuu.f9281o = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case CipherSuite.TLS_RSA_PSK_WITH_AES_256_CBC_SHA384 /* 183 */:
|
|
if (!z) {
|
|
c17104tuu.f = null;
|
|
break;
|
|
} else {
|
|
c17104tuu.f = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 287:
|
|
if (!z) {
|
|
c17104tuu.j = null;
|
|
break;
|
|
} else {
|
|
c17104tuu.j = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 479:
|
|
if (!z) {
|
|
c17104tuu.k = null;
|
|
break;
|
|
} else {
|
|
c17104tuu.k = (C15999kNl) gson.getAdapter(C15999kNl.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 543:
|
|
if (!z) {
|
|
break;
|
|
} else {
|
|
c17104tuu.c = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue();
|
|
break;
|
|
}
|
|
case 560:
|
|
if (!z) {
|
|
break;
|
|
} else {
|
|
c17104tuu.e = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue();
|
|
break;
|
|
}
|
|
case 580:
|
|
if (!z) {
|
|
break;
|
|
} else {
|
|
c17104tuu.d = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue();
|
|
break;
|
|
}
|
|
case 589:
|
|
if (!z) {
|
|
c17104tuu.n = null;
|
|
break;
|
|
} else {
|
|
c17104tuu.n = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 593:
|
|
if (!z) {
|
|
c17104tuu.b = null;
|
|
break;
|
|
} else {
|
|
c17104tuu.b = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 630:
|
|
if (!z) {
|
|
break;
|
|
} else {
|
|
c17104tuu.g = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue();
|
|
break;
|
|
}
|
|
default:
|
|
c17104tuu.a(gson, jsonReader, e);
|
|
continue;
|
|
}
|
|
jsonReader.nextNull();
|
|
}
|
|
jsonReader.endObject();
|
|
return c17104tuu;
|
|
}
|
|
}
|