43 lines
1.2 KiB
Java
43 lines
1.2 KiB
Java
package com.google.android.gms.cloudmessaging;
|
|
|
|
import android.os.Bundle;
|
|
import android.util.Log;
|
|
import com.google.android.gms.tasks.TaskCompletionSource;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes3.dex */
|
|
public abstract class zzr {
|
|
final int zza;
|
|
final TaskCompletionSource zzb = new TaskCompletionSource();
|
|
final int zzc;
|
|
final Bundle zzd;
|
|
|
|
public zzr(int i, int i4, Bundle bundle) {
|
|
this.zza = i;
|
|
this.zzc = i4;
|
|
this.zzd = bundle;
|
|
}
|
|
|
|
public final String toString() {
|
|
return "Request { what=" + this.zzc + " id=" + this.zza + " oneWay=" + zzb() + "}";
|
|
}
|
|
|
|
public abstract void zza(Bundle bundle);
|
|
|
|
public abstract boolean zzb();
|
|
|
|
public final void zzc(zzs zzsVar) {
|
|
if (Log.isLoggable("MessengerIpcClient", 3)) {
|
|
Log.d("MessengerIpcClient", "Failing " + toString() + " with " + zzsVar.toString());
|
|
}
|
|
this.zzb.setException(zzsVar);
|
|
}
|
|
|
|
public final void zzd(Object obj) {
|
|
if (Log.isLoggable("MessengerIpcClient", 3)) {
|
|
Log.d("MessengerIpcClient", "Finishing " + toString() + " with " + String.valueOf(obj));
|
|
}
|
|
this.zzb.setResult(obj);
|
|
}
|
|
}
|