115 lines
3.8 KiB
Java
115 lines
3.8 KiB
Java
package o;
|
|
|
|
import com.scb.phone.data.entity.transfer.SingleDataEntity;
|
|
import com.scb.phone.data.network.service.search.SequentialSearchService;
|
|
import com.scb.phone.domain.entity.mwpartner.EntityMappingException;
|
|
import java.util.HashMap;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class fDN implements hfX {
|
|
private final String b;
|
|
private final SequentialSearchService c;
|
|
|
|
@InterfaceC13391fZD
|
|
public fDN(SequentialSearchService sequentialSearchService, String str) {
|
|
C14957gcv.e(sequentialSearchService, "");
|
|
C14957gcv.e(str, "");
|
|
this.c = sequentialSearchService;
|
|
this.b = str;
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public static final class Sts {
|
|
private Sts() {
|
|
}
|
|
|
|
public /* synthetic */ Sts(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
@Override // o.hfX
|
|
public final AbstractC13175fSw<sxU> c(String str, HashMap<String, String> hashMap) {
|
|
C14957gcv.e(str, "");
|
|
C14957gcv.e(hashMap, "");
|
|
String str2 = hashMap.get("KEY_RESULT");
|
|
String str3 = str2;
|
|
if (str3 == null || str3.length() == 0) {
|
|
throw new EntityMappingException("KEY_RESULT cannot be empty");
|
|
}
|
|
if (C14957gcv.b((Object) str, (Object) "CAR")) {
|
|
String str4 = hashMap.get("PRODUCT_TYPE");
|
|
String str5 = str4;
|
|
if (str5 == null || str5.length() == 0) {
|
|
throw new EntityMappingException("PRODUCT_TYPE cannot be empty");
|
|
}
|
|
AbstractC13175fSw<SingleDataEntity<YeF>> postCarInquiry = this.c.postCarInquiry(new C10762eO(this.b, str4, str2, hashMap.get("BRAND"), hashMap.get("MODEL"), hashMap.get("YEAROFMANUFACTURE"), hashMap.get("SUBMODEL")));
|
|
final RVV rvv = RVV.a;
|
|
C13372fYk c13372fYk = new C13372fYk(postCarInquiry, new fSS(rvv) { // from class: o.RjO
|
|
private InterfaceC14894gbR d;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
InterfaceC14894gbR interfaceC14894gbR = this.d;
|
|
C14957gcv.e(interfaceC14894gbR, "");
|
|
return (YeF) interfaceC14894gbR.invoke(obj);
|
|
}
|
|
|
|
{
|
|
this.d = rvv;
|
|
}
|
|
});
|
|
final LWm lWm = LWm.c;
|
|
C13372fYk c13372fYk2 = new C13372fYk(c13372fYk, new fSS(lWm) { // from class: o.hRL
|
|
private InterfaceC14894gbR b;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
InterfaceC14894gbR interfaceC14894gbR = this.b;
|
|
C14957gcv.e(interfaceC14894gbR, "");
|
|
return (sxU) interfaceC14894gbR.invoke(obj);
|
|
}
|
|
|
|
{
|
|
this.b = lWm;
|
|
}
|
|
});
|
|
C14957gcv.c(c13372fYk2, "");
|
|
return c13372fYk2;
|
|
}
|
|
throw new EntityMappingException("invalid Search type");
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<YeF>, YeF> {
|
|
public static final RVV a = new RVV();
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ YeF invoke(SingleDataEntity<YeF> singleDataEntity) {
|
|
return singleDataEntity.getData();
|
|
}
|
|
|
|
RVV() {
|
|
super(1);
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<YeF, sxU> {
|
|
public static final LWm c = new LWm();
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ sxU invoke(YeF yeF) {
|
|
return new sxU(yeF.a);
|
|
}
|
|
|
|
LWm() {
|
|
super(1);
|
|
}
|
|
}
|
|
|
|
static {
|
|
new Sts((byte) 0);
|
|
}
|
|
}
|