granularity level: instruction
.class public final Lcom/google/firebase/messaging/Constants$MessagePayloadKeys;
.super Ljava/lang/Object;
.source "Constants.java"
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/messaging/Constants;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "MessagePayloadKeys"
.end annotation
.field public static final COLLAPSE_KEY:Ljava/lang/String; = "collapse_key"
.field public static final DELIVERED_PRIORITY:Ljava/lang/String; = "google.delivered_priority"
.field public static final FROM:Ljava/lang/String; = "from"
.field public static final MESSAGE_TYPE:Ljava/lang/String; = "message_type"
.field public static final MSGID:Ljava/lang/String; = "google.message_id"
.field public static final MSGID_SERVER:Ljava/lang/String; = "message_id"
.field public static final ORIGINAL_PRIORITY:Ljava/lang/String; = "google.original_priority"
.field public static final PRIORITY_REDUCED_V19:Ljava/lang/String; = "google.priority_reduced"
.field public static final PRIORITY_V19:Ljava/lang/String; = "google.priority"
.field public static final RAW_DATA:Ljava/lang/String; = "rawData"
.field public static final RESERVED_CLIENT_LIB_PREFIX:Ljava/lang/String; = "google.c."
.field public static final RESERVED_PREFIX:Ljava/lang/String; = "google."
.field public static final SENDER_ID:Ljava/lang/String; = "google.c.sender.id"
.field public static final SENT_TIME:Ljava/lang/String; = "google.sent_time"
.field public static final TO:Ljava/lang/String; = "google.to"
.field public static final TTL:Ljava/lang/String; = "google.ttl"
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static extractDeveloperDefinedPayload(Landroid/os/Bundle;)Landroidx/collection/ArrayMap;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/os/Bundle;",
")",
"Landroidx/collection/ArrayMap<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
new-instance v0, Landroidx/collection/ArrayMap;
invoke-direct {v0}, Landroidx/collection/ArrayMap;-><init>()V
invoke-virtual {p0}, Landroid/os/Bundle;->keySet()Ljava/util/Set;
move-result-object v1
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_0
:cond_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
invoke-virtual {p0, v2}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v3
instance-of v4, v3, Ljava/lang/String;
if-eqz v4, :cond_0
check-cast v3, Ljava/lang/String;
const-string v4, "google."
invoke-virtual {v2, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v4
if-nez v4, :cond_0
const-string v4, "gcm."
invoke-virtual {v2, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v4
if-nez v4, :cond_0
const-string v4, "from"
invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_0
const-string v4, "message_type"
invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_0
const-string v4, "collapse_key"
invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_0
invoke-virtual {v0, v2, v3}, Landroidx/collection/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
:cond_1
return-object v0
.end method