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 o.C17686yrw; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes.dex */ public final class WTv extends TypeAdapter implements HJa { private PYE a; private Gson b; private InterfaceC15734iCu e; public WTv(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) { this.b = gson; this.e = 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; } C17686yrw.RVV rvv = (C17686yrw.RVV) obj; Gson gson = this.b; PYE pye = this.a; jsonWriter.beginObject(); String str = rvv.c; pye.c(jsonWriter, 93); String str2 = rvv.c; DTh.b(gson, String.class, str2).write(jsonWriter, str2); String str3 = rvv.d; pye.c(jsonWriter, 385); String str4 = rvv.d; DTh.b(gson, String.class, str4).write(jsonWriter, str4); String str5 = rvv.a; pye.c(jsonWriter, 79); String str6 = rvv.a; DTh.b(gson, String.class, str6).write(jsonWriter, str6); String str7 = rvv.e; pye.c(jsonWriter, CipherSuite.TLS_RSA_PSK_WITH_NULL_SHA256); String str8 = rvv.e; DTh.b(gson, String.class, str8).write(jsonWriter, str8); String str9 = rvv.b; pye.c(jsonWriter, CipherSuite.TLS_PSK_WITH_AES_128_GCM_SHA256); String str10 = rvv.b; DTh.b(gson, String.class, str10).write(jsonWriter, str10); String str11 = rvv.j; pye.c(jsonWriter, 579); String str12 = rvv.j; DTh.b(gson, String.class, str12).write(jsonWriter, str12); String str13 = rvv.f; pye.c(jsonWriter, 110); String str14 = rvv.f; DTh.b(gson, String.class, str14).write(jsonWriter, str14); String str15 = rvv.h; pye.c(jsonWriter, CipherSuite.TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA); String str16 = rvv.h; DTh.b(gson, String.class, str16).write(jsonWriter, str16); String str17 = rvv.g; pye.c(jsonWriter, 670); String str18 = rvv.g; DTh.b(gson, String.class, str18).write(jsonWriter, str18); 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; } C17686yrw.RVV rvv = new C17686yrw.RVV(); Gson gson = this.b; InterfaceC15734iCu interfaceC15734iCu = this.e; jsonReader.beginObject(); while (jsonReader.hasNext()) { int e = interfaceC15734iCu.e(jsonReader); boolean z = jsonReader.peek() != JsonToken.NULL; if (e != 59) { if (e != 68) { if (e != 188) { if (e != 197) { if (e != 210) { if (e != 394) { if (e != 485) { if (e != 502) { if (e != 514) { jsonReader.skipValue(); } else if (z) { rvv.h = (String) gson.getAdapter(String.class).read2(jsonReader); } else { rvv.h = null; jsonReader.nextNull(); } } else if (z) { rvv.d = (String) gson.getAdapter(String.class).read2(jsonReader); } else { rvv.d = null; jsonReader.nextNull(); } } else if (z) { rvv.e = (String) gson.getAdapter(String.class).read2(jsonReader); } else { rvv.e = null; jsonReader.nextNull(); } } else if (z) { rvv.f = (String) gson.getAdapter(String.class).read2(jsonReader); } else { rvv.f = null; jsonReader.nextNull(); } } else if (z) { rvv.b = (String) gson.getAdapter(String.class).read2(jsonReader); } else { rvv.b = null; jsonReader.nextNull(); } } else if (z) { rvv.a = (String) gson.getAdapter(String.class).read2(jsonReader); } else { rvv.a = null; jsonReader.nextNull(); } } else if (z) { rvv.c = (String) gson.getAdapter(String.class).read2(jsonReader); } else { rvv.c = null; jsonReader.nextNull(); } } else if (z) { rvv.j = (String) gson.getAdapter(String.class).read2(jsonReader); } else { rvv.j = null; jsonReader.nextNull(); } } else if (z) { rvv.g = (String) gson.getAdapter(String.class).read2(jsonReader); } else { rvv.g = null; jsonReader.nextNull(); } } jsonReader.endObject(); return rvv; } }