what-the-bank/sources/com/google/android/gms/internal/p002firebaseauthapi/zzabc.java

72 lines
2.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.p002firebaseauthapi;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.util.Strings;
import com.huawei.hms.support.feature.result.CommonConstant;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class zzabc extends AbstractSafeParcelable implements zzxn<zzabc> {
public static final Parcelable.Creator<zzabc> CREATOR = new zzabd();
private static final String zza = "zzabc";
private String zzb;
private String zzc;
private long zzd;
private boolean zze;
public zzabc() {
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 2, this.zzb, false);
SafeParcelWriter.writeString(parcel, 3, this.zzc, false);
SafeParcelWriter.writeLong(parcel, 4, this.zzd);
SafeParcelWriter.writeBoolean(parcel, 5, this.zze);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzxn
public final /* synthetic */ zzxn zza(String str) throws zzvg {
try {
JSONObject jSONObject = new JSONObject(str);
this.zzb = Strings.emptyToNull(jSONObject.optString(CommonConstant.KEY_ID_TOKEN, null));
this.zzc = Strings.emptyToNull(jSONObject.optString("refreshToken", null));
this.zzd = jSONObject.optLong("expiresIn", 0L);
this.zze = jSONObject.optBoolean("isNewUser", false);
return this;
} catch (NullPointerException | JSONException e) {
throw zzabk.zza(e, zza, str);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public zzabc(String str, String str2, long j, boolean z) {
this.zzb = str;
this.zzc = str2;
this.zzd = j;
this.zze = z;
}
public final boolean zze() {
return this.zze;
}
public final String zzd() {
return this.zzc;
}
public final String zzc() {
return this.zzb;
}
public final long zzb() {
return this.zzd;
}
}