157 lines
2.6 KiB
Smali
157 lines
2.6 KiB
Smali
.class public final Lcom/google/firebase/messaging/SendException;
|
|
.super Ljava/lang/Exception;
|
|
.source "com.google.firebase:firebase-messaging@@20.2.4"
|
|
|
|
|
|
# instance fields
|
|
.field public final errorCode:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;)V
|
|
.locals 7
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const/4 v2, 0x3
|
|
|
|
const/4 v3, 0x4
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
sget-object v5, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
invoke-virtual {p1, v5}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v5, -0x1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v6
|
|
|
|
sparse-switch v6, :sswitch_data_0
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_0
|
|
const-string v6, "missing_to"
|
|
|
|
invoke-virtual {p1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v5, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_1
|
|
const-string v6, "messagetoobig"
|
|
|
|
invoke-virtual {p1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v5, 0x2
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_2
|
|
const-string v6, "invalid_parameters"
|
|
|
|
invoke-virtual {p1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_3
|
|
const-string v6, "toomanymessages"
|
|
|
|
invoke-virtual {p1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v5, 0x4
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_4
|
|
const-string v6, "service_not_available"
|
|
|
|
invoke-virtual {p1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v5, 0x3
|
|
|
|
:cond_1
|
|
:goto_1
|
|
if-eqz v5, :cond_5
|
|
|
|
if-eq v5, v0, :cond_5
|
|
|
|
if-eq v5, v1, :cond_4
|
|
|
|
if-eq v5, v2, :cond_3
|
|
|
|
if-eq v5, v3, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 v0, 0x4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const/4 v0, 0x3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
const/4 v0, 0x2
|
|
|
|
:cond_5
|
|
:goto_2
|
|
iput v0, p0, Lcom/google/firebase/messaging/SendException;->errorCode:I
|
|
|
|
return-void
|
|
|
|
nop
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x67e7c3ad -> :sswitch_4
|
|
-0x4cf26401 -> :sswitch_3
|
|
-0x36e3eace -> :sswitch_2
|
|
-0x24c7160d -> :sswitch_1
|
|
-0x5aa500c -> :sswitch_0
|
|
.end sparse-switch
|
|
.end method
|