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

44 lines
1.4 KiB
Java

package com.google.android.gms.internal.p002firebaseauthapi;
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 zzaar implements zzxn {
private static final String zza = "zzaar";
private String zzb;
private String zzc;
private String zzd;
private String zze;
private long zzf;
@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(CommonConstant.KEY_DISPLAY_NAME, null));
this.zzd = Strings.emptyToNull(jSONObject.optString("email", null));
this.zze = Strings.emptyToNull(jSONObject.optString("refreshToken", null));
this.zzf = jSONObject.optLong("expiresIn", 0L);
return this;
} catch (NullPointerException | JSONException e) {
throw zzabk.zza(e, zza, str);
}
}
public final String zzd() {
return this.zze;
}
public final String zzc() {
return this.zzb;
}
public final long zzb() {
return this.zzf;
}
}