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

128 lines
4.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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;
/* renamed from: o.jwl, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C15963jwl extends TypeAdapter implements HJa {
private Gson a;
private PYE d;
private InterfaceC15734iCu e;
public C15963jwl(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.a = gson;
this.e = 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;
}
VKy vKy = (VKy) obj;
Gson gson = this.a;
PYE pye = this.d;
jsonWriter.beginObject();
if (vKy != vKy.e) {
pye.c(jsonWriter, 102);
Double d = vKy.e;
DTh.b(gson, Double.class, d).write(jsonWriter, d);
}
if (vKy != vKy.a) {
pye.c(jsonWriter, 568);
String str = vKy.a;
DTh.b(gson, String.class, str).write(jsonWriter, str);
}
if (vKy != vKy.c) {
pye.c(jsonWriter, 675);
String str2 = vKy.c;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
}
if (vKy != vKy.b) {
pye.c(jsonWriter, 14);
String str3 = vKy.b;
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
}
if (vKy != vKy.d) {
pye.c(jsonWriter, 407);
String str4 = vKy.d;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
}
if (vKy != vKy.j) {
pye.c(jsonWriter, 222);
String str5 = vKy.j;
DTh.b(gson, String.class, str5).write(jsonWriter, str5);
}
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;
}
VKy vKy = new VKy();
Gson gson = this.a;
InterfaceC15734iCu interfaceC15734iCu = this.e;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 39) {
if (e != 51) {
if (e != 227) {
if (e != 318) {
if (e != 524) {
if (e != 690) {
jsonReader.skipValue();
} else if (z) {
vKy.b = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
vKy.b = null;
jsonReader.nextNull();
}
} else if (z) {
vKy.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
vKy.c = null;
jsonReader.nextNull();
}
} else if (z) {
vKy.a = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
vKy.a = null;
jsonReader.nextNull();
}
} else if (z) {
vKy.e = (Double) gson.getAdapter(Double.class).read2(jsonReader);
} else {
vKy.e = null;
jsonReader.nextNull();
}
} else if (z) {
vKy.d = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
vKy.d = null;
jsonReader.nextNull();
}
} else if (z) {
vKy.j = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
vKy.j = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return vKy;
}
}