what-the-bank/sources/com/huawei/hms/support/api/ResolvePendingResult.java

36 lines
1.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.huawei.hms.support.api;
import com.huawei.hms.core.aidl.IMessageEntity;
import com.huawei.hms.support.api.client.ApiClient;
import com.huawei.hms.support.api.client.Result;
import com.huawei.hms.support.api.client.Status;
/* loaded from: classes2.dex */
public class ResolvePendingResult<T extends IMessageEntity> extends PendingResultImpl<ResolveResult<T>, T> {
protected ResolvePendingResult(ApiClient apiClient, String str, IMessageEntity iMessageEntity, Class<T> cls) {
super(apiClient, str, iMessageEntity, cls);
}
public static <R extends IMessageEntity> ResolvePendingResult<R> build(ApiClient apiClient, String str, IMessageEntity iMessageEntity, Class<R> cls) {
return new ResolvePendingResult<>(apiClient, str, iMessageEntity, cls);
}
/* JADX WARN: Multi-variable type inference failed */
public T get() {
return (T) ((ResolveResult) await()).getValue();
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.huawei.hms.support.api.PendingResultImpl
public /* bridge */ /* synthetic */ Result onComplete(IMessageEntity iMessageEntity) {
return onComplete((ResolvePendingResult<T>) iMessageEntity);
}
@Override // com.huawei.hms.support.api.PendingResultImpl
public ResolveResult<T> onComplete(T t) {
ResolveResult<T> resolveResult = new ResolveResult<>(t);
resolveResult.setStatus(new Status(0));
return resolveResult;
}
}