211 lines
7.4 KiB
Java
211 lines
7.4 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 java.util.List;
|
|
import org.bouncycastle.crypto.tls.CipherSuite;
|
|
|
|
/* renamed from: o.tYC, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C17048tYC extends TypeAdapter implements HJa {
|
|
private InterfaceC15734iCu a;
|
|
private Gson b;
|
|
private PYE d;
|
|
|
|
public C17048tYC(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
|
this.b = gson;
|
|
this.a = 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;
|
|
}
|
|
YMu yMu = (YMu) obj;
|
|
Gson gson = this.b;
|
|
PYE pye = this.d;
|
|
jsonWriter.beginObject();
|
|
String str = yMu.a;
|
|
pye.c(jsonWriter, 404);
|
|
String str2 = yMu.a;
|
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
|
if (yMu != yMu.b) {
|
|
pye.c(jsonWriter, CipherSuite.TLS_DH_RSA_WITH_AES_256_GCM_SHA384);
|
|
SKF skf = new SKF();
|
|
List<C16374nnr> list = yMu.b;
|
|
DTh.a(gson, skf, list).write(jsonWriter, list);
|
|
}
|
|
String str3 = yMu.d;
|
|
pye.c(jsonWriter, 266);
|
|
String str4 = yMu.d;
|
|
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
|
|
String str5 = yMu.c;
|
|
pye.c(jsonWriter, 50);
|
|
String str6 = yMu.c;
|
|
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
|
|
Integer num = yMu.e;
|
|
pye.c(jsonWriter, 534);
|
|
Integer num2 = yMu.e;
|
|
DTh.b(gson, Integer.class, num2).write(jsonWriter, num2);
|
|
Integer num3 = yMu.i;
|
|
pye.c(jsonWriter, 69);
|
|
Integer num4 = yMu.i;
|
|
DTh.b(gson, Integer.class, num4).write(jsonWriter, num4);
|
|
String str7 = yMu.f;
|
|
pye.c(jsonWriter, CipherSuite.TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256);
|
|
String str8 = yMu.f;
|
|
DTh.b(gson, String.class, str8).write(jsonWriter, str8);
|
|
String str9 = yMu.j;
|
|
pye.c(jsonWriter, 494);
|
|
String str10 = yMu.j;
|
|
DTh.b(gson, String.class, str10).write(jsonWriter, str10);
|
|
String str11 = yMu.h;
|
|
pye.c(jsonWriter, 431);
|
|
String str12 = yMu.h;
|
|
DTh.b(gson, String.class, str12).write(jsonWriter, str12);
|
|
if (yMu != yMu.g) {
|
|
pye.c(jsonWriter, 611);
|
|
kAh kah = new kAh();
|
|
List<Rgo> list2 = yMu.g;
|
|
DTh.a(gson, kah, list2).write(jsonWriter, list2);
|
|
}
|
|
String str13 = yMu.k;
|
|
pye.c(jsonWriter, 416);
|
|
String str14 = yMu.k;
|
|
DTh.b(gson, String.class, str14).write(jsonWriter, str14);
|
|
String str15 = yMu.f8461o;
|
|
pye.c(jsonWriter, 142);
|
|
String str16 = yMu.f8461o;
|
|
DTh.b(gson, String.class, str16).write(jsonWriter, str16);
|
|
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;
|
|
}
|
|
YMu yMu = new YMu();
|
|
Gson gson = this.b;
|
|
InterfaceC15734iCu interfaceC15734iCu = this.a;
|
|
jsonReader.beginObject();
|
|
while (jsonReader.hasNext()) {
|
|
int e = interfaceC15734iCu.e(jsonReader);
|
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
|
switch (e) {
|
|
case 12:
|
|
if (!z) {
|
|
yMu.d = null;
|
|
break;
|
|
} else {
|
|
yMu.d = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 25:
|
|
if (!z) {
|
|
yMu.h = null;
|
|
break;
|
|
} else {
|
|
yMu.h = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 86:
|
|
if (!z) {
|
|
yMu.b = null;
|
|
break;
|
|
} else {
|
|
yMu.b = (List) gson.getAdapter(new SKF()).read2(jsonReader);
|
|
break;
|
|
}
|
|
case CipherSuite.TLS_RSA_PSK_WITH_AES_256_GCM_SHA384 /* 173 */:
|
|
if (!z) {
|
|
yMu.f = null;
|
|
break;
|
|
} else {
|
|
yMu.f = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 327:
|
|
if (!z) {
|
|
yMu.j = null;
|
|
break;
|
|
} else {
|
|
yMu.j = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 349:
|
|
if (!z) {
|
|
yMu.i = null;
|
|
break;
|
|
} else {
|
|
yMu.i = (Integer) gson.getAdapter(Integer.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 408:
|
|
if (!z) {
|
|
yMu.c = null;
|
|
break;
|
|
} else {
|
|
yMu.c = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 441:
|
|
if (!z) {
|
|
yMu.g = null;
|
|
break;
|
|
} else {
|
|
yMu.g = (List) gson.getAdapter(new kAh()).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 560:
|
|
if (!z) {
|
|
yMu.e = null;
|
|
break;
|
|
} else {
|
|
yMu.e = (Integer) gson.getAdapter(Integer.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 585:
|
|
if (!z) {
|
|
yMu.f8461o = null;
|
|
break;
|
|
} else {
|
|
yMu.f8461o = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 649:
|
|
if (!z) {
|
|
yMu.k = null;
|
|
break;
|
|
} else {
|
|
yMu.k = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
case 675:
|
|
if (!z) {
|
|
yMu.a = null;
|
|
break;
|
|
} else {
|
|
yMu.a = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
break;
|
|
}
|
|
default:
|
|
jsonReader.skipValue();
|
|
continue;
|
|
}
|
|
jsonReader.nextNull();
|
|
}
|
|
jsonReader.endObject();
|
|
return yMu;
|
|
}
|
|
}
|