68 lines
2.1 KiB
Java
68 lines
2.1 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.To, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class C1008To extends TypeAdapter implements HJa {
|
||
|
private PYE a;
|
||
|
private Gson b;
|
||
|
private InterfaceC15734iCu c;
|
||
|
|
||
|
public C1008To(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
||
|
this.b = gson;
|
||
|
this.c = 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;
|
||
|
}
|
||
|
TD td = (TD) obj;
|
||
|
Gson gson = this.b;
|
||
|
PYE pye = this.a;
|
||
|
jsonWriter.beginObject();
|
||
|
TE te = td.d;
|
||
|
pye.c(jsonWriter, CipherSuite.TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256);
|
||
|
TE te2 = td.d;
|
||
|
DTh.b(gson, TE.class, te2).write(jsonWriter, te2);
|
||
|
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;
|
||
|
}
|
||
|
TD td = new TD();
|
||
|
Gson gson = this.b;
|
||
|
InterfaceC15734iCu interfaceC15734iCu = this.c;
|
||
|
jsonReader.beginObject();
|
||
|
while (jsonReader.hasNext()) {
|
||
|
int e = interfaceC15734iCu.e(jsonReader);
|
||
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
||
|
if (e != 479) {
|
||
|
jsonReader.skipValue();
|
||
|
} else if (z) {
|
||
|
td.d = (TE) gson.getAdapter(TE.class).read2(jsonReader);
|
||
|
} else {
|
||
|
td.d = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
}
|
||
|
jsonReader.endObject();
|
||
|
return td;
|
||
|
}
|
||
|
}
|