what-the-bank/sources/com/huawei/hms/hwid/al.java

52 lines
1.8 KiB
Java

package com.huawei.hms.hwid;
import com.huawei.hms.common.ApiException;
import com.huawei.hms.common.internal.ResponseErrorCode;
import com.huawei.hms.common.internal.TaskApiCall;
import com.huawei.hms.support.api.client.Status;
import com.huawei.hms.support.hianalytics.HiAnalyticsClient;
import o.nNj;
/* loaded from: classes2.dex */
public class al extends TaskApiCall<ai, Void> {
@Override // com.huawei.hms.common.internal.TaskApiCall
public int getMinApkVersion() {
return 50005300;
}
public al(String str, String str2, String str3) {
super(str, str2, str3);
}
@Override // com.huawei.hms.common.internal.TaskApiCall
public int getApiLevel() {
as.b("StartConsentTaskApiCall", "startConsent getApiLevel8", true);
return 8;
}
/* JADX INFO: Access modifiers changed from: protected */
@Override // com.huawei.hms.common.internal.TaskApiCall
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public void doExecute(ai aiVar, ResponseErrorCode responseErrorCode, String str, nNj<Void> nnj) {
ag b = ag.b(str);
Integer a = b.a();
String b2 = b.b();
if (a == null) {
a = Integer.valueOf(responseErrorCode.getErrorCode());
b2 = responseErrorCode.getErrorReason();
}
if (a(responseErrorCode, b.a())) {
nnj.b(null);
} else {
nnj.c(new ApiException(new Status(a.intValue(), b2)));
}
if (aiVar != null) {
HiAnalyticsClient.reportExit(aiVar.getContext(), getUri(), getTransactionId(), ar.a(a.intValue()), a.intValue());
}
}
private boolean a(ResponseErrorCode responseErrorCode, Integer num) {
return num == null ? responseErrorCode.getStatusCode() == 0 : num.intValue() == 0;
}
}