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;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class oVX extends TypeAdapter implements HJa {
|
|
private Gson a;
|
|
private PYE b;
|
|
private InterfaceC15734iCu c;
|
|
|
|
public oVX(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
|
this.a = gson;
|
|
this.c = interfaceC15734iCu;
|
|
this.b = pye;
|
|
}
|
|
|
|
@Override // com.google.gson.TypeAdapter
|
|
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
|
|
if (obj == null) {
|
|
jsonWriter.nullValue();
|
|
return;
|
|
}
|
|
C6271cNx c6271cNx = (C6271cNx) obj;
|
|
Gson gson = this.a;
|
|
PYE pye = this.b;
|
|
jsonWriter.beginObject();
|
|
if (c6271cNx != c6271cNx.b) {
|
|
pye.c(jsonWriter, CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384);
|
|
String str = c6271cNx.b;
|
|
DTh.b(gson, String.class, str).write(jsonWriter, str);
|
|
}
|
|
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;
|
|
}
|
|
C6271cNx c6271cNx = new C6271cNx();
|
|
Gson gson = this.a;
|
|
InterfaceC15734iCu interfaceC15734iCu = this.c;
|
|
jsonReader.beginObject();
|
|
while (jsonReader.hasNext()) {
|
|
int e = interfaceC15734iCu.e(jsonReader);
|
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
|
if (e != 61) {
|
|
jsonReader.skipValue();
|
|
} else if (z) {
|
|
c6271cNx.b = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
c6271cNx.b = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
}
|
|
jsonReader.endObject();
|
|
return c6271cNx;
|
|
}
|
|
}
|