116 lines
3.9 KiB
Java
116 lines
3.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;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class KSR extends TypeAdapter implements HJa {
|
|
private Gson a;
|
|
private InterfaceC15734iCu c;
|
|
private PYE d;
|
|
|
|
public KSR(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
|
this.a = gson;
|
|
this.c = interfaceC15734iCu;
|
|
this.d = pye;
|
|
}
|
|
|
|
@Override // com.google.gson.TypeAdapter
|
|
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
|
|
if (obj == null) {
|
|
jsonWriter.nullValue();
|
|
return;
|
|
}
|
|
Wqa wqa = (Wqa) obj;
|
|
Gson gson = this.a;
|
|
PYE pye = this.d;
|
|
jsonWriter.beginObject();
|
|
if (wqa != wqa.a) {
|
|
pye.c(jsonWriter, 666);
|
|
String str = wqa.a;
|
|
DTh.b(gson, String.class, str).write(jsonWriter, str);
|
|
}
|
|
if (wqa != wqa.d) {
|
|
pye.c(jsonWriter, 262);
|
|
String str2 = wqa.d;
|
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
|
}
|
|
if (wqa != wqa.g) {
|
|
pye.c(jsonWriter, 46);
|
|
String str3 = wqa.g;
|
|
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
|
|
}
|
|
if (wqa != wqa.j) {
|
|
pye.c(jsonWriter, 238);
|
|
String str4 = wqa.j;
|
|
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
|
|
}
|
|
if (wqa != wqa.f) {
|
|
pye.c(jsonWriter, 264);
|
|
String str5 = wqa.f;
|
|
DTh.b(gson, String.class, str5).write(jsonWriter, str5);
|
|
}
|
|
wqa.d(gson, jsonWriter, pye);
|
|
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;
|
|
}
|
|
Wqa wqa = new Wqa();
|
|
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 != 101) {
|
|
if (e != 114) {
|
|
if (e != 166) {
|
|
if (e != 179) {
|
|
if (e != 261) {
|
|
wqa.c(gson, jsonReader, e);
|
|
} else if (z) {
|
|
wqa.j = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
wqa.j = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
wqa.a = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
wqa.a = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
wqa.g = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
wqa.g = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
wqa.f = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
wqa.f = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
wqa.d = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
wqa.d = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
}
|
|
jsonReader.endObject();
|
|
return wqa;
|
|
}
|
|
}
|