what-the-bank/sources/o/C9689dod.java

106 lines
3.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 java.util.List;
import org.bouncycastle.crypto.tls.CipherSuite;
/* renamed from: o.dod, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C9689dod extends TypeAdapter implements HJa {
private InterfaceC15734iCu a;
private Gson c;
private PYE d;
public C9689dod(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.c = 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;
}
C9696dok c9696dok = (C9696dok) obj;
Gson gson = this.c;
PYE pye = this.d;
jsonWriter.beginObject();
Boolean bool = c9696dok.a;
pye.c(jsonWriter, 564);
Boolean bool2 = c9696dok.a;
DTh.b(gson, Boolean.class, bool2).write(jsonWriter, bool2);
Boolean bool3 = c9696dok.d;
pye.c(jsonWriter, 209);
Boolean bool4 = c9696dok.d;
DTh.b(gson, Boolean.class, bool4).write(jsonWriter, bool4);
if (c9696dok != c9696dok.b) {
pye.c(jsonWriter, 308);
C9694doi c9694doi = new C9694doi();
List<C9691dof> list = c9696dok.b;
DTh.a(gson, c9694doi, list).write(jsonWriter, list);
}
if (c9696dok != c9696dok.e) {
pye.c(jsonWriter, CipherSuite.TLS_DHE_PSK_WITH_AES_256_GCM_SHA384);
C9700doo c9700doo = new C9700doo();
List<C9695doj> list2 = c9696dok.e;
DTh.a(gson, c9700doo, list2).write(jsonWriter, list2);
}
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;
}
C9696dok c9696dok = new C9696dok();
Gson gson = this.c;
InterfaceC15734iCu interfaceC15734iCu = this.a;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 108) {
if (e != 143) {
if (e != 226) {
if (e != 254) {
jsonReader.skipValue();
} else if (z) {
c9696dok.b = (List) gson.getAdapter(new C9694doi()).read2(jsonReader);
} else {
c9696dok.b = null;
jsonReader.nextNull();
}
} else if (z) {
c9696dok.d = (Boolean) gson.getAdapter(Boolean.class).read2(jsonReader);
} else {
c9696dok.d = null;
jsonReader.nextNull();
}
} else if (z) {
c9696dok.e = (List) gson.getAdapter(new C9700doo()).read2(jsonReader);
} else {
c9696dok.e = null;
jsonReader.nextNull();
}
} else if (z) {
c9696dok.a = (Boolean) gson.getAdapter(Boolean.class).read2(jsonReader);
} else {
c9696dok.a = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return c9696dok;
}
}