CAG v5.7.4版本的 MD5 值为:bc57ead76a7a30559f0708e9d60d749f
以下内容为反编译后的 BaseCategoryModelDeserializer.java 源代码,内容仅作参考
package org.godfootsteps.arch.api.util;
import com.google.gson.internal.bind.TreeTypeAdapter;
import d.c.a.a.b.a;
import i.j.c.n;
import i.j.c.o;
import i.j.c.p;
import i.j.c.r;
import java.lang.reflect.Type;
import kotlin.Metadata;
import n.i.b.h;
import org.godfootsteps.arch.api.model.BaseCategoryModel;
import org.godfootsteps.arch.api.model.HomeBannerModel;
import org.godfootsteps.arch.api.model.HomeClassicModel;
import org.godfootsteps.arch.api.model.HomeContinuedModel;
import org.godfootsteps.arch.api.model.HomeNormalModel;
import org.godfootsteps.arch.api.model.HomeThreeTruthsData;
import org.godfootsteps.arch.api.model.HomeTwentyTruthsModel;
import org.godfootsteps.arch.api.model.HomeVideoModel;
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0003J&\u0010\u0004\u001a\u00020\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\b\u0010\u0007\u001a\u0004\u0018\u00010\b2\b\u0010\t\u001a\u0004\u0018\u00010\nH\u0016¨\u0006\u000b"}, d2 = {"Lorg/godfootsteps/arch/api/util/BaseCategoryModelDeserializer;", "Lcom/google/gson/JsonDeserializer;", "Lorg/godfootsteps/arch/api/model/BaseCategoryModel;", "()V", "deserialize", "json", "Lcom/google/gson/JsonElement;", "typeOfT", "Ljava/lang/reflect/Type;", "context", "Lcom/google/gson/JsonDeserializationContext;", "arch_release"}, k = 1, mv = {1, 5, 1}, xi = 48)
public final class BaseCategoryModelDeserializer implements o<BaseCategoryModel> {
@Override
public BaseCategoryModel deserialize(p pVar, Type type, n nVar) {
p pVar2;
String str = null;
r b = pVar == null ? null : pVar.b();
if (b != null && (pVar2 = b.a.get("category")) != null) {
str = pVar2.d();
}
if (str != null) {
switch (str.hashCode()) {
case -1850576461:
break;
case -1850529456:
break;
case -1821967668:
break;
case -1781610592:
break;
case -1776693134:
if (str.equals("Classic")) {
h.c(nVar);
Object a = ((TreeTypeAdapter.b) nVar).a(pVar, HomeClassicModel.class);
h.d(a, "context!!.deserialize(js…ClassicModel::class.java)");
return (BaseCategoryModel) a;
}
return new a();
case -1703875489:
break;
case -1530484186:
if (str.equals("Reveals")) {
h.c(nVar);
Object a2 = ((TreeTypeAdapter.b) nVar).a(pVar, HomeVideoModel.class);
h.d(a2, "context!!.deserialize(js…meVideoModel::class.java)");
return (BaseCategoryModel) a2;
}
return new a();
case -650451006:
break;
case -564713802:
break;
case -306995548:
if (str.equals("Twenty-truths")) {
h.c(nVar);
Object a3 = ((TreeTypeAdapter.b) nVar).a(pVar, HomeTwentyTruthsModel.class);
h.d(a3, "context!!.deserialize(js…yTruthsModel::class.java)");
return (BaseCategoryModel) a3;
}
return new a();
case 2368284:
break;
case 2493369:
break;
case 82650203:
if (str.equals("Video")) {
h.c(nVar);
Object a4 = ((TreeTypeAdapter.b) nVar).a(pVar, HomeVideoModel.class);
h.d(a4, "context!!.deserialize(js…meVideoModel::class.java)");
return (BaseCategoryModel) a4;
}
return new a();
case 1600555133:
if (str.equals("Continued")) {
h.c(nVar);
Object a5 = ((TreeTypeAdapter.b) nVar).a(pVar, HomeContinuedModel.class);
h.d(a5, "context!!.deserialize(js…ntinuedModel::class.java)");
return (BaseCategoryModel) a5;
}
return new a();
case 1604696727:
if (str.equals("Three-truths")) {
h.c(nVar);
Object a6 = ((TreeTypeAdapter.b) nVar).a(pVar, HomeThreeTruthsData.class);
h.d(a6, "context!!.deserialize(js…eeTruthsData::class.java)");
return (BaseCategoryModel) a6;
}
return new a();
case 1982491468:
if (str.equals("Banner")) {
return new HomeBannerModel(str, b.a.get("banner").d());
}
return new a();
default:
return new a();
}
} else {
h.c(nVar);
Object a7 = ((TreeTypeAdapter.b) nVar).a(pVar, HomeNormalModel.class);
h.d(a7, "context!!.deserialize(js…eNormalModel::class.java)");
return (BaseCategoryModel) a7;
}
}
}