93 lines
3.4 KiB
Java
93 lines
3.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 com.kofax.mobile.sdk.extract.id.LocalProjectProvider;
|
|
import java.io.IOException;
|
|
|
|
/* renamed from: o.stS, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C16988stS extends TypeAdapter implements HJa {
|
|
private PYE b;
|
|
private Gson c;
|
|
private InterfaceC15734iCu e;
|
|
|
|
public C16988stS(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
|
this.c = gson;
|
|
this.e = 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;
|
|
}
|
|
LocalProjectProvider.VersionTable.VersionList versionList = (LocalProjectProvider.VersionTable.VersionList) obj;
|
|
Gson gson = this.c;
|
|
PYE pye = this.b;
|
|
jsonWriter.beginObject();
|
|
if (versionList != versionList.dataVersion) {
|
|
pye.c(jsonWriter, 479);
|
|
String str = versionList.dataVersion;
|
|
DTh.b(gson, String.class, str).write(jsonWriter, str);
|
|
}
|
|
if (versionList != versionList.sdkMajor) {
|
|
pye.c(jsonWriter, 290);
|
|
String str2 = versionList.sdkMajor;
|
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
|
}
|
|
if (versionList != versionList.sdkMinor) {
|
|
pye.c(jsonWriter, 371);
|
|
String str3 = versionList.sdkMinor;
|
|
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
|
|
}
|
|
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;
|
|
}
|
|
LocalProjectProvider.VersionTable.VersionList versionList = new LocalProjectProvider.VersionTable.VersionList();
|
|
Gson gson = this.c;
|
|
InterfaceC15734iCu interfaceC15734iCu = this.e;
|
|
jsonReader.beginObject();
|
|
while (jsonReader.hasNext()) {
|
|
int e = interfaceC15734iCu.e(jsonReader);
|
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
|
if (e != 419) {
|
|
if (e != 431) {
|
|
if (e != 591) {
|
|
jsonReader.skipValue();
|
|
} else if (z) {
|
|
versionList.sdkMinor = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
versionList.sdkMinor = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
versionList.sdkMajor = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
versionList.sdkMajor = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
} else if (z) {
|
|
versionList.dataVersion = (String) gson.getAdapter(String.class).read2(jsonReader);
|
|
} else {
|
|
versionList.dataVersion = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
}
|
|
jsonReader.endObject();
|
|
return versionList;
|
|
}
|
|
}
|