39 lines
1.0 KiB
Java
39 lines
1.0 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.JsonWriter;
|
||
|
import java.io.IOException;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class YR extends TypeAdapter implements HJa {
|
||
|
private Gson a;
|
||
|
private InterfaceC15734iCu c;
|
||
|
private PYE d;
|
||
|
|
||
|
public YR(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();
|
||
|
} else {
|
||
|
this.d.d(jsonWriter, obj == YS.OMNIBUS ? 244 : -1);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.gson.TypeAdapter
|
||
|
/* renamed from: read */
|
||
|
public final Object read2(JsonReader jsonReader) throws IOException {
|
||
|
if (this.c.a(jsonReader) != 668) {
|
||
|
return null;
|
||
|
}
|
||
|
return YS.OMNIBUS;
|
||
|
}
|
||
|
}
|