89 lines
2.9 KiB
Java
89 lines
2.9 KiB
Java
package com.google.android.gms.common.internal;
|
|
|
|
import android.os.IBinder;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import com.google.android.gms.common.ConnectionResult;
|
|
import com.google.android.gms.common.internal.IAccountAccessor;
|
|
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class ResolveAccountResponse extends AbstractSafeParcelable {
|
|
public static final Parcelable.Creator<ResolveAccountResponse> CREATOR = new zan();
|
|
private ConnectionResult zadh;
|
|
private boolean zagf;
|
|
private final int zale;
|
|
private IBinder zanw;
|
|
private boolean zapb;
|
|
|
|
ResolveAccountResponse(int i, IBinder iBinder, ConnectionResult connectionResult, boolean z, boolean z2) {
|
|
this.zale = i;
|
|
this.zanw = iBinder;
|
|
this.zadh = connectionResult;
|
|
this.zagf = z;
|
|
this.zapb = z2;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof ResolveAccountResponse)) {
|
|
return false;
|
|
}
|
|
ResolveAccountResponse resolveAccountResponse = (ResolveAccountResponse) obj;
|
|
return this.zadh.equals(resolveAccountResponse.zadh) && getAccountAccessor().equals(resolveAccountResponse.getAccountAccessor());
|
|
}
|
|
|
|
public IAccountAccessor getAccountAccessor() {
|
|
return IAccountAccessor.Stub.a(this.zanw);
|
|
}
|
|
|
|
public ConnectionResult getConnectionResult() {
|
|
return this.zadh;
|
|
}
|
|
|
|
public boolean getSaveDefaultAccount() {
|
|
return this.zagf;
|
|
}
|
|
|
|
public boolean isFromCrossClientAuth() {
|
|
return this.zapb;
|
|
}
|
|
|
|
public ResolveAccountResponse setAccountAccessor(IAccountAccessor iAccountAccessor) {
|
|
this.zanw = iAccountAccessor == null ? null : iAccountAccessor.asBinder();
|
|
return this;
|
|
}
|
|
|
|
public ResolveAccountResponse setIsFromCrossClientAuth(boolean z) {
|
|
this.zapb = z;
|
|
return this;
|
|
}
|
|
|
|
public ResolveAccountResponse setSaveDefaultAccount(boolean z) {
|
|
this.zagf = z;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
int a = SafeParcelWriter.a(parcel);
|
|
SafeParcelWriter.a(parcel, 1, this.zale);
|
|
SafeParcelWriter.a(parcel, 2, this.zanw, false);
|
|
SafeParcelWriter.a(parcel, 3, (Parcelable) getConnectionResult(), i, false);
|
|
SafeParcelWriter.a(parcel, 4, getSaveDefaultAccount());
|
|
SafeParcelWriter.a(parcel, 5, isFromCrossClientAuth());
|
|
SafeParcelWriter.a(parcel, a);
|
|
}
|
|
|
|
public ResolveAccountResponse(ConnectionResult connectionResult) {
|
|
this(1, null, connectionResult, false, false);
|
|
}
|
|
|
|
public ResolveAccountResponse(int i) {
|
|
this(new ConnectionResult(i, null));
|
|
}
|
|
}
|