65 lines
2.0 KiB
Java
65 lines
2.0 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.cdR, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C6861cdR extends TypeAdapter implements HJa {
|
|
private PYE a;
|
|
private InterfaceC15734iCu b;
|
|
private Gson d;
|
|
|
|
public C6861cdR(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
|
this.d = gson;
|
|
this.b = interfaceC15734iCu;
|
|
this.a = pye;
|
|
}
|
|
|
|
@Override // com.google.gson.TypeAdapter
|
|
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
|
|
if (obj == null) {
|
|
jsonWriter.nullValue();
|
|
return;
|
|
}
|
|
Gson gson = this.d;
|
|
PYE pye = this.a;
|
|
jsonWriter.beginObject();
|
|
pye.c(jsonWriter, 310);
|
|
Class cls = Integer.TYPE;
|
|
Integer valueOf = Integer.valueOf(((EuK) obj).a);
|
|
DTh.b(gson, cls, valueOf).write(jsonWriter, valueOf);
|
|
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;
|
|
}
|
|
EuK euK = new EuK();
|
|
Gson gson = this.d;
|
|
InterfaceC15734iCu interfaceC15734iCu = this.b;
|
|
jsonReader.beginObject();
|
|
while (jsonReader.hasNext()) {
|
|
int e = interfaceC15734iCu.e(jsonReader);
|
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
|
if (e != 32) {
|
|
jsonReader.skipValue();
|
|
} else if (z) {
|
|
euK.a = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue();
|
|
} else {
|
|
jsonReader.nextNull();
|
|
}
|
|
}
|
|
jsonReader.endObject();
|
|
return euK;
|
|
}
|
|
}
|