.class public final Lcom/google/firebase/messaging/RemoteMessage; .super Lcom/google/android/gms/common/internal/safeparcel/AbstractSafeParcelable; .source "com.google.firebase:firebase-messaging@@23.0.0" # annotations .annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Class; creator = "RemoteMessageCreator" .end annotation .annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Reserved; value = { 0x1 } .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/google/firebase/messaging/RemoteMessage$Notification;, Lcom/google/firebase/messaging/RemoteMessage$Builder;, Lcom/google/firebase/messaging/RemoteMessage$MessagePriority; } .end annotation # static fields .field public static final CREATOR:Landroid/os/Parcelable$Creator; .annotation build Landroidx/annotation/NonNull; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Landroid/os/Parcelable$Creator<", "Lcom/google/firebase/messaging/RemoteMessage;", ">;" } .end annotation .end field .field public static final PRIORITY_HIGH:I = 0x1 .field public static final PRIORITY_NORMAL:I = 0x2 .field public static final PRIORITY_UNKNOWN:I # instance fields .field public bundle:Landroid/os/Bundle; .annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field; id = 0x2 .end annotation .end field .field private data:Ljava/util/Map; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/lang/String;", ">;" } .end annotation .end field .field private notification:Lcom/google/firebase/messaging/RemoteMessage$Notification; # direct methods .method public static constructor ()V .locals 1 new-instance v0, Lcom/google/firebase/messaging/RemoteMessageCreator; invoke-direct {v0}, Lcom/google/firebase/messaging/RemoteMessageCreator;->()V sput-object v0, Lcom/google/firebase/messaging/RemoteMessage;->CREATOR:Landroid/os/Parcelable$Creator; return-void .end method .method public constructor (Landroid/os/Bundle;)V .locals 0 .param p1 # Landroid/os/Bundle; .annotation build Landroidx/annotation/NonNull; .end annotation .annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param; id = 0x2 .end annotation .end param .annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Constructor; .end annotation .line 1 invoke-direct {p0}, Lcom/google/android/gms/common/internal/safeparcel/AbstractSafeParcelable;->()V iput-object p1, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; return-void .end method .method private getMessagePriority(Ljava/lang/String;)I .locals 1 const-string v0, "high" .line 1 invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 const/4 p1, 0x1 return p1 :cond_0 const-string v0, "normal" .line 2 invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result p1 if-eqz p1, :cond_1 const/4 p1, 0x2 return p1 :cond_1 const/4 p1, 0x0 return p1 .end method # virtual methods .method public getCollapseKey()Ljava/lang/String; .locals 2 .annotation build Landroidx/annotation/Nullable; .end annotation .line 1 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; const-string v1, "collapse_key" invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 return-object v0 .end method .method public getData()Ljava/util/Map; .locals 1 .annotation build Landroidx/annotation/NonNull; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/lang/String;", ">;" } .end annotation .line 1 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->data:Ljava/util/Map; if-nez v0, :cond_0 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; invoke-static {v0}, Lcom/google/firebase/messaging/Constants$MessagePayloadKeys;->extractDeveloperDefinedPayload(Landroid/os/Bundle;)Landroidx/collection/a; move-result-object v0 iput-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->data:Ljava/util/Map; :cond_0 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->data:Ljava/util/Map; return-object v0 .end method .method public getFrom()Ljava/lang/String; .locals 2 .annotation build Landroidx/annotation/Nullable; .end annotation .line 1 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; const-string v1, "from" invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 return-object v0 .end method .method public getMessageId()Ljava/lang/String; .locals 2 .annotation build Landroidx/annotation/Nullable; .end annotation .line 1 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; const-string v1, "google.message_id" invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 if-nez v0, :cond_0 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; const-string v1, "message_id" .line 2 invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 :cond_0 return-object v0 .end method .method public getMessageType()Ljava/lang/String; .locals 2 .annotation build Landroidx/annotation/Nullable; .end annotation .line 1 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; const-string v1, "message_type" invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 return-object v0 .end method .method public getNotification()Lcom/google/firebase/messaging/RemoteMessage$Notification; .locals 3 .annotation build Landroidx/annotation/Nullable; .end annotation .line 1 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->notification:Lcom/google/firebase/messaging/RemoteMessage$Notification; if-nez v0, :cond_0 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; invoke-static {v0}, Lcom/google/firebase/messaging/NotificationParams;->isNotification(Landroid/os/Bundle;)Z move-result v0 if-eqz v0, :cond_0 new-instance v0, Lcom/google/firebase/messaging/RemoteMessage$Notification; new-instance v1, Lcom/google/firebase/messaging/NotificationParams; iget-object v2, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; .line 2 invoke-direct {v1, v2}, Lcom/google/firebase/messaging/NotificationParams;->(Landroid/os/Bundle;)V const/4 v2, 0x0 invoke-direct {v0, v1, v2}, Lcom/google/firebase/messaging/RemoteMessage$Notification;->(Lcom/google/firebase/messaging/NotificationParams;Lcom/google/firebase/messaging/RemoteMessage$Notification-IA;)V iput-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->notification:Lcom/google/firebase/messaging/RemoteMessage$Notification; :cond_0 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->notification:Lcom/google/firebase/messaging/RemoteMessage$Notification; return-object v0 .end method .method public getOriginalPriority()I .locals 2 .line 1 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; const-string v1, "google.original_priority" invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 if-nez v0, :cond_0 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; const-string v1, "google.priority" .line 2 invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 .line 3 :cond_0 invoke-direct {p0, v0}, Lcom/google/firebase/messaging/RemoteMessage;->getMessagePriority(Ljava/lang/String;)I move-result v0 return v0 .end method .method public getPriority()I .locals 2 .line 1 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; const-string v1, "google.delivered_priority" invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 if-nez v0, :cond_1 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; const-string v1, "google.priority_reduced" .line 2 invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 const-string v1, "1" invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 const/4 v0, 0x2 return v0 :cond_0 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; const-string v1, "google.priority" .line 3 invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 .line 4 :cond_1 invoke-direct {p0, v0}, Lcom/google/firebase/messaging/RemoteMessage;->getMessagePriority(Ljava/lang/String;)I move-result v0 return v0 .end method .method public getRawData()[B .locals 2 .annotation build Landroidx/annotation/Nullable; .end annotation .annotation build Lcom/google/android/gms/common/internal/ShowFirstParty; .end annotation .line 1 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; const-string v1, "rawData" invoke-virtual {v0, v1}, Landroid/os/Bundle;->getByteArray(Ljava/lang/String;)[B move-result-object v0 return-object v0 .end method .method public getSenderId()Ljava/lang/String; .locals 2 .annotation build Landroidx/annotation/Nullable; .end annotation .line 1 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; const-string v1, "google.c.sender.id" invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 return-object v0 .end method .method public getSentTime()J .locals 2 .line 1 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; const-string v1, "google.sent_time" invoke-virtual {v0, v1}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object; move-result-object v0 .line 2 instance-of v1, v0, Ljava/lang/Long; if-eqz v1, :cond_0 .line 3 check-cast v0, Ljava/lang/Long; invoke-virtual {v0}, Ljava/lang/Long;->longValue()J move-result-wide v0 return-wide v0 .line 4 :cond_0 instance-of v1, v0, Ljava/lang/String; if-eqz v1, :cond_1 .line 5 :try_start_0 move-object v1, v0 check-cast v1, Ljava/lang/String; invoke-static {v1}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J move-result-wide v0 :try_end_0 .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0 return-wide v0 .line 6 :catch_0 invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object v0 const-string v1, "Invalid sent time: " invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 const-string v1, "FirebaseMessaging" invoke-static {v1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I :cond_1 const-wide/16 v0, 0x0 return-wide v0 .end method .method public getTo()Ljava/lang/String; .locals 2 .annotation build Landroidx/annotation/Nullable; .end annotation .line 1 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; const-string v1, "google.to" invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 return-object v0 .end method .method public getTtl()I .locals 2 .line 1 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; const-string v1, "google.ttl" invoke-virtual {v0, v1}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object; move-result-object v0 .line 2 instance-of v1, v0, Ljava/lang/Integer; if-eqz v1, :cond_0 .line 3 check-cast v0, Ljava/lang/Integer; invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I move-result v0 return v0 .line 4 :cond_0 instance-of v1, v0, Ljava/lang/String; if-eqz v1, :cond_1 .line 5 :try_start_0 move-object v1, v0 check-cast v1, Ljava/lang/String; invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I move-result v0 :try_end_0 .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0 return v0 .line 6 :catch_0 invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object v0 const-string v1, "Invalid TTL: " invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 const-string v1, "FirebaseMessaging" invoke-static {v1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I :cond_1 const/4 v0, 0x0 return v0 .end method .method public populateSendMessageIntent(Landroid/content/Intent;)V .locals 1 .line 1 iget-object v0, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; invoke-virtual {p1, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent; return-void .end method .method public toIntent()Landroid/content/Intent; .locals 2 .annotation build Landroidx/annotation/NonNull; .end annotation .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .line 1 new-instance v0, Landroid/content/Intent; invoke-direct {v0}, Landroid/content/Intent;->()V iget-object v1, p0, Lcom/google/firebase/messaging/RemoteMessage;->bundle:Landroid/os/Bundle; .line 2 invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent; return-object v0 .end method .method public writeToParcel(Landroid/os/Parcel;I)V .locals 0 .param p1 # Landroid/os/Parcel; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .line 1 invoke-static {p0, p1, p2}, Lcom/google/firebase/messaging/RemoteMessageCreator;->writeToParcel(Lcom/google/firebase/messaging/RemoteMessage;Landroid/os/Parcel;I)V return-void .end method