Warkop v5.73.0版本的 MD5 值为:a4330ec2d6f5e146f59fc7622f3cdb45
以下内容为反编译后的 l.java 源代码,内容仅作参考
package ds3;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.telephony.TelephonyManager;
import co.m;
import com.inappstory.sdk.stories.api.models.Image;
import fs.a;
import is3.CallData;
import is3.CallEndMetaData;
import is3.StatusData;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.u;
import kotlin.text.v;
import n91.z;
import org.jetbrains.annotations.NotNull;
import p029do.c0;
import sinet.startup.inDriver.core.data.data.CityData;
import sinet.startup.inDriver.core.data.data.NotificationData;
import sinet.startup.inDriver.messenger.calls.impl.data.network.VoipCallsApi;
import sinet.startup.inDriver.messenger.calls.impl.data.network.response.CallDataRaw;
import sinet.startup.inDriver.messenger.calls.impl.data.network.response.CallEndMetaDataRaw;
import sinet.startup.inDriver.messenger.calls.impl.data.network.response.GenericResponse;
import sinet.startup.inDriver.messenger.calls.impl.data.network.response.MakeCallResponse;
import sinet.startup.inDriver.messenger.calls.impl.data.network.response.QualityIssueRaw;
import sinet.startup.inDriver.messenger.calls.impl.data.network.response.StatusDataRaw;
import sinet.startup.inDriver.messenger.calls.impl.data.network.response.StatusResponse;
import sinet.startup.inDriver.messenger.voip.provider.voximplant.domain.exception.VoximplantException;
import vm.x;
import zx3.QualityIssue;
import zx3.n;
@Metadata(d1 = {"\u0000\u0080\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\t\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\t\b\u0007\u0018\u0000 <2\u00020\u0001:\u0001)B\u001f\u0012\u0006\u0010+\u001a\u00020(\u0012\u0006\u0010/\u001a\u00020,\u0012\u0006\u00103\u001a\u000200¢\u0006\u0004\b:\u0010;J;\u0010\f\u001a\u00020\u000b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u00062\b\u0010\b\u001a\u0004\u0018\u00010\u00062\b\u0010\n\u001a\u0004\u0018\u00010\tH\u0016¢\u0006\u0004\b\f\u0010\rJE\u0010\u0016\u001a\b\u0012\u0004\u0012\u00020\u00150\u00142\u0006\u0010\u000e\u001a\u00020\u00022\b\u0010\u0010\u001a\u0004\u0018\u00010\u000f2\b\u0010\u0011\u001a\u0004\u0018\u00010\u00022\b\u0010\u0012\u001a\u0004\u0018\u00010\u00022\b\u0010\u0013\u001a\u0004\u0018\u00010\u0006H\u0016¢\u0006\u0004\b\u0016\u0010\u0017J\u0010\u0010\u0018\u001a\u00020\u000b2\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\u0019\u001a\u00020\u000b2\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\u001a\u001a\u00020\u000b2\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0016\u0010\u001c\u001a\b\u0012\u0004\u0012\u00020\u001b0\u00142\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\"\u0010 \u001a\u00020\u000b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u001d\u001a\u00020\u00022\b\u0010\u001f\u001a\u0004\u0018\u00010\u001eH\u0016J\u001e\u0010$\u001a\u00020\u000b2\u0006\u0010\u0003\u001a\u00020\u00022\f\u0010#\u001a\b\u0012\u0004\u0012\u00020\"0!H\u0016J\u0010\u0010'\u001a\u00020&2\u0006\u0010%\u001a\u00020\u0002H\u0016R\u0014\u0010+\u001a\u00020(8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b)\u0010*R\u0014\u0010/\u001a\u00020,8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b-\u0010.R\u0014\u00103\u001a\u0002008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b1\u00102R\u001d\u00109\u001a\u0004\u0018\u0001048BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b5\u00106\u001a\u0004\b7\u00108¨\u0006="}, d2 = {"Lds3/l;", "Lks3/d;", "", "callId", "Lzx3/n;", "reviewType", "", "isReviewSkipped", "thumbsScore", "", "starsScore", "Lvm/b;", "i", "(Ljava/lang/String;Lzx3/n;ZLjava/lang/Boolean;Ljava/lang/Integer;)Lvm/b;", NotificationData.JSON_MODULE, "", "userId", "orderId", "jwtPayload", "checkPermanentBan", "Lvm/x;", "Lis3/b;", "j", "(Ljava/lang/String;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;)Lvm/x;", "f", Image.TYPE_MEDIUM, "l", "Lis3/r;", "k", "status", "Lis3/h;", "meta", Image.TYPE_HIGH, "", "Lzx3/l;", "qualityIssues", "g", "phoneNumber", "Lco/g0;", "e", "Landroid/content/Context;", "a", "Landroid/content/Context;", "context", "Lsinet/startup/inDriver/messenger/calls/impl/data/network/VoipCallsApi;", "b", "Lsinet/startup/inDriver/messenger/calls/impl/data/network/VoipCallsApi;", "voipCallsApi", "Lxc1/l;", "c", "Lxc1/l;", "user", "Landroid/telephony/TelephonyManager;", "d", "Lco/k;", "n", "()Landroid/telephony/TelephonyManager;", "telephonyManager", "<init>", "(Landroid/content/Context;Lsinet/startup/inDriver/messenger/calls/impl/data/network/VoipCallsApi;Lxc1/l;)V", "Companion", "impl_release"}, k = 1, mv = {1, 8, 0})
public final class l implements ks3.d {
public static final int f48353e = 8;
@NotNull
private final Context context;
@NotNull
private final VoipCallsApi voipCallsApi;
@NotNull
private final xc1.l user;
@NotNull
private final co.k telephonyManager;
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\n \u0004*\u0004\u0018\u00010\u00030\u00032\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00010\u0000H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"Lsinet/startup/inDriver/messenger/calls/impl/data/network/response/GenericResponse;", "Lsinet/startup/inDriver/messenger/calls/impl/data/network/response/StatusResponse;", "it", "Lis3/r;", "kotlin.jvm.PlatformType", "a", "(Lsinet/startup/inDriver/messenger/calls/impl/data/network/response/GenericResponse;)Lis3/r;"}, k = 3, mv = {1, 8, 0})
static final class b extends u implements qo.l<GenericResponse<StatusResponse>, StatusData> {
public static final b f48358l = new b();
b() {
super(1);
}
@Override
public final StatusData invoke(@NotNull GenericResponse<StatusResponse> genericResponse) {
List<StatusDataRaw> b15;
Object p05;
StatusResponse a15 = genericResponse.a();
if (a15 != null && (b15 = a15.b()) != null) {
p05 = c0.p0(b15);
StatusDataRaw statusDataRaw = (StatusDataRaw) p05;
if (statusDataRaw != null) {
return StatusDataRaw.INSTANCE.a(statusDataRaw);
}
}
throw new VoximplantException("'getStatus' request returned null");
}
}
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\n \u0004*\u0004\u0018\u00010\u00030\u00032\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00010\u0000H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"Lsinet/startup/inDriver/messenger/calls/impl/data/network/response/GenericResponse;", "Lsinet/startup/inDriver/messenger/calls/impl/data/network/response/MakeCallResponse;", "it", "Lis3/b;", "kotlin.jvm.PlatformType", "a", "(Lsinet/startup/inDriver/messenger/calls/impl/data/network/response/GenericResponse;)Lis3/b;"}, k = 3, mv = {1, 8, 0})
static final class c extends u implements qo.l<GenericResponse<MakeCallResponse>, CallData> {
public static final c f48359l = new c();
c() {
super(1);
}
@Override
public final CallData invoke(@NotNull GenericResponse<MakeCallResponse> genericResponse) {
List<CallDataRaw> b15;
Object p05;
MakeCallResponse a15 = genericResponse.a();
if (a15 != null && (b15 = a15.b()) != null) {
p05 = c0.p0(b15);
CallDataRaw callDataRaw = (CallDataRaw) p05;
if (callDataRaw != null) {
return CallDataRaw.INSTANCE.a(callDataRaw);
}
}
throw new VoximplantException("'makeCall' request returned null");
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u0004\u0018\u00010\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Landroid/telephony/TelephonyManager;", "b", "()Landroid/telephony/TelephonyManager;"}, k = 3, mv = {1, 8, 0})
static final class d extends u implements qo.a<TelephonyManager> {
d() {
super(0);
}
@Override
public final TelephonyManager invoke() {
return (TelephonyManager) androidx.core.content.a.getSystemService(l.this.context, TelephonyManager.class);
}
}
public l(@NotNull Context context, @NotNull VoipCallsApi voipCallsApi, @NotNull xc1.l lVar) {
co.k b15;
this.context = context;
this.voipCallsApi = voipCallsApi;
this.user = lVar;
b15 = m.b(new d());
this.telephonyManager = b15;
}
public static final StatusData d(qo.l lVar, Object obj) {
return (StatusData) lVar.invoke(obj);
}
private final TelephonyManager n() {
return (TelephonyManager) this.telephonyManager.getValue();
}
public static final CallData o(qo.l lVar, Object obj) {
return (CallData) lVar.invoke(obj);
}
@Override
public void e(@NotNull String str) {
boolean z15;
boolean I;
TelephonyManager n15 = n();
if (n15 != null && n15.getPhoneType() == 0) {
z15 = true;
} else {
z15 = false;
}
boolean z16 = !z15;
I = v.I(str);
if ((true ^ I) && z16) {
try {
Intent intent = new Intent("android.intent.action.VIEW");
intent.setData(Uri.parse("https://wa.me/:" + str));
intent.setFlags(268435456);
this.context.startActivity(intent);
return;
} catch (Exception e15) {
ud4.a.INSTANCE.e(e15, "Failed to make a call", new Object[0]);
n91.k.t(this.context, w81.l.f167661p4, false, 2, null);
return;
}
}
n91.k.t(this.context, w81.l.f167661p4, false, 2, null);
}
@Override
@NotNull
public vm.b f(@NotNull String callId) {
Integer num;
VoipCallsApi voipCallsApi = this.voipCallsApi;
CityData y15 = this.user.y();
if (y15 != null) {
num = y15.getId();
} else {
num = null;
}
return VoipCallsApi.b.h(voipCallsApi, String.valueOf(num), z.f(Locale.getDefault()), callId, 0, 8, null);
}
@Override
@NotNull
public vm.b g(@NotNull String callId, @NotNull List<QualityIssue> qualityIssues) {
Integer num;
int v15;
VoipCallsApi voipCallsApi = this.voipCallsApi;
CityData y15 = this.user.y();
if (y15 != null) {
num = y15.getId();
} else {
num = null;
}
String valueOf = String.valueOf(num);
String f15 = z.f(Locale.getDefault());
a.Companion companion = fs.a.INSTANCE;
QualityIssueRaw.Companion companion2 = QualityIssueRaw.INSTANCE;
v15 = p029do.v.v(qualityIssues, 10);
ArrayList arrayList = new ArrayList(v15);
Iterator<T> it = qualityIssues.iterator();
while (it.hasNext()) {
arrayList.add(companion2.a((QualityIssue) it.next()));
}
companion.getSerializersModule();
return VoipCallsApi.b.g(voipCallsApi, valueOf, f15, callId, companion.b(new es.f(QualityIssueRaw.INSTANCE.serializer()), arrayList), 0, 16, null);
}
@Override
@NotNull
public vm.b h(@NotNull String callId, @NotNull String status, CallEndMetaData meta) {
Integer num;
String str;
VoipCallsApi voipCallsApi = this.voipCallsApi;
CityData y15 = this.user.y();
if (y15 != null) {
num = y15.getId();
} else {
num = null;
}
String valueOf = String.valueOf(num);
String f15 = z.f(Locale.getDefault());
if (meta != null) {
a.Companion companion = fs.a.INSTANCE;
CallEndMetaDataRaw.Companion companion2 = CallEndMetaDataRaw.INSTANCE;
CallEndMetaDataRaw a15 = companion2.a(meta);
companion.getSerializersModule();
str = companion.b(companion2.serializer(), a15);
} else {
str = null;
}
return VoipCallsApi.b.b(voipCallsApi, valueOf, f15, callId, status, str, 0, 32, null);
}
@Override
@NotNull
public vm.b i(@NotNull String callId, @NotNull n reviewType, boolean isReviewSkipped, Boolean thumbsScore, Integer starsScore) {
Integer num;
String str;
String str2;
String str3;
VoipCallsApi voipCallsApi = this.voipCallsApi;
CityData y15 = this.user.y();
if (y15 != null) {
num = y15.getId();
} else {
num = null;
}
String valueOf = String.valueOf(num);
String f15 = z.f(Locale.getDefault());
String lowerCase = reviewType.toString().toLowerCase(Locale.ROOT);
if (!isReviewSkipped && starsScore != null) {
str = starsScore.toString();
} else {
str = null;
}
if (!isReviewSkipped) {
if (Intrinsics.g(thumbsScore, Boolean.TRUE)) {
str2 = "plus";
} else if (Intrinsics.g(thumbsScore, Boolean.FALSE)) {
str2 = "minus";
}
str3 = str2;
return VoipCallsApi.b.e(voipCallsApi, valueOf, f15, callId, lowerCase, str, str3, 0, 64, null);
}
str3 = null;
return VoipCallsApi.b.e(voipCallsApi, valueOf, f15, callId, lowerCase, str, str3, 0, 64, null);
}
@Override
@NotNull
public x<CallData> j(@NotNull String module, Long userId, String orderId, String jwtPayload, Boolean checkPermanentBan) {
Integer num;
VoipCallsApi voipCallsApi = this.voipCallsApi;
CityData y15 = this.user.y();
if (y15 != null) {
num = y15.getId();
} else {
num = null;
}
x d15 = VoipCallsApi.b.d(voipCallsApi, String.valueOf(num), z.f(Locale.getDefault()), module, orderId, String.valueOf(userId), jwtPayload, checkPermanentBan, 0, 128, null);
final c cVar = c.f48359l;
return d15.L(new an.j() {
@Override
public final Object apply(Object obj) {
CallData o15;
o15 = l.o(qo.l.this, obj);
return o15;
}
});
}
@Override
@NotNull
public x<StatusData> k(@NotNull String callId) {
Integer num;
VoipCallsApi voipCallsApi = this.voipCallsApi;
CityData y15 = this.user.y();
if (y15 != null) {
num = y15.getId();
} else {
num = null;
}
x c15 = VoipCallsApi.b.c(voipCallsApi, String.valueOf(num), z.f(Locale.getDefault()), callId, 0, 8, null);
final b bVar = b.f48358l;
return c15.L(new an.j() {
@Override
public final Object apply(Object obj) {
StatusData d15;
d15 = l.d(qo.l.this, obj);
return d15;
}
});
}
@Override
@NotNull
public vm.b l(@NotNull String callId) {
Integer num;
ud4.a.INSTANCE.w("Calls").a("can't accept incoming call, busy", new Object[0]);
VoipCallsApi voipCallsApi = this.voipCallsApi;
CityData y15 = this.user.y();
if (y15 != null) {
num = y15.getId();
} else {
num = null;
}
return VoipCallsApi.b.a(voipCallsApi, String.valueOf(num), z.f(Locale.getDefault()), callId, 0, 8, null);
}
@Override
@NotNull
public vm.b m(@NotNull String callId) {
Integer num;
ud4.a.INSTANCE.w("Calls").a("ready to accept incoming call", new Object[0]);
VoipCallsApi voipCallsApi = this.voipCallsApi;
CityData y15 = this.user.y();
if (y15 != null) {
num = y15.getId();
} else {
num = null;
}
return VoipCallsApi.b.f(voipCallsApi, String.valueOf(num), z.f(Locale.getDefault()), callId, 0, 8, null);
}
}