61 lines
1.8 KiB
Java
61 lines
1.8 KiB
Java
package com.google.android.gms.internal.p002firebaseauthapi;
|
|
|
|
import android.text.TextUtils;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
import com.huawei.hms.support.feature.result.CommonConstant;
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class zzabg implements zzxm {
|
|
private String zza;
|
|
private String zzb;
|
|
private String zzc;
|
|
private String zzd;
|
|
private String zze;
|
|
private boolean zzf;
|
|
|
|
public static zzabg zzb(String str, String str2, boolean z) {
|
|
zzabg zzabgVar = new zzabg();
|
|
zzabgVar.zzb = Preconditions.checkNotEmpty(str);
|
|
zzabgVar.zzc = Preconditions.checkNotEmpty(str2);
|
|
zzabgVar.zzf = z;
|
|
return zzabgVar;
|
|
}
|
|
|
|
public static zzabg zzc(String str, String str2, boolean z) {
|
|
zzabg zzabgVar = new zzabg();
|
|
zzabgVar.zza = Preconditions.checkNotEmpty(str);
|
|
zzabgVar.zzd = Preconditions.checkNotEmpty(str2);
|
|
zzabgVar.zzf = z;
|
|
return zzabgVar;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzxm
|
|
public final String zza() throws JSONException {
|
|
JSONObject jSONObject = new JSONObject();
|
|
if (!TextUtils.isEmpty(this.zzd)) {
|
|
jSONObject.put("phoneNumber", this.zza);
|
|
jSONObject.put("temporaryProof", this.zzd);
|
|
} else {
|
|
jSONObject.put("sessionInfo", this.zzb);
|
|
jSONObject.put("code", this.zzc);
|
|
}
|
|
String str = this.zze;
|
|
if (str != null) {
|
|
jSONObject.put(CommonConstant.KEY_ID_TOKEN, str);
|
|
}
|
|
if (!this.zzf) {
|
|
jSONObject.put("operation", 2);
|
|
}
|
|
return jSONObject.toString();
|
|
}
|
|
|
|
public final void zzd(String str) {
|
|
this.zze = str;
|
|
}
|
|
|
|
private zzabg() {
|
|
}
|
|
}
|