what-the-bank/sources/com/google/firebase/messaging/RemoteMessage.java

46 lines
1.6 KiB
Java

package com.google.firebase.messaging;
import android.os.Bundle;
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 java.util.Map;
import o.nyh;
/* loaded from: classes2.dex */
public final class RemoteMessage extends AbstractSafeParcelable {
public static final Parcelable.Creator<RemoteMessage> CREATOR = new zzv();
Bundle zza;
private Map<String, String> zzb;
public RemoteMessage(Bundle bundle) {
this.zza = bundle;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeBundle(parcel, 2, this.zza, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
public final Map<String, String> getData() {
if (this.zzb == null) {
Bundle bundle = this.zza;
nyh nyhVar = new nyh();
for (String str : bundle.keySet()) {
Object obj = bundle.get(str);
if (obj instanceof String) {
String str2 = (String) obj;
if (!str.startsWith("google.") && !str.startsWith("gcm.") && !str.equals("from") && !str.equals("message_type") && !str.equals("collapse_key")) {
nyhVar.put(str, str2);
}
}
}
this.zzb = nyhVar;
}
return this.zzb;
}
}