64 lines
2.0 KiB
Java
64 lines
2.0 KiB
Java
package com.google.firebase.auth.internal;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
|
import com.google.firebase.auth.MultiFactorInfo;
|
|
import com.google.firebase.auth.MultiFactorSession;
|
|
import com.google.firebase.auth.PhoneMultiFactorInfo;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class zzag extends MultiFactorSession {
|
|
public static final Parcelable.Creator<zzag> CREATOR = new zzah();
|
|
private String zza;
|
|
private String zzb;
|
|
private List zzc;
|
|
|
|
private zzag() {
|
|
}
|
|
|
|
public static zzag zzb(List list, String str) {
|
|
Preconditions.checkNotNull(list);
|
|
Preconditions.checkNotEmpty(str);
|
|
zzag zzagVar = new zzag();
|
|
zzagVar.zzc = new ArrayList();
|
|
Iterator it = list.iterator();
|
|
while (it.hasNext()) {
|
|
MultiFactorInfo multiFactorInfo = (MultiFactorInfo) it.next();
|
|
if (multiFactorInfo instanceof PhoneMultiFactorInfo) {
|
|
zzagVar.zzc.add((PhoneMultiFactorInfo) multiFactorInfo);
|
|
}
|
|
}
|
|
zzagVar.zzb = str;
|
|
return zzagVar;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public final void writeToParcel(Parcel parcel, int i) {
|
|
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
|
SafeParcelWriter.writeString(parcel, 1, this.zza, false);
|
|
SafeParcelWriter.writeString(parcel, 2, this.zzb, false);
|
|
SafeParcelWriter.writeTypedList(parcel, 3, this.zzc, false);
|
|
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public zzag(String str, String str2, List list) {
|
|
this.zza = str;
|
|
this.zzb = str2;
|
|
this.zzc = list;
|
|
}
|
|
|
|
public final String zzd() {
|
|
return this.zzb;
|
|
}
|
|
|
|
public final String zzc() {
|
|
return this.zza;
|
|
}
|
|
}
|