127 lines
4.4 KiB
Java
127 lines
4.4 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 RRq extends TypeAdapter implements HJa {
|
||
|
private Gson a;
|
||
|
private InterfaceC15734iCu b;
|
||
|
private PYE c;
|
||
|
|
||
|
public RRq(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
||
|
this.a = gson;
|
||
|
this.b = 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;
|
||
|
}
|
||
|
rbY rby = (rbY) obj;
|
||
|
Gson gson = this.a;
|
||
|
PYE pye = this.c;
|
||
|
jsonWriter.beginObject();
|
||
|
if (rby != rby.e) {
|
||
|
pye.c(jsonWriter, 102);
|
||
|
Double d = rby.e;
|
||
|
DTh.b(gson, Double.class, d).write(jsonWriter, d);
|
||
|
}
|
||
|
if (rby != rby.c) {
|
||
|
pye.c(jsonWriter, 568);
|
||
|
String str = rby.c;
|
||
|
DTh.b(gson, String.class, str).write(jsonWriter, str);
|
||
|
}
|
||
|
if (rby != rby.d) {
|
||
|
pye.c(jsonWriter, 675);
|
||
|
String str2 = rby.d;
|
||
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
||
|
}
|
||
|
if (rby != rby.a) {
|
||
|
pye.c(jsonWriter, 14);
|
||
|
String str3 = rby.a;
|
||
|
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
|
||
|
}
|
||
|
if (rby != rby.b) {
|
||
|
pye.c(jsonWriter, 407);
|
||
|
String str4 = rby.b;
|
||
|
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
|
||
|
}
|
||
|
if (rby != rby.h) {
|
||
|
pye.c(jsonWriter, 222);
|
||
|
String str5 = rby.h;
|
||
|
DTh.b(gson, String.class, str5).write(jsonWriter, str5);
|
||
|
}
|
||
|
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;
|
||
|
}
|
||
|
rbY rby = new rbY();
|
||
|
Gson gson = this.a;
|
||
|
InterfaceC15734iCu interfaceC15734iCu = this.b;
|
||
|
jsonReader.beginObject();
|
||
|
while (jsonReader.hasNext()) {
|
||
|
int e = interfaceC15734iCu.e(jsonReader);
|
||
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
||
|
if (e != 39) {
|
||
|
if (e != 51) {
|
||
|
if (e != 227) {
|
||
|
if (e != 318) {
|
||
|
if (e != 524) {
|
||
|
if (e != 690) {
|
||
|
jsonReader.skipValue();
|
||
|
} else if (z) {
|
||
|
rby.a = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
rby.a = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
rby.d = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
rby.d = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
rby.c = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
rby.c = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
rby.e = (Double) gson.getAdapter(Double.class).read2(jsonReader);
|
||
|
} else {
|
||
|
rby.e = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
rby.b = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
rby.b = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
rby.h = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
rby.h = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
}
|
||
|
jsonReader.endObject();
|
||
|
return rby;
|
||
|
}
|
||
|
}
|