what-the-bank/sources/com/huawei/hms/common/internal/TaskApiCall.java

110 lines
2.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.huawei.hms.common.internal;
import android.os.Parcelable;
import com.huawei.hms.common.internal.AnyClient;
import com.huawei.hms.support.log.HMSLog;
import o.Vkh;
import o.nNj;
/* loaded from: classes2.dex */
public abstract class TaskApiCall<ClientT extends AnyClient, ResultT> {
private final String a;
private final String b;
private Parcelable c;
private String d;
private Vkh e;
private int f;
@Deprecated
public TaskApiCall(String str, String str2) {
this.f = 1;
this.a = str;
this.b = str2;
this.c = null;
this.d = null;
}
protected abstract void doExecute(ClientT clientt, ResponseErrorCode responseErrorCode, String str, nNj<ResultT> nnj);
@Deprecated
public int getMinApkVersion() {
return 30000000;
}
public final void onResponse(ClientT clientt, ResponseErrorCode responseErrorCode, String str, nNj<ResultT> nnj) {
Vkh vkh = this.e;
if (vkh != null && vkh.c()) {
StringBuilder sb = new StringBuilder("This Task has been canceled, uri:");
sb.append(this.a);
sb.append(", transactionId:");
sb.append(this.d);
HMSLog.i("TaskApiCall", sb.toString());
return;
}
StringBuilder sb2 = new StringBuilder("doExecute, uri:");
sb2.append(this.a);
sb2.append(", errorCode:");
sb2.append(responseErrorCode.getErrorCode());
sb2.append(", transactionId:");
sb2.append(this.d);
HMSLog.i("TaskApiCall", sb2.toString());
doExecute(clientt, responseErrorCode, str, nnj);
}
public TaskApiCall(String str, String str2, String str3) {
this.f = 1;
this.a = str;
this.b = str2;
this.c = null;
this.d = str3;
}
public TaskApiCall(String str, String str2, String str3, int i) {
this.a = str;
this.b = str2;
this.c = null;
this.d = str3;
this.f = i;
}
public void setTransactionId(String str) {
this.d = str;
}
public void setToken(Vkh vkh) {
this.e = vkh;
}
public void setParcelable(Parcelable parcelable) {
this.c = parcelable;
}
public void setApiLevel(int i) {
this.f = i;
}
public String getUri() {
return this.a;
}
public String getTransactionId() {
return this.d;
}
public Vkh getToken() {
return this.e;
}
public String getRequestJson() {
return this.b;
}
public Parcelable getParcelable() {
return this.c;
}
public int getApiLevel() {
return this.f;
}
}