89 lines
2.9 KiB
Java
89 lines
2.9 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;
|
|
|
|
/* renamed from: o.uRM, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C17161uRM extends TypeAdapter implements HJa {
|
|
private InterfaceC15734iCu a;
|
|
private PYE c;
|
|
private Gson e;
|
|
|
|
public C17161uRM(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
|
this.e = gson;
|
|
this.a = 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;
|
|
}
|
|
hZR hzr = (hZR) obj;
|
|
Gson gson = this.e;
|
|
PYE pye = this.c;
|
|
jsonWriter.beginObject();
|
|
String str = hzr.e;
|
|
pye.c(jsonWriter, 545);
|
|
String str2 = hzr.e;
|
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
|
String str3 = hzr.c;
|
|
pye.c(jsonWriter, 29);
|
|
String str4 = hzr.c;
|
|
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
|
|
String str5 = hzr.a;
|
|
pye.c(jsonWriter, 359);
|
|
String str6 = hzr.a;
|
|
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;
|
|
}
|
|
hZR hzr = new hZR();
|
|
Gson gson = this.e;
|
|
InterfaceC15734iCu interfaceC15734iCu = this.a;
|
|
jsonReader.beginObject();
|
|
while (jsonReader.hasNext()) {
|
|
int e = interfaceC15734iCu.e(jsonReader);
|
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
|
if (e != 5) {
|
|
if (e != 33) {
|
|
if (e != 311) {
|
|
jsonReader.skipValue();
|
|
} else if (z) {
|
|
hzr.e = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
hzr.e = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
hzr.c = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
hzr.c = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
hzr.a = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
hzr.a = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
}
|
|
jsonReader.endObject();
|
|
return hzr;
|
|
}
|
|
}
|