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

99 lines
3.6 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;
/* renamed from: o.dob, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C9687dob extends TypeAdapter implements HJa {
private PYE c;
private InterfaceC15734iCu d;
private Gson e;
public C9687dob(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.e = gson;
this.d = interfaceC15734iCu;
this.c = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
return;
}
C9632dnU c9632dnU = (C9632dnU) obj;
Gson gson = this.e;
PYE pye = this.c;
jsonWriter.beginObject();
String str = c9632dnU.d;
pye.c(jsonWriter, 268);
String str2 = c9632dnU.d;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
pye.c(jsonWriter, 227);
Class cls = Integer.TYPE;
Integer valueOf = Integer.valueOf(c9632dnU.e);
DTh.b(gson, cls, valueOf).write(jsonWriter, valueOf);
pye.c(jsonWriter, 209);
Class cls2 = Boolean.TYPE;
Boolean valueOf2 = Boolean.valueOf(c9632dnU.a);
DTh.b(gson, cls2, valueOf2).write(jsonWriter, valueOf2);
String str3 = c9632dnU.c;
pye.c(jsonWriter, CipherSuite.TLS_DHE_PSK_WITH_AES_256_CBC_SHA384);
String str4 = c9632dnU.c;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
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;
}
C9632dnU c9632dnU = new C9632dnU();
Gson gson = this.e;
InterfaceC15734iCu interfaceC15734iCu = this.d;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 159) {
if (e != 226) {
if (e != 516) {
if (e != 518) {
jsonReader.skipValue();
} else if (z) {
c9632dnU.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c9632dnU.c = null;
jsonReader.nextNull();
}
} else if (z) {
c9632dnU.d = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c9632dnU.d = null;
jsonReader.nextNull();
}
} else if (z) {
c9632dnU.a = ((Boolean) gson.getAdapter(Boolean.class).read2(jsonReader)).booleanValue();
} else {
jsonReader.nextNull();
}
} else if (z) {
c9632dnU.e = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue();
} else {
jsonReader.nextNull();
}
}
jsonReader.endObject();
return c9632dnU;
}
}