56 lines
2.0 KiB
Java
56 lines
2.0 KiB
Java
package com.huawei.hms.hwid;
|
|
|
|
import android.text.TextUtils;
|
|
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 o.nNj;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class aa extends TaskApiCall<u, Void> {
|
|
@Override // com.huawei.hms.common.internal.TaskApiCall
|
|
public int getApiLevel() {
|
|
return 1;
|
|
}
|
|
|
|
@Override // com.huawei.hms.common.internal.TaskApiCall
|
|
public int getMinApkVersion() {
|
|
return 40000300;
|
|
}
|
|
|
|
public aa(String str, String str2, String str3) {
|
|
super(str, str2, str3);
|
|
}
|
|
|
|
/* 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(u uVar, ResponseErrorCode responseErrorCode, String str, nNj<Void> nnj) {
|
|
if (responseErrorCode == null) {
|
|
as.b("[HUAWEIIDSDK]HuaweiIdDeleteAuthInfoTaskApiCall", "response is null.", true);
|
|
nnj.c(new ApiException(new Status(2003, "response is null.")));
|
|
return;
|
|
}
|
|
a(responseErrorCode, str);
|
|
if (!TextUtils.isEmpty(str)) {
|
|
if (responseErrorCode.getErrorCode() == 0) {
|
|
nnj.b(null);
|
|
return;
|
|
} else {
|
|
nnj.c(new ApiException(new Status(responseErrorCode.getErrorCode())));
|
|
return;
|
|
}
|
|
}
|
|
nnj.c(new ApiException(new Status(responseErrorCode.getErrorCode(), responseErrorCode.getErrorReason())));
|
|
}
|
|
|
|
private void a(ResponseErrorCode responseErrorCode, String str) {
|
|
StringBuilder sb = new StringBuilder();
|
|
StringBuilder sb2 = new StringBuilder("headerErrorCode:");
|
|
sb2.append(responseErrorCode.getErrorCode());
|
|
sb.append(sb2.toString());
|
|
as.b("[HUAWEIIDSDK]HuaweiIdDeleteAuthInfoTaskApiCall", sb.toString(), true);
|
|
}
|
|
}
|