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

88 lines
2.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;
/* loaded from: classes.dex */
public final class aUT extends TypeAdapter implements HJa {
private Gson a;
private PYE c;
private InterfaceC15734iCu e;
public aUT(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.a = gson;
this.e = 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;
}
TLw tLw = (TLw) obj;
Gson gson = this.a;
PYE pye = this.c;
jsonWriter.beginObject();
String str = tLw.b;
pye.c(jsonWriter, 439);
String str2 = tLw.b;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
String str3 = tLw.e;
pye.c(jsonWriter, 488);
String str4 = tLw.e;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
String str5 = tLw.c;
pye.c(jsonWriter, 448);
String str6 = tLw.c;
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
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;
}
TLw tLw = new TLw();
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 != 151) {
if (e != 478) {
if (e != 499) {
jsonReader.skipValue();
} else if (z) {
tLw.e = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
tLw.e = null;
jsonReader.nextNull();
}
} else if (z) {
tLw.b = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
tLw.b = null;
jsonReader.nextNull();
}
} else if (z) {
tLw.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
tLw.c = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return tLw;
}
}