正在查看: OLX India v19.42.007 应用的 DeloreanChatTestDriveActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OLX India v19.42.007 应用的 DeloreanChatTestDriveActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.olxgroup.panamera.app.chat.activities;
import android.content.Context;
import android.widget.Toast;
import com.naspers.ragnarok.domain.constant.Constants;
import com.naspers.ragnarok.domain.util.extension.ChatProfileExtensionKt;
import com.naspers.ragnarok.universal.ui.ui.testDrive.activity.TestDriveActivity;
import com.olx.southasia.p;
import com.olxgroup.panamera.app.common.helpers.f;
import com.olxgroup.panamera.app.common.infra.m2;
import com.olxgroup.panamera.domain.seller.dynamic_form.entity.DynamicFormPostUpdateEntity;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import kotlin.Lazy;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import olx.com.delorean.domain.interactor.EventListenerUseCase;
import olx.com.delorean.domain.interactor.UseCaseObserver;
import olx.com.delorean.domain.repository.UserSessionRepository;
@Metadata
public final class DeloreanChatTestDriveActivity extends TestDriveActivity {
public static final a j0 = new a(null);
public static final int k0 = 8;
private com.olxgroup.panamera.app.common.helpers.f f0;
private EventListenerUseCase g0;
private final Lazy h0;
private String i0;
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private a() {
}
}
public class b {
public static final int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[f.a.values().length];
try {
iArr[f.a.NONE.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
$EnumSwitchMapping$0 = iArr;
}
}
public static final class c extends UseCaseObserver {
c() {
}
public void onNext(DynamicFormPostUpdateEntity dynamicFormPostUpdateEntity) {
HashMap leadInfo;
if (dynamicFormPostUpdateEntity.isDynamicFormPostRequestSucceeded() && (leadInfo = dynamicFormPostUpdateEntity.getDynamicFormPostDataResponseEntity().getData().getLeadInfo()) != null && !leadInfo.isEmpty()) {
String str = (String) leadInfo.get("phone");
String str2 = str == null ? "" : str;
String str3 = (String) leadInfo.get("email");
String str4 = str3 == null ? "" : str3;
String str5 = (String) leadInfo.get("name");
String str6 = str5 == null ? "" : str5;
DeloreanChatTestDriveActivity.this.getWindow().clearFlags(16);
TestDriveActivity.N2(DeloreanChatTestDriveActivity.this, str2, str4, str6, null, 8, null);
}
if (DeloreanChatTestDriveActivity.this.g0.isDisposed()) {
return;
}
DeloreanChatTestDriveActivity.this.g0.dispose();
}
}
public DeloreanChatTestDriveActivity() {
com.olxgroup.panamera.app.common.di.entrypoints.b bVar = com.olxgroup.panamera.app.common.di.entrypoints.b.a;
m2 m2Var = m2.a;
this.f0 = ((com.olxgroup.panamera.app.common.di.entrypoints.a) bVar.a(m2Var.w1(), com.olxgroup.panamera.app.common.di.entrypoints.a.class)).e();
this.g0 = ((com.olxgroup.panamera.app.common.di.entrypoints.a) bVar.a(m2Var.w1(), com.olxgroup.panamera.app.common.di.entrypoints.a.class)).E();
this.h0 = m2Var.Q2();
this.i0 = "";
}
private final UseCaseObserver m3() {
return new c();
}
private final List n3() {
ArrayList arrayList = new ArrayList();
arrayList.add(y2());
return arrayList;
}
private final Map o3() {
HashMap hashMap = new HashMap();
hashMap.put(Constants.AD_ID, String.valueOf(w2().getItemId()));
hashMap.put("seller_id", w2().getCurrentAd().getSellerId());
hashMap.put("field_name", this.i0);
hashMap.put("inspected_type", w2().getCurrentAd().getInspectionType());
hashMap.put("user_category", ChatProfileExtensionKt.getDealerTypeForAnalytics(w2().getProfile()));
return hashMap;
}
private final void p3() {
this.f0.j(this, "ChatTestDriveActivity", Integer.parseInt(w2().getCurrentAd().getCategoryId()), ((UserSessionRepository) this.h0.getValue()).getUserIdLogged(), n3(), o3(), true);
}
@Override
public void Q2() {
p3();
}
@Override
public void j3(String str) {
this.i0 = str;
p3();
if (b.$EnumSwitchMapping$0[this.f0.e("onTapC2BMeeting", Integer.parseInt(w2().getCurrentAd().getCategoryId()), 11065, o3()).ordinal()] == 1) {
Toast.makeText((Context) this, (CharSequence) getResources().getString(p.item_details_deactivate_ad_error_popup_message), 0).show();
} else {
this.g0.execute(m3(), DynamicFormPostUpdateEntity.class);
}
}
@Override
protected void onDestroy() {
if (!this.g0.isDisposed()) {
this.g0.dispose();
}
super.onDestroy();
}
}