3875 lines
94 KiB
Smali
3875 lines
94 KiB
Smali
.class public final Lcom/discord/utilities/fcm/NotificationData;
|
|
.super Ljava/lang/Object;
|
|
.source "NotificationData.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;,
|
|
Lcom/discord/utilities/fcm/NotificationData$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final ACTIVITY_ACTION_TYPE_JOIN:I = 0x1
|
|
|
|
.field public static final ACTIVITY_ACTION_TYPE_SPECTATE:I = 0x2
|
|
|
|
.field public static final ACTIVITY_TYPE_PLAYING:I = 0x0
|
|
|
|
.field public static final ACTIVITY_TYPE_STREAMING:I = 0x1
|
|
|
|
.field public static final ANALYTICS_ACTIVITY_NAME:Ljava/lang/String; = "activity_name"
|
|
|
|
.field public static final ANALYTICS_ACTIVITY_TYPE:Ljava/lang/String; = "activity_type"
|
|
|
|
.field public static final ANALYTICS_CHANNEL_ID:Ljava/lang/String; = "channel_id"
|
|
|
|
.field public static final ANALYTICS_CHANNEL_TYPE:Ljava/lang/String; = "channel_type"
|
|
|
|
.field public static final ANALYTICS_GUILD_ID:Ljava/lang/String; = "guild_id"
|
|
|
|
.field public static final ANALYTICS_MESSAGE_ID:Ljava/lang/String; = "message_id"
|
|
|
|
.field public static final ANALYTICS_MESSAGE_TYPE:Ljava/lang/String; = "message_type"
|
|
|
|
.field public static final ANALYTICS_NOTIF_IN_APP:Ljava/lang/String; = "notif_in_app"
|
|
|
|
.field public static final ANALYTICS_NOTIF_TYPE:Ljava/lang/String; = "notif_type"
|
|
|
|
.field public static final ANALYTICS_NOTIF_USER_ID:Ljava/lang/String; = "notif_user_id"
|
|
|
|
.field public static final ANALYTICS_REL_TYPE:Ljava/lang/String; = "rel_type"
|
|
|
|
.field public static final Companion:Lcom/discord/utilities/fcm/NotificationData$Companion;
|
|
|
|
.field public static final GROUP_KEY_PREFIX:Ljava/lang/String; = "GROUP_"
|
|
|
|
.field public static final MSG_MUTE_MIN_COUNT:I = 0x2
|
|
|
|
.field public static final TYPE_ACTIVITY_START:Ljava/lang/String; = "ACTIVITY_START"
|
|
|
|
.field public static final TYPE_APPLICATION_LIBRARY_INSTALL_COMPLETE:Ljava/lang/String; = "APPLICATION_LIBRARY_INSTALL_COMPLETE"
|
|
|
|
.field public static final TYPE_CALL_RING:Ljava/lang/String; = "CALL_RING"
|
|
|
|
.field public static final TYPE_MESSAGE_CREATE:Ljava/lang/String; = "MESSAGE_CREATE"
|
|
|
|
.field public static final TYPE_RELATIONSHIP_ADD:Ljava/lang/String; = "RELATIONSHIP_ADD"
|
|
|
|
.field public static final UNSET_INT:I = -0x1
|
|
|
|
.field public static final UNSET_LONG:J = -0x1L
|
|
|
|
|
|
# instance fields
|
|
.field public final ackChannelIds:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Long;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final activityName:Ljava/lang/String;
|
|
|
|
.field public final activityType:I
|
|
|
|
.field public final applicationIcon:Ljava/lang/String;
|
|
|
|
.field public final applicationId:J
|
|
|
|
.field public final applicationName:Ljava/lang/String;
|
|
|
|
.field public final channelIcon:Ljava/lang/String;
|
|
|
|
.field public final channelId:J
|
|
|
|
.field public final channelName:Ljava/lang/String;
|
|
|
|
.field public final channelType:I
|
|
|
|
.field public final guildIcon:Ljava/lang/String;
|
|
|
|
.field public final guildId:J
|
|
|
|
.field public final guildName:Ljava/lang/String;
|
|
|
|
.field public final isGroupConversation:Z
|
|
|
|
.field public final messageActivityType:I
|
|
|
|
.field public final messageApplicationName:Ljava/lang/String;
|
|
|
|
.field public final messageContent:Ljava/lang/String;
|
|
|
|
.field public final messageId:J
|
|
|
|
.field public final messageType:I
|
|
|
|
.field public final relationshipType:I
|
|
|
|
.field public final sticker:Lcom/discord/models/dsti/dto/ModelDsti;
|
|
|
|
.field public final type:Ljava/lang/String;
|
|
|
|
.field public final userAvatar:Ljava/lang/String;
|
|
|
|
.field public final userId:J
|
|
|
|
.field public final userUsername:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lcom/discord/utilities/fcm/NotificationData$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/utilities/fcm/NotificationData$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/utilities/fcm/NotificationData;->Companion:Lcom/discord/utilities/fcm/NotificationData$Companion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/utilities/fcm/NotificationData;-><init>(Ljava/util/Map;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/String;JILjava/lang/String;ILjava/lang/String;JLjava/util/List;ILjava/lang/String;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;IJLjava/lang/String;Ljava/lang/String;ILjava/lang/String;JLjava/lang/String;Ljava/lang/String;Lcom/discord/models/dsti/dto/ModelDsti;)V
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/String;",
|
|
"JI",
|
|
"Ljava/lang/String;",
|
|
"I",
|
|
"Ljava/lang/String;",
|
|
"J",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Long;",
|
|
">;I",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
"J",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
"IJ",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
"I",
|
|
"Ljava/lang/String;",
|
|
"J",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
"Lcom/discord/models/dsti/dto/ModelDsti;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object/from16 v2, p10
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object v1, v0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
move-wide v4, p2
|
|
|
|
iput-wide v4, v0, Lcom/discord/utilities/fcm/NotificationData;->messageId:J
|
|
|
|
move v1, p4
|
|
|
|
iput v1, v0, Lcom/discord/utilities/fcm/NotificationData;->messageActivityType:I
|
|
|
|
move-object v1, p5
|
|
|
|
iput-object v1, v0, Lcom/discord/utilities/fcm/NotificationData;->messageApplicationName:Ljava/lang/String;
|
|
|
|
move/from16 v1, p6
|
|
|
|
iput v1, v0, Lcom/discord/utilities/fcm/NotificationData;->messageType:I
|
|
|
|
move-object/from16 v1, p7
|
|
|
|
iput-object v1, v0, Lcom/discord/utilities/fcm/NotificationData;->messageContent:Ljava/lang/String;
|
|
|
|
move-wide/from16 v4, p8
|
|
|
|
iput-wide v4, v0, Lcom/discord/utilities/fcm/NotificationData;->channelId:J
|
|
|
|
iput-object v2, v0, Lcom/discord/utilities/fcm/NotificationData;->ackChannelIds:Ljava/util/List;
|
|
|
|
move/from16 v1, p11
|
|
|
|
iput v1, v0, Lcom/discord/utilities/fcm/NotificationData;->channelType:I
|
|
|
|
move-object/from16 v1, p12
|
|
|
|
iput-object v1, v0, Lcom/discord/utilities/fcm/NotificationData;->channelName:Ljava/lang/String;
|
|
|
|
move-object/from16 v1, p13
|
|
|
|
iput-object v1, v0, Lcom/discord/utilities/fcm/NotificationData;->channelIcon:Ljava/lang/String;
|
|
|
|
move-wide/from16 v1, p14
|
|
|
|
iput-wide v1, v0, Lcom/discord/utilities/fcm/NotificationData;->userId:J
|
|
|
|
move-object/from16 v1, p16
|
|
|
|
iput-object v1, v0, Lcom/discord/utilities/fcm/NotificationData;->userUsername:Ljava/lang/String;
|
|
|
|
move-object/from16 v1, p17
|
|
|
|
iput-object v1, v0, Lcom/discord/utilities/fcm/NotificationData;->userAvatar:Ljava/lang/String;
|
|
|
|
move/from16 v1, p18
|
|
|
|
iput v1, v0, Lcom/discord/utilities/fcm/NotificationData;->relationshipType:I
|
|
|
|
move-object/from16 v1, p21
|
|
|
|
iput-object v1, v0, Lcom/discord/utilities/fcm/NotificationData;->guildName:Ljava/lang/String;
|
|
|
|
move-object/from16 v1, p22
|
|
|
|
iput-object v1, v0, Lcom/discord/utilities/fcm/NotificationData;->guildIcon:Ljava/lang/String;
|
|
|
|
move/from16 v1, p23
|
|
|
|
iput v1, v0, Lcom/discord/utilities/fcm/NotificationData;->activityType:I
|
|
|
|
move-object/from16 v1, p24
|
|
|
|
iput-object v1, v0, Lcom/discord/utilities/fcm/NotificationData;->activityName:Ljava/lang/String;
|
|
|
|
move-wide/from16 v1, p25
|
|
|
|
iput-wide v1, v0, Lcom/discord/utilities/fcm/NotificationData;->applicationId:J
|
|
|
|
move-object/from16 v1, p27
|
|
|
|
iput-object v1, v0, Lcom/discord/utilities/fcm/NotificationData;->applicationName:Ljava/lang/String;
|
|
|
|
move-object/from16 v1, p28
|
|
|
|
iput-object v1, v0, Lcom/discord/utilities/fcm/NotificationData;->applicationIcon:Ljava/lang/String;
|
|
|
|
move-object/from16 v1, p29
|
|
|
|
iput-object v1, v0, Lcom/discord/utilities/fcm/NotificationData;->sticker:Lcom/discord/models/dsti/dto/ModelDsti;
|
|
|
|
invoke-static/range {p19 .. p20}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Number;->longValue()J
|
|
|
|
move-result-wide v4
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-wide/16 v6, -0x1
|
|
|
|
const/4 v8, 0x1
|
|
|
|
cmp-long v9, v4, v6
|
|
|
|
if-nez v9, :cond_0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v4, 0x0
|
|
|
|
:goto_0
|
|
if-nez v4, :cond_1
|
|
|
|
move-object v3, v1
|
|
|
|
:cond_1
|
|
const/4 v1, 0x3
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v6
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
iget v3, v0, Lcom/discord/utilities/fcm/NotificationData;->channelType:I
|
|
|
|
if-eq v3, v8, :cond_3
|
|
|
|
if-eq v3, v1, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const-wide/16 v6, 0x0
|
|
|
|
:goto_1
|
|
iput-wide v6, v0, Lcom/discord/utilities/fcm/NotificationData;->guildId:J
|
|
|
|
iget-object v3, v0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
const-string v4, "MESSAGE_CREATE"
|
|
|
|
invoke-static {v3, v4}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_5
|
|
|
|
iget v3, v0, Lcom/discord/utilities/fcm/NotificationData;->channelType:I
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
if-ne v3, v1, :cond_5
|
|
|
|
:cond_4
|
|
const/4 v2, 0x1
|
|
|
|
:cond_5
|
|
iput-boolean v2, v0, Lcom/discord/utilities/fcm/NotificationData;->isGroupConversation:Z
|
|
|
|
return-void
|
|
|
|
:cond_6
|
|
const-string v1, "ackChannelIds"
|
|
|
|
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v3
|
|
|
|
:cond_7
|
|
const-string v1, "type"
|
|
|
|
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v3
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/util/Map;)V
|
|
.locals 34
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
if-eqz v0, :cond_b
|
|
|
|
const-string v1, "type"
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v1, ""
|
|
|
|
:goto_0
|
|
move-object v3, v1
|
|
|
|
const-string v1, "message_id"
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
const-wide/16 v4, -0x1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-static {v1}, Lj0/t/j;->toLongOrNull(Ljava/lang/String;)Ljava/lang/Long;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v1
|
|
|
|
move-wide v6, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-wide v6, v4
|
|
|
|
:goto_1
|
|
const-string v1, "message_activity_type"
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-static {v1}, Lj0/t/j;->toIntOrNull(Ljava/lang/String;)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 v1, -0x1
|
|
|
|
:goto_2
|
|
const-string v8, "message_application_name"
|
|
|
|
invoke-interface {v0, v8}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v8
|
|
|
|
check-cast v8, Ljava/lang/String;
|
|
|
|
const-string v9, "message_type_"
|
|
|
|
invoke-interface {v0, v9}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v9
|
|
|
|
check-cast v9, Ljava/lang/String;
|
|
|
|
if-eqz v9, :cond_3
|
|
|
|
invoke-static {v9}, Lj0/t/j;->toIntOrNull(Ljava/lang/String;)Ljava/lang/Integer;
|
|
|
|
move-result-object v9
|
|
|
|
if-eqz v9, :cond_3
|
|
|
|
invoke-virtual {v9}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v9
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
const/4 v9, -0x1
|
|
|
|
:goto_3
|
|
const-string v10, "message_content"
|
|
|
|
invoke-interface {v0, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v10
|
|
|
|
check-cast v10, Ljava/lang/String;
|
|
|
|
const-string v11, "channel_id"
|
|
|
|
invoke-interface {v0, v11}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v11
|
|
|
|
check-cast v11, Ljava/lang/String;
|
|
|
|
if-eqz v11, :cond_4
|
|
|
|
invoke-static {v11}, Lj0/t/j;->toLongOrNull(Ljava/lang/String;)Ljava/lang/Long;
|
|
|
|
move-result-object v11
|
|
|
|
if-eqz v11, :cond_4
|
|
|
|
invoke-virtual {v11}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v11
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
move-wide v11, v4
|
|
|
|
:goto_4
|
|
sget-object v13, Lcom/discord/utilities/fcm/NotificationData;->Companion:Lcom/discord/utilities/fcm/NotificationData$Companion;
|
|
|
|
const-string v14, "channel_ids"
|
|
|
|
invoke-interface {v0, v14}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v14
|
|
|
|
check-cast v14, Ljava/lang/String;
|
|
|
|
invoke-static {v13, v14}, Lcom/discord/utilities/fcm/NotificationData$Companion;->access$parseAckChannelIds(Lcom/discord/utilities/fcm/NotificationData$Companion;Ljava/lang/String;)Ljava/util/List;
|
|
|
|
move-result-object v13
|
|
|
|
const-string v14, "channel_type"
|
|
|
|
invoke-interface {v0, v14}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v14
|
|
|
|
check-cast v14, Ljava/lang/String;
|
|
|
|
if-eqz v14, :cond_5
|
|
|
|
invoke-static {v14}, Lj0/t/j;->toIntOrNull(Ljava/lang/String;)Ljava/lang/Integer;
|
|
|
|
move-result-object v14
|
|
|
|
if-eqz v14, :cond_5
|
|
|
|
invoke-virtual {v14}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v14
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
const/4 v14, -0x1
|
|
|
|
:goto_5
|
|
const-string v15, "channel_name"
|
|
|
|
invoke-interface {v0, v15}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v15
|
|
|
|
check-cast v15, Ljava/lang/String;
|
|
|
|
const-string v2, "channel_icon"
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
move-object/from16 v17, v2
|
|
|
|
check-cast v17, Ljava/lang/String;
|
|
|
|
const-string v2, "user_id"
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
invoke-static {v2}, Lj0/t/j;->toLongOrNull(Ljava/lang/String;)Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v18
|
|
|
|
goto :goto_6
|
|
|
|
:cond_6
|
|
move-wide/from16 v18, v4
|
|
|
|
:goto_6
|
|
const-string v2, "user_username"
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
move-object/from16 v20, v2
|
|
|
|
check-cast v20, Ljava/lang/String;
|
|
|
|
const-string v2, "user_avatar"
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
move-object/from16 v21, v2
|
|
|
|
check-cast v21, Ljava/lang/String;
|
|
|
|
const-string v2, "rel_type"
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
invoke-static {v2}, Lj0/t/j;->toIntOrNull(Ljava/lang/String;)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v2
|
|
|
|
move/from16 v22, v2
|
|
|
|
goto :goto_7
|
|
|
|
:cond_7
|
|
const/16 v22, -0x1
|
|
|
|
:goto_7
|
|
const-string v2, "guild_id"
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
if-eqz v2, :cond_8
|
|
|
|
invoke-static {v2}, Lj0/t/j;->toLongOrNull(Ljava/lang/String;)Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_8
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v23
|
|
|
|
goto :goto_8
|
|
|
|
:cond_8
|
|
move-wide/from16 v23, v4
|
|
|
|
:goto_8
|
|
const-string v2, "guild_name"
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
move-object/from16 v25, v2
|
|
|
|
check-cast v25, Ljava/lang/String;
|
|
|
|
const-string v2, "guild_icon"
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
move-object/from16 v26, v2
|
|
|
|
check-cast v26, Ljava/lang/String;
|
|
|
|
const-string v2, "activity_type"
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
if-eqz v2, :cond_9
|
|
|
|
invoke-static {v2}, Lj0/t/j;->toIntOrNull(Ljava/lang/String;)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_9
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v2
|
|
|
|
move/from16 v27, v2
|
|
|
|
goto :goto_9
|
|
|
|
:cond_9
|
|
const/16 v27, -0x1
|
|
|
|
:goto_9
|
|
const-string v2, "activity_name"
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
move-object/from16 v28, v2
|
|
|
|
check-cast v28, Ljava/lang/String;
|
|
|
|
const-string v2, "application_id"
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
if-eqz v2, :cond_a
|
|
|
|
invoke-static {v2}, Lj0/t/j;->toLongOrNull(Ljava/lang/String;)Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_a
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v4
|
|
|
|
:cond_a
|
|
move-wide/from16 v32, v4
|
|
|
|
const-string v2, "application_name"
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
move-object/from16 v29, v2
|
|
|
|
check-cast v29, Ljava/lang/String;
|
|
|
|
const-string v2, "application_icon"
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
move-object/from16 v30, v2
|
|
|
|
check-cast v30, Ljava/lang/String;
|
|
|
|
sget-object v2, Lcom/discord/utilities/dsti/DstiUtils;->INSTANCE:Lcom/discord/utilities/dsti/DstiUtils;
|
|
|
|
const-string v4, "message"
|
|
|
|
invoke-interface {v0, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v0}, Lcom/discord/utilities/dsti/DstiUtils;->parseFromMessageNotificationJson(Ljava/lang/String;)Lcom/discord/models/dsti/dto/ModelDsti;
|
|
|
|
move-result-object v31
|
|
|
|
move-object/from16 v2, p0
|
|
|
|
move-wide v4, v6
|
|
|
|
move v6, v1
|
|
|
|
move-object v7, v8
|
|
|
|
move v8, v9
|
|
|
|
move-object v9, v10
|
|
|
|
move-wide v10, v11
|
|
|
|
move-object v12, v13
|
|
|
|
move v13, v14
|
|
|
|
move-object v14, v15
|
|
|
|
move-object/from16 v15, v17
|
|
|
|
move-wide/from16 v16, v18
|
|
|
|
move-object/from16 v18, v20
|
|
|
|
move-object/from16 v19, v21
|
|
|
|
move/from16 v20, v22
|
|
|
|
move-wide/from16 v21, v23
|
|
|
|
move-object/from16 v23, v25
|
|
|
|
move-object/from16 v24, v26
|
|
|
|
move/from16 v25, v27
|
|
|
|
move-object/from16 v26, v28
|
|
|
|
move-wide/from16 v27, v32
|
|
|
|
invoke-direct/range {v2 .. v31}, Lcom/discord/utilities/fcm/NotificationData;-><init>(Ljava/lang/String;JILjava/lang/String;ILjava/lang/String;JLjava/util/List;ILjava/lang/String;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;IJLjava/lang/String;Ljava/lang/String;ILjava/lang/String;JLjava/lang/String;Ljava/lang/String;Lcom/discord/models/dsti/dto/ModelDsti;)V
|
|
|
|
return-void
|
|
|
|
:cond_b
|
|
const-string v0, "data"
|
|
|
|
invoke-static {v0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method private final addTrackingData(Landroid/content/Intent;)Landroid/content/Intent;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
const-string v1, "notif_type"
|
|
|
|
invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
iget-wide v0, p0, Lcom/discord/utilities/fcm/NotificationData;->userId:J
|
|
|
|
const-string v2, "notif_user_id"
|
|
|
|
invoke-virtual {p1, v2, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
iget-wide v0, p0, Lcom/discord/utilities/fcm/NotificationData;->messageId:J
|
|
|
|
const-string v2, "message_id"
|
|
|
|
invoke-virtual {p1, v2, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
iget v0, p0, Lcom/discord/utilities/fcm/NotificationData;->messageType:I
|
|
|
|
const-string v1, "message_type"
|
|
|
|
invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
iget-wide v0, p0, Lcom/discord/utilities/fcm/NotificationData;->guildId:J
|
|
|
|
const-string v2, "guild_id"
|
|
|
|
invoke-virtual {p1, v2, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
iget-wide v0, p0, Lcom/discord/utilities/fcm/NotificationData;->channelId:J
|
|
|
|
const-string v2, "channel_id"
|
|
|
|
invoke-virtual {p1, v2, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
iget v0, p0, Lcom/discord/utilities/fcm/NotificationData;->channelType:I
|
|
|
|
const-string v1, "channel_type"
|
|
|
|
invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
iget v0, p0, Lcom/discord/utilities/fcm/NotificationData;->relationshipType:I
|
|
|
|
const-string v1, "rel_type"
|
|
|
|
invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
iget v0, p0, Lcom/discord/utilities/fcm/NotificationData;->activityType:I
|
|
|
|
const-string v1, "activity_type"
|
|
|
|
invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/fcm/NotificationData;->activityName:Ljava/lang/String;
|
|
|
|
const-string v1, "activity_name"
|
|
|
|
invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "intent\n .putExtra\u2026IVITY_NAME, activityName)"
|
|
|
|
invoke-static {p1, v0}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private final getChannelNameEscaped()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
sget-object v0, Lcom/discord/utilities/textprocessing/Parsers;->INSTANCE:Lcom/discord/utilities/textprocessing/Parsers;
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->channelName:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/textprocessing/Parsers;->escapeMarkdownCharacters(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getContentIntentInternal()Landroid/content/Intent;
|
|
.locals 9
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
const v2, -0x4f1a5206
|
|
|
|
if-eq v1, v2, :cond_2
|
|
|
|
const v2, 0x3a0e4b12
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
const v2, 0x3b7f2454
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const-string v1, "MESSAGE_CREATE"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-string v1, "ACTIVITY_START"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
sget-object v0, Lcom/discord/utilities/intent/IntentUtils$RouteBuilders;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteBuilders;
|
|
|
|
iget-wide v1, p0, Lcom/discord/utilities/fcm/NotificationData;->userId:J
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/discord/utilities/intent/IntentUtils$RouteBuilders;->selectDirectMessage(J)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const-string v1, "RELATIONSHIP_ADD"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
:goto_0
|
|
iget v0, p0, Lcom/discord/utilities/fcm/NotificationData;->channelType:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_3
|
|
|
|
iget-wide v2, p0, Lcom/discord/utilities/fcm/NotificationData;->channelId:J
|
|
|
|
iget-wide v4, p0, Lcom/discord/utilities/fcm/NotificationData;->guildId:J
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x4
|
|
|
|
const/4 v8, 0x0
|
|
|
|
invoke-static/range {v2 .. v8}, Lcom/discord/utilities/intent/IntentUtils$RouteBuilders;->selectChannel$default(JJLjava/lang/Long;ILjava/lang/Object;)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
iget-wide v1, p0, Lcom/discord/utilities/fcm/NotificationData;->channelId:J
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x4
|
|
|
|
const/4 v7, 0x0
|
|
|
|
invoke-static/range {v1 .. v7}, Lcom/discord/utilities/intent/IntentUtils$RouteBuilders;->selectChannel$default(JJLjava/lang/Long;ILjava/lang/Object;)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
:goto_1
|
|
iget-wide v1, p0, Lcom/discord/utilities/fcm/NotificationData;->channelId:J
|
|
|
|
iget-wide v3, p0, Lcom/discord/utilities/fcm/NotificationData;->guildId:J
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x4
|
|
|
|
const/4 v7, 0x0
|
|
|
|
invoke-static/range {v1 .. v7}, Lcom/discord/utilities/intent/IntentUtils$RouteBuilders;->selectChannel$default(JJLjava/lang/Long;ILjava/lang/Object;)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_2
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getIconUrlForChannel()Ljava/lang/String;
|
|
.locals 9
|
|
|
|
iget v3, p0, Lcom/discord/utilities/fcm/NotificationData;->channelType:I
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eq v3, v0, :cond_0
|
|
|
|
const/4 v0, 0x5
|
|
|
|
if-eq v3, v0, :cond_1
|
|
|
|
const/16 v0, 0x9
|
|
|
|
if-eq v3, v0, :cond_1
|
|
|
|
iget-wide v0, p0, Lcom/discord/utilities/fcm/NotificationData;->channelId:J
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/fcm/NotificationData;->channelIcon:Ljava/lang/String;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/16 v6, 0x10
|
|
|
|
const/4 v7, 0x0
|
|
|
|
invoke-static/range {v0 .. v7}, Lcom/discord/utilities/icon/IconUtils;->getForChannel$default(JLjava/lang/String;IZLjava/lang/Integer;ILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/discord/utilities/fcm/NotificationData;->getIconUrlForUser()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-wide v0, p0, Lcom/discord/utilities/fcm/NotificationData;->guildId:J
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p0, Lcom/discord/utilities/fcm/NotificationData;->guildIcon:Ljava/lang/String;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x18
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const-string v4, ""
|
|
|
|
invoke-static/range {v2 .. v8}, Lcom/discord/utilities/icon/IconUtils;->getForGuild$default(Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/Integer;ILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final renderMarkdown(Ljava/lang/String;)Ljava/lang/CharSequence;
|
|
.locals 0
|
|
|
|
invoke-static {p1}, Lf/a/j/a/b/g;->b(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final copyForDirectReply(Lcom/discord/models/domain/ModelMessage;)Lcom/discord/utilities/fcm/NotificationData;
|
|
.locals 35
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
new-instance v32, Lcom/discord/utilities/fcm/NotificationData;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelMessage;->getId()J
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelMessage;->getActivity()Lcom/discord/models/domain/ModelMessage$Activity;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessage$Activity;->getType()I
|
|
|
|
move-result v2
|
|
|
|
move v6, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v2, -0x1
|
|
|
|
const/4 v6, -0x1
|
|
|
|
:goto_0
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelMessage;->getApplication()Lcom/discord/models/domain/ModelApplication;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelApplication;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
move-object v7, v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v7, 0x0
|
|
|
|
:goto_1
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelMessage;->getType()I
|
|
|
|
move-result v8
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelMessage;->getContent()Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelMessage;->getChannelId()J
|
|
|
|
move-result-wide v10
|
|
|
|
sget-object v12, Lj0/i/n;->d:Lj0/i/n;
|
|
|
|
iget v13, v0, Lcom/discord/utilities/fcm/NotificationData;->channelType:I
|
|
|
|
iget-object v14, v0, Lcom/discord/utilities/fcm/NotificationData;->channelName:Ljava/lang/String;
|
|
|
|
iget-object v15, v0, Lcom/discord/utilities/fcm/NotificationData;->channelIcon:Ljava/lang/String;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelMessage;->getAuthor()Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "message.author"
|
|
|
|
invoke-static {v2, v3}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
move-result-wide v16
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelMessage;->getAuthor()Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2, v3}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelUser;->getUsername()Ljava/lang/String;
|
|
|
|
move-result-object v18
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelMessage;->getAuthor()Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2, v3}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelUser;->getAvatar()Ljava/lang/String;
|
|
|
|
move-result-object v19
|
|
|
|
const/16 v20, -0x1
|
|
|
|
iget-wide v2, v0, Lcom/discord/utilities/fcm/NotificationData;->guildId:J
|
|
|
|
iget-object v1, v0, Lcom/discord/utilities/fcm/NotificationData;->guildName:Ljava/lang/String;
|
|
|
|
move-object/from16 v23, v1
|
|
|
|
iget-object v1, v0, Lcom/discord/utilities/fcm/NotificationData;->guildIcon:Ljava/lang/String;
|
|
|
|
const/16 v25, -0x1
|
|
|
|
const/16 v26, 0x0
|
|
|
|
const-wide/16 v27, -0x1
|
|
|
|
const/16 v29, 0x0
|
|
|
|
const/16 v30, 0x0
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelMessage;->getStickers()Ljava/util/List;
|
|
|
|
move-result-object v22
|
|
|
|
if-eqz v22, :cond_2
|
|
|
|
invoke-static/range {v22 .. v22}, Lj0/i/l;->firstOrNull(Ljava/util/List;)Ljava/lang/Object;
|
|
|
|
move-result-object v21
|
|
|
|
check-cast v21, Lcom/discord/models/dsti/dto/ModelDsti;
|
|
|
|
move-object/from16 v31, v21
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/16 v31, 0x0
|
|
|
|
:goto_2
|
|
const-string v21, "MESSAGE_CREATE"
|
|
|
|
move-wide/from16 v33, v2
|
|
|
|
move-object/from16 v3, v21
|
|
|
|
move-object/from16 v2, v32
|
|
|
|
move-wide/from16 v21, v33
|
|
|
|
move-object/from16 v24, v1
|
|
|
|
invoke-direct/range {v2 .. v31}, Lcom/discord/utilities/fcm/NotificationData;-><init>(Ljava/lang/String;JILjava/lang/String;ILjava/lang/String;JLjava/util/List;ILjava/lang/String;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;IJLjava/lang/String;Ljava/lang/String;ILjava/lang/String;JLjava/lang/String;Ljava/lang/String;Lcom/discord/models/dsti/dto/ModelDsti;)V
|
|
|
|
return-object v32
|
|
|
|
:cond_3
|
|
const-string v1, "message"
|
|
|
|
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public final getAckChannelIds()Ljava/util/List;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Long;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/fcm/NotificationData;->ackChannelIds:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getCallAction(Landroid/content/Context;Z)Landroidx/core/app/NotificationCompat$Action;
|
|
.locals 13
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x18
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
const-string v2, "CALL_RING"
|
|
|
|
invoke-static {v1, v2}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
xor-int/lit8 v1, v1, 0x1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
sget-object v2, Lcom/discord/utilities/fcm/NotificationActions;->Companion:Lcom/discord/utilities/fcm/NotificationActions$Companion;
|
|
|
|
iget-wide v4, p0, Lcom/discord/utilities/fcm/NotificationData;->channelId:J
|
|
|
|
iget-wide v6, p0, Lcom/discord/utilities/fcm/NotificationData;->messageId:J
|
|
|
|
move-object v3, p1
|
|
|
|
move v8, p2
|
|
|
|
invoke-virtual/range {v2 .. v8}, Lcom/discord/utilities/fcm/NotificationActions$Companion;->callAction(Landroid/content/Context;JJZ)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/utilities/fcm/NotificationData;->addTrackingData(Landroid/content/Intent;)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {p1, v1, v0, v1}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
const v1, 0x7f120d81
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const v2, 0x7f0601fb
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const v1, 0x7f12055c
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const v2, 0x7f060235
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
:goto_0
|
|
iget-object v1, v3, Lkotlin/Pair;->first:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/Number;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, v3, Lkotlin/Pair;->second:Ljava/lang/Object;
|
|
|
|
check-cast v2, Ljava/lang/Number;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v3, "ctx.getString(nameRes)"
|
|
|
|
invoke-static {v1, v3}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v4, Lcom/discord/utilities/textprocessing/Parsers;->INSTANCE:Lcom/discord/utilities/textprocessing/Parsers;
|
|
|
|
const-string v3, "**"
|
|
|
|
invoke-static {v3, v1, v3}, Lf/e/b/a/a;->q(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-static {p1, v2}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/content/Context;I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v7
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/16 v11, 0x38
|
|
|
|
const/4 v12, 0x0
|
|
|
|
move-object v5, p1
|
|
|
|
invoke-static/range {v4 .. v12}, Lcom/discord/utilities/textprocessing/Parsers;->parseMarkdown$default(Lcom/discord/utilities/textprocessing/Parsers;Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/Integer;Ljava/lang/Integer;ZLkotlin/jvm/functions/Function3;ILjava/lang/Object;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v1, Landroidx/core/app/NotificationCompat$Action$Builder;
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
const p2, 0x7f080262
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const p2, 0x7f080258
|
|
|
|
:goto_1
|
|
invoke-direct {v1, p2, p1, v0}, Landroidx/core/app/NotificationCompat$Action$Builder;-><init>(ILjava/lang/CharSequence;Landroid/app/PendingIntent;)V
|
|
|
|
invoke-virtual {v1}, Landroidx/core/app/NotificationCompat$Action$Builder;->build()Landroidx/core/app/NotificationCompat$Action;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_3
|
|
const-string p1, "ctx"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final getChannelId()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/utilities/fcm/NotificationData;->channelId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final getContent(Landroid/content/Context;)Ljava/lang/CharSequence;
|
|
.locals 8
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_d
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x3
|
|
|
|
const-string v4, ""
|
|
|
|
const/4 v5, 0x2
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x1
|
|
|
|
sparse-switch v2, :sswitch_data_0
|
|
|
|
goto/16 :goto_2
|
|
|
|
:sswitch_0
|
|
const-string v0, "CALL_RING"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_c
|
|
|
|
const v0, 0x7f121093
|
|
|
|
new-array v1, v7, [Ljava/lang/Object;
|
|
|
|
const-string v2, "**"
|
|
|
|
invoke-static {v2}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v3
|
|
|
|
iget-object v4, p0, Lcom/discord/utilities/fcm/NotificationData;->userUsername:Ljava/lang/String;
|
|
|
|
invoke-static {v3, v4, v2}, Lf/e/b/a/a;->v(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "context.getString(R.stri\u2026ing, \"**$userUsername**\")"
|
|
|
|
invoke-static {p1, v0}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/utilities/fcm/NotificationData;->renderMarkdown(Ljava/lang/String;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v4
|
|
|
|
goto/16 :goto_2
|
|
|
|
:sswitch_1
|
|
const-string v2, "MESSAGE_CREATE"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_c
|
|
|
|
iget v1, p0, Lcom/discord/utilities/fcm/NotificationData;->channelType:I
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
if-eq v1, v7, :cond_0
|
|
|
|
if-eq v1, v3, :cond_0
|
|
|
|
const/4 v2, 0x5
|
|
|
|
if-eq v1, v2, :cond_4
|
|
|
|
goto/16 :goto_2
|
|
|
|
:cond_0
|
|
iget v1, p0, Lcom/discord/utilities/fcm/NotificationData;->messageActivityType:I
|
|
|
|
if-ne v1, v5, :cond_1
|
|
|
|
const v0, 0x7f120fe8
|
|
|
|
new-array v1, v5, [Ljava/lang/Object;
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/fcm/NotificationData;->userUsername:Ljava/lang/String;
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/fcm/NotificationData;->messageApplicationName:Ljava/lang/String;
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
goto/16 :goto_2
|
|
|
|
:cond_1
|
|
if-ne v1, v7, :cond_2
|
|
|
|
const v0, 0x7f120fe6
|
|
|
|
new-array v1, v5, [Ljava/lang/Object;
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/fcm/NotificationData;->userUsername:Ljava/lang/String;
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/fcm/NotificationData;->messageApplicationName:Ljava/lang/String;
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
goto/16 :goto_2
|
|
|
|
:cond_2
|
|
iget-object p1, p0, Lcom/discord/utilities/fcm/NotificationData;->sticker:Lcom/discord/models/dsti/dto/ModelDsti;
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/dsti/dto/ModelDsti;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
goto/16 :goto_2
|
|
|
|
:cond_3
|
|
iget-object p1, p0, Lcom/discord/utilities/fcm/NotificationData;->messageContent:Ljava/lang/String;
|
|
|
|
if-eqz p1, :cond_9
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/utilities/fcm/NotificationData;->renderMarkdown(Ljava/lang/String;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
iget v1, p0, Lcom/discord/utilities/fcm/NotificationData;->messageType:I
|
|
|
|
const/4 v2, 0x7
|
|
|
|
if-ne v1, v2, :cond_5
|
|
|
|
iget-wide v0, p0, Lcom/discord/utilities/fcm/NotificationData;->messageId:J
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/discord/utilities/textprocessing/MessageUtils;->getSystemMessageUserJoin(Landroid/content/Context;J)I
|
|
|
|
move-result v0
|
|
|
|
new-array v1, v7, [Ljava/lang/Object;
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/fcm/NotificationData;->userUsername:Ljava/lang/String;
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
goto/16 :goto_2
|
|
|
|
:cond_5
|
|
iget v1, p0, Lcom/discord/utilities/fcm/NotificationData;->messageActivityType:I
|
|
|
|
if-ne v1, v5, :cond_6
|
|
|
|
const v0, 0x7f120fee
|
|
|
|
new-array v1, v5, [Ljava/lang/Object;
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/fcm/NotificationData;->userUsername:Ljava/lang/String;
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/fcm/NotificationData;->messageApplicationName:Ljava/lang/String;
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
goto/16 :goto_2
|
|
|
|
:cond_6
|
|
if-ne v1, v7, :cond_7
|
|
|
|
const v0, 0x7f120fec
|
|
|
|
new-array v1, v5, [Ljava/lang/Object;
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/fcm/NotificationData;->userUsername:Ljava/lang/String;
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/fcm/NotificationData;->messageApplicationName:Ljava/lang/String;
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
goto/16 :goto_2
|
|
|
|
:cond_7
|
|
iget-object p1, p0, Lcom/discord/utilities/fcm/NotificationData;->sticker:Lcom/discord/models/dsti/dto/ModelDsti;
|
|
|
|
if-eqz p1, :cond_8
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/dsti/dto/ModelDsti;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
iget-object p1, p0, Lcom/discord/utilities/fcm/NotificationData;->messageContent:Ljava/lang/String;
|
|
|
|
if-eqz p1, :cond_9
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/utilities/fcm/NotificationData;->renderMarkdown(Ljava/lang/String;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_9
|
|
:goto_0
|
|
move-object v4, v0
|
|
|
|
goto :goto_2
|
|
|
|
:sswitch_2
|
|
const-string v0, "ACTIVITY_START"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_c
|
|
|
|
iget v0, p0, Lcom/discord/utilities/fcm/NotificationData;->activityType:I
|
|
|
|
if-nez v0, :cond_c
|
|
|
|
const v0, 0x7f120fe4
|
|
|
|
new-array v1, v5, [Ljava/lang/Object;
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/fcm/NotificationData;->userUsername:Ljava/lang/String;
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/fcm/NotificationData;->activityName:Ljava/lang/String;
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_3
|
|
const-string v0, "APPLICATION_LIBRARY_INSTALL_COMPLETE"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_c
|
|
|
|
const v0, 0x7f12081a
|
|
|
|
new-array v1, v7, [Ljava/lang/Object;
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/fcm/NotificationData;->applicationName:Ljava/lang/String;
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
goto :goto_2
|
|
|
|
:sswitch_4
|
|
const-string v0, "RELATIONSHIP_ADD"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_c
|
|
|
|
iget v0, p0, Lcom/discord/utilities/fcm/NotificationData;->relationshipType:I
|
|
|
|
if-eq v0, v7, :cond_b
|
|
|
|
if-eq v0, v3, :cond_a
|
|
|
|
goto :goto_2
|
|
|
|
:cond_a
|
|
const v0, 0x7f120ff1
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_b
|
|
const v0, 0x7f120fe2
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_1
|
|
move-object v4, p1
|
|
|
|
:cond_c
|
|
:goto_2
|
|
return-object v4
|
|
|
|
:cond_d
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x4f1a5206 -> :sswitch_4
|
|
-0x49c69930 -> :sswitch_3
|
|
0x3a0e4b12 -> :sswitch_2
|
|
0x3b7f2454 -> :sswitch_1
|
|
0x69807371 -> :sswitch_0
|
|
.end sparse-switch
|
|
.end method
|
|
|
|
.method public final getContentIntent(Landroid/content/Context;)Landroid/app/PendingIntent;
|
|
.locals 3
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-direct {p0}, Lcom/discord/utilities/fcm/NotificationData;->getContentIntentInternal()Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "com.discord.intent.ORIGIN_SOURCE"
|
|
|
|
const-string v2, "com.discord.intent.ORIGIN_NOTIF"
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-class v1, Lcom/discord/app/AppActivity$Main;
|
|
|
|
invoke-virtual {v0, p1, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/utilities/fcm/NotificationData;->addTrackingData(Landroid/content/Intent;)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
const/high16 v2, 0x8000000
|
|
|
|
invoke-static {p1, v1, v0, v2}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "PendingIntent.getActivit\u2026FLAG_UPDATE_CURRENT\n )"
|
|
|
|
invoke-static {p1, v0}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final getContentIntentInApp(Landroid/content/Context;)Landroid/app/PendingIntent;
|
|
.locals 3
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-direct {p0}, Lcom/discord/utilities/fcm/NotificationData;->getContentIntentInternal()Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "com.discord.intent.ORIGIN_SOURCE"
|
|
|
|
const-string v2, "com.discord.intent.ORIGIN_NOTIF_INAPP"
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-class v1, Lcom/discord/app/AppActivity$Main;
|
|
|
|
invoke-virtual {v0, p1, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/utilities/fcm/NotificationData;->addTrackingData(Landroid/content/Intent;)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
const/high16 v2, 0x8000000
|
|
|
|
invoke-static {p1, v1, v0, v2}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "PendingIntent.getActivit\u2026FLAG_UPDATE_CURRENT\n )"
|
|
|
|
invoke-static {p1, v0}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final getConversationTitle(Landroid/content/Context;)Ljava/lang/CharSequence;
|
|
.locals 9
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
const v3, 0x3b7f2454
|
|
|
|
if-eq v2, v3, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v2, "MESSAGE_CREATE"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
iget v5, p0, Lcom/discord/utilities/fcm/NotificationData;->channelType:I
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
const/4 v1, 0x3
|
|
|
|
if-eq v5, v1, :cond_1
|
|
|
|
const/4 v1, 0x5
|
|
|
|
if-eq v5, v1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
sget-object v2, Lcom/discord/utilities/channel/ChannelUtils;->INSTANCE:Lcom/discord/utilities/channel/ChannelUtils;
|
|
|
|
iget-object v4, p0, Lcom/discord/utilities/fcm/NotificationData;->channelName:Ljava/lang/String;
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x8
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v3, p1
|
|
|
|
invoke-static/range {v2 .. v8}, Lcom/discord/utilities/channel/ChannelUtils;->getDisplayName$default(Lcom/discord/utilities/channel/ChannelUtils;Landroid/content/Context;Ljava/lang/String;IZILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->guildName:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " _"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
sget-object v2, Lcom/discord/utilities/channel/ChannelUtils;->INSTANCE:Lcom/discord/utilities/channel/ChannelUtils;
|
|
|
|
invoke-direct {p0}, Lcom/discord/utilities/fcm/NotificationData;->getChannelNameEscaped()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
iget v5, p0, Lcom/discord/utilities/fcm/NotificationData;->channelType:I
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x8
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v3, p1
|
|
|
|
invoke-static/range {v2 .. v8}, Lcom/discord/utilities/channel/ChannelUtils;->getDisplayName$default(Lcom/discord/utilities/channel/ChannelUtils;Landroid/content/Context;Ljava/lang/String;IZILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 p1, 0x5f
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/utilities/fcm/NotificationData;->renderMarkdown(Ljava/lang/String;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-object v0
|
|
|
|
:cond_4
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final getDeleteIntent(Landroid/content/Context;)Landroid/app/PendingIntent;
|
|
.locals 3
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
sget-object v0, Lcom/discord/utilities/fcm/NotificationActions;->Companion:Lcom/discord/utilities/fcm/NotificationActions$Companion;
|
|
|
|
iget-wide v1, p0, Lcom/discord/utilities/fcm/NotificationData;->channelId:J
|
|
|
|
invoke-virtual {v0, p1, v1, v2}, Lcom/discord/utilities/fcm/NotificationActions$Companion;->delete(Landroid/content/Context;J)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/high16 v2, 0x8000000
|
|
|
|
invoke-static {p1, v1, v0, v2}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "PendingIntent.getBroadca\u2026tent.FLAG_UPDATE_CURRENT)"
|
|
|
|
invoke-static {p1, v0}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final getDirectReplyAction(Landroid/content/Context;Ljava/util/Set;)Landroidx/core/app/NotificationCompat$Action;
|
|
.locals 5
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x18
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/content/Context;",
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/Long;",
|
|
">;)",
|
|
"Landroidx/core/app/NotificationCompat$Action;"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
const-string v2, "MESSAGE_CREATE"
|
|
|
|
invoke-static {v1, v2}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
xor-int/2addr v1, v2
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
iget-wide v3, p0, Lcom/discord/utilities/fcm/NotificationData;->channelId:J
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {p2, v1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p2, Landroidx/core/app/RemoteInput$Builder;
|
|
|
|
const-string v0, "discord_notif_text_input"
|
|
|
|
invoke-direct {p2, v0}, Landroidx/core/app/RemoteInput$Builder;-><init>(Ljava/lang/String;)V
|
|
|
|
const v0, 0x7f121431
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/core/app/RemoteInput$Builder;->setLabel(Ljava/lang/CharSequence;)Landroidx/core/app/RemoteInput$Builder;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2}, Landroidx/core/app/RemoteInput$Builder;->build()Landroidx/core/app/RemoteInput;
|
|
|
|
move-result-object p2
|
|
|
|
const-string v0, "RemoteInput.Builder(Inte\u2026essage))\n .build()"
|
|
|
|
invoke-static {p2, v0}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/fcm/NotificationActions;->Companion:Lcom/discord/utilities/fcm/NotificationActions$Companion;
|
|
|
|
iget-wide v3, p0, Lcom/discord/utilities/fcm/NotificationData;->channelId:J
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/utilities/fcm/NotificationData;->getTitle(Landroid/content/Context;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, p1, v3, v4, v1}, Lcom/discord/utilities/fcm/NotificationActions$Companion;->directReply(Landroid/content/Context;JLjava/lang/CharSequence;)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
iget-wide v3, p0, Lcom/discord/utilities/fcm/NotificationData;->channelId:J
|
|
|
|
long-to-int v1, v3
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/utilities/fcm/NotificationData;->addTrackingData(Landroid/content/Intent;)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
const/high16 v3, 0x8000000
|
|
|
|
invoke-static {p1, v1, v0, v3}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Landroidx/core/app/NotificationCompat$Action$Builder;
|
|
|
|
const v3, 0x7f0803e9
|
|
|
|
const v4, 0x7f120ff2
|
|
|
|
invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v1, v3, p1, v0}, Landroidx/core/app/NotificationCompat$Action$Builder;-><init>(ILjava/lang/CharSequence;Landroid/app/PendingIntent;)V
|
|
|
|
invoke-virtual {v1, p2}, Landroidx/core/app/NotificationCompat$Action$Builder;->addRemoteInput(Landroidx/core/app/RemoteInput;)Landroidx/core/app/NotificationCompat$Action$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v2}, Landroidx/core/app/NotificationCompat$Action$Builder;->setAllowGeneratedReplies(Z)Landroidx/core/app/NotificationCompat$Action$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action$Builder;->build()Landroidx/core/app/NotificationCompat$Action;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-object v0
|
|
|
|
:cond_2
|
|
const-string p1, "deniedChannels"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
const-string p1, "ctx"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final getFullScreenIntent(Landroid/content/Context;)Landroid/app/PendingIntent;
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-virtual {p0}, Lcom/discord/utilities/fcm/NotificationData;->getNotificationCategory()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "call"
|
|
|
|
invoke-static {v1, v2}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
xor-int/lit8 v1, v1, 0x1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-class v1, Lcom/discord/app/AppActivity$IncomingCall;
|
|
|
|
invoke-direct {v0, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
const/high16 v1, 0x10000000
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/utilities/fcm/NotificationData;->addTrackingData(Landroid/content/Intent;)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
const/high16 v2, 0x8000000
|
|
|
|
invoke-static {p1, v1, v0, v2}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_1
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final getGroupKey()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
const-string v0, "GROUP_"
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getGuildId()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/utilities/fcm/NotificationData;->guildId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final getIconUrl()Ljava/lang/String;
|
|
.locals 10
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
const-string v2, ""
|
|
|
|
sparse-switch v1, :sswitch_data_0
|
|
|
|
goto :goto_2
|
|
|
|
:sswitch_0
|
|
const-string v1, "CALL_RING"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_1
|
|
const-string v1, "MESSAGE_CREATE"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
:goto_0
|
|
invoke-direct {p0}, Lcom/discord/utilities/fcm/NotificationData;->getIconUrlForChannel()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object v2, v0
|
|
|
|
goto :goto_2
|
|
|
|
:sswitch_2
|
|
const-string v1, "ACTIVITY_START"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_3
|
|
const-string v1, "APPLICATION_LIBRARY_INSTALL_COMPLETE"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_4
|
|
const-string v1, "RELATIONSHIP_ADD"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
:goto_1
|
|
iget-object v6, p0, Lcom/discord/utilities/fcm/NotificationData;->applicationIcon:Ljava/lang/String;
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
sget-object v3, Lcom/discord/utilities/icon/IconUtils;->INSTANCE:Lcom/discord/utilities/icon/IconUtils;
|
|
|
|
iget-wide v4, p0, Lcom/discord/utilities/fcm/NotificationData;->applicationId:J
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x4
|
|
|
|
const/4 v9, 0x0
|
|
|
|
invoke-static/range {v3 .. v9}, Lcom/discord/utilities/icon/IconUtils;->getApplicationIcon$default(Lcom/discord/utilities/icon/IconUtils;JLjava/lang/String;IILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_0
|
|
:goto_2
|
|
return-object v2
|
|
|
|
nop
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x4f1a5206 -> :sswitch_4
|
|
-0x49c69930 -> :sswitch_3
|
|
0x3a0e4b12 -> :sswitch_2
|
|
0x3b7f2454 -> :sswitch_1
|
|
0x69807371 -> :sswitch_0
|
|
.end sparse-switch
|
|
.end method
|
|
|
|
.method public final getIconUrlForUser()Ljava/lang/String;
|
|
.locals 9
|
|
|
|
iget-wide v0, p0, Lcom/discord/utilities/fcm/NotificationData;->userId:J
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p0, Lcom/discord/utilities/fcm/NotificationData;->userAvatar:Ljava/lang/String;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x1c
|
|
|
|
const/4 v8, 0x0
|
|
|
|
invoke-static/range {v2 .. v8}, Lcom/discord/utilities/icon/IconUtils;->getForUser$default(Ljava/lang/Long;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;ILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getKey()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
sparse-switch v1, :sswitch_data_0
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_0
|
|
const-string v1, "CALL_RING"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_1
|
|
const-string v1, "MESSAGE_CREATE"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
:goto_0
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-wide v1, p0, Lcom/discord/utilities/fcm/NotificationData;->channelId:J
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_2
|
|
|
|
:sswitch_2
|
|
const-string v1, "ACTIVITY_START"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Lcom/discord/utilities/fcm/NotificationData;->activityType:I
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->activityName:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_2
|
|
|
|
:sswitch_3
|
|
const-string v1, "APPLICATION_LIBRARY_INSTALL_COMPLETE"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-wide v1, p0, Lcom/discord/utilities/fcm/NotificationData;->applicationId:J
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_2
|
|
|
|
:sswitch_4
|
|
const-string v1, "RELATIONSHIP_ADD"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-wide v1, p0, Lcom/discord/utilities/fcm/NotificationData;->userId:J
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
:goto_1
|
|
const-string v0, ""
|
|
|
|
:goto_2
|
|
return-object v0
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x4f1a5206 -> :sswitch_4
|
|
-0x49c69930 -> :sswitch_3
|
|
0x3a0e4b12 -> :sswitch_2
|
|
0x3b7f2454 -> :sswitch_1
|
|
0x69807371 -> :sswitch_0
|
|
.end sparse-switch
|
|
.end method
|
|
|
|
.method public final getMarkAsReadAction(Landroid/content/Context;)Landroidx/core/app/NotificationCompat$Action;
|
|
.locals 8
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x18
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
const-string v2, "MESSAGE_CREATE"
|
|
|
|
invoke-static {v1, v2}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
xor-int/lit8 v1, v1, 0x1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
sget-object v2, Lcom/discord/utilities/fcm/NotificationActions;->Companion:Lcom/discord/utilities/fcm/NotificationActions$Companion;
|
|
|
|
iget-wide v4, p0, Lcom/discord/utilities/fcm/NotificationData;->channelId:J
|
|
|
|
iget-wide v6, p0, Lcom/discord/utilities/fcm/NotificationData;->messageId:J
|
|
|
|
move-object v3, p1
|
|
|
|
invoke-virtual/range {v2 .. v7}, Lcom/discord/utilities/fcm/NotificationActions$Companion;->markAsRead(Landroid/content/Context;JJ)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/utilities/fcm/NotificationData;->addTrackingData(Landroid/content/Intent;)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {p1, v1, v0, v1}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Landroidx/core/app/NotificationCompat$Action$Builder;
|
|
|
|
const v2, 0x7f080286
|
|
|
|
const v3, 0x7f120e80
|
|
|
|
invoke-virtual {p1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v1, v2, p1, v0}, Landroidx/core/app/NotificationCompat$Action$Builder;-><init>(ILjava/lang/CharSequence;Landroid/app/PendingIntent;)V
|
|
|
|
invoke-virtual {v1}, Landroidx/core/app/NotificationCompat$Action$Builder;->build()Landroidx/core/app/NotificationCompat$Action;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_1
|
|
const-string p1, "ctx"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final getMessageId()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/utilities/fcm/NotificationData;->messageId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final getMessageIdTimestamp()J
|
|
.locals 4
|
|
|
|
iget-wide v0, p0, Lcom/discord/utilities/fcm/NotificationData;->messageId:J
|
|
|
|
const/16 v2, 0x16
|
|
|
|
ushr-long/2addr v0, v2
|
|
|
|
const-wide v2, 0x14aa2cab000L
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final getNotificationCategory()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
sparse-switch v1, :sswitch_data_0
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_0
|
|
const-string v1, "CALL_RING"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "call"
|
|
|
|
goto :goto_2
|
|
|
|
:sswitch_1
|
|
const-string v1, "ACTIVITY_START"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_2
|
|
const-string v1, "APPLICATION_LIBRARY_INSTALL_COMPLETE"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "progress"
|
|
|
|
goto :goto_2
|
|
|
|
:sswitch_3
|
|
const-string v1, "RELATIONSHIP_ADD"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
:goto_0
|
|
const-string v0, "social"
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
:goto_1
|
|
const-string v0, "msg"
|
|
|
|
:goto_2
|
|
return-object v0
|
|
|
|
nop
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x4f1a5206 -> :sswitch_3
|
|
-0x49c69930 -> :sswitch_2
|
|
0x3a0e4b12 -> :sswitch_1
|
|
0x69807371 -> :sswitch_0
|
|
.end sparse-switch
|
|
.end method
|
|
|
|
.method public final getNotificationChannelId()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
const v2, 0x3b7f2454
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
const v2, 0x69807371
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v1, "CALL_RING"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const-string v0, "Calls"
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const-string v1, "MESSAGE_CREATE"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget v0, p0, Lcom/discord/utilities/fcm/NotificationData;->channelType:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
const/4 v1, 0x3
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
const-string v0, "Messages"
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const-string v0, "DirectMessages"
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
:goto_0
|
|
const-string v0, "Social"
|
|
|
|
:goto_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getNotificationPriority()I
|
|
.locals 4
|
|
|
|
invoke-virtual {p0}, Lcom/discord/utilities/fcm/NotificationData;->getNotificationChannelId()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const/4 v3, -0x1
|
|
|
|
sparse-switch v1, :sswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_0
|
|
const-string v1, "Media Connections"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_1
|
|
const-string v1, "Calls"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_2
|
|
const-string v1, "Messages"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_3
|
|
const-string v1, "Social"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_4
|
|
const-string v1, "DirectMessages"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
const/4 v2, -0x1
|
|
|
|
:goto_1
|
|
return v2
|
|
|
|
nop
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x724a2b8b -> :sswitch_4
|
|
-0x6c12fc73 -> :sswitch_3
|
|
-0x17b09a94 -> :sswitch_2
|
|
0x3dde1b5 -> :sswitch_1
|
|
0x1f60aad9 -> :sswitch_0
|
|
.end sparse-switch
|
|
.end method
|
|
|
|
.method public final getNotificationSound(Landroid/content/Context;)Landroid/net/Uri;
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
const v3, 0x69807371
|
|
|
|
if-eq v2, v3, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v2, "CALL_RING"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const-string v0, "android.resource://"
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 p1, 0x2f
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
sget-object p1, Lcom/discord/utilities/media/AppSound;->Companion:Lcom/discord/utilities/media/AppSound$Companion;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/media/AppSound$Companion;->getSOUND_CALL_RINGING()Lcom/discord/utilities/media/AppSound;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "StringBuilder()\n \u2026)\n .toString()"
|
|
|
|
invoke-static {p1, v0}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-object v0
|
|
|
|
:cond_2
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final getSender(Landroid/content/Context;)Landroidx/core/app/Person;
|
|
.locals 12
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
const-string v2, "MESSAGE_CREATE"
|
|
|
|
invoke-static {v1, v2}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget v1, p0, Lcom/discord/utilities/fcm/NotificationData;->messageType:I
|
|
|
|
const/4 v3, 0x7
|
|
|
|
if-eq v1, v3, :cond_0
|
|
|
|
iget v1, p0, Lcom/discord/utilities/fcm/NotificationData;->messageActivityType:I
|
|
|
|
const/4 v3, 0x2
|
|
|
|
if-eq v1, v3, :cond_0
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/discord/utilities/fcm/NotificationData;->userUsername:Ljava/lang/String;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const v1, 0x7f1205ab
|
|
|
|
invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
iget-wide v3, p0, Lcom/discord/utilities/fcm/NotificationData;->userId:J
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v5
|
|
|
|
iget-object v6, p0, Lcom/discord/utilities/fcm/NotificationData;->userAvatar:Ljava/lang/String;
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/16 v10, 0x1c
|
|
|
|
const/4 v11, 0x0
|
|
|
|
invoke-static/range {v5 .. v11}, Lcom/discord/utilities/icon/IconUtils;->getForUser$default(Ljava/lang/Long;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;ILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
const/16 v4, 0x2e
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
const/4 v5, 0x6
|
|
|
|
invoke-static {v1, v4, v3, v3, v5}, Lj0/t/p;->lastIndexOf$default(Ljava/lang/CharSequence;CIZI)I
|
|
|
|
move-result v4
|
|
|
|
const/4 v5, -0x1
|
|
|
|
if-ne v4, v5, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
add-int/2addr v4, v2
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v5
|
|
|
|
if-lt v5, v4, :cond_2
|
|
|
|
new-instance v6, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v6, v1, v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "this.append(value, startIndex, endIndex)"
|
|
|
|
invoke-static {v6, v3}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v4, "jpg"
|
|
|
|
invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {v6, v1, v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {v6, v3}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v6}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_1
|
|
if-eqz v1, :cond_4
|
|
|
|
invoke-static {v1}, Landroidx/core/graphics/drawable/IconCompat;->createWithContentUri(Ljava/lang/String;)Landroidx/core/graphics/drawable/IconCompat;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
const-string v0, "End index ("
|
|
|
|
const-string v1, ") is less than start index ("
|
|
|
|
const-string v2, ")."
|
|
|
|
invoke-static {v0, v5, v1, v4, v2}, Lf/e/b/a/a;->k(Ljava/lang/String;ILjava/lang/String;ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_3
|
|
const-string p1, "missingDelimiterValue"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
:goto_2
|
|
new-instance v1, Landroidx/core/app/Person$Builder;
|
|
|
|
invoke-direct {v1}, Landroidx/core/app/Person$Builder;-><init>()V
|
|
|
|
invoke-virtual {v1, p1}, Landroidx/core/app/Person$Builder;->setName(Ljava/lang/CharSequence;)Landroidx/core/app/Person$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
iget-wide v3, p0, Lcom/discord/utilities/fcm/NotificationData;->userId:J
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p1, v1}, Landroidx/core/app/Person$Builder;->setKey(Ljava/lang/String;)Landroidx/core/app/Person$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/core/app/Person$Builder;->setIcon(Landroidx/core/graphics/drawable/IconCompat;)Landroidx/core/app/Person$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
iget v0, p0, Lcom/discord/utilities/fcm/NotificationData;->relationshipType:I
|
|
|
|
if-ne v0, v2, :cond_5
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
const/4 v2, 0x0
|
|
|
|
:goto_3
|
|
invoke-virtual {p1, v2}, Landroidx/core/app/Person$Builder;->setImportant(Z)Landroidx/core/app/Person$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroidx/core/app/Person$Builder;->build()Landroidx/core/app/Person;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "Person.Builder()\n \u2026_FRIEND)\n .build()"
|
|
|
|
invoke-static {p1, v0}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p1
|
|
|
|
:cond_6
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final getShouldGroup()Z
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
const v2, 0x3a0e4b12
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
const v2, 0x3b7f2454
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const-string v1, "MESSAGE_CREATE"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-string v1, "ACTIVITY_START"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
:goto_0
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
:goto_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_2
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getSmallIcon()I
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
const v2, -0x4f1a5206
|
|
|
|
if-eq v1, v2, :cond_2
|
|
|
|
const v2, 0x3b7f2454
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
const v2, 0x69807371
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v1, "CALL_RING"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const v0, 0x7f080385
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const-string v1, "MESSAGE_CREATE"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const v0, 0x7f080387
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const-string v1, "RELATIONSHIP_ADD"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const v0, 0x7f080386
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
:goto_0
|
|
const v0, 0x7f080384
|
|
|
|
:goto_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getSticker()Lcom/discord/models/dsti/dto/ModelDsti;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/fcm/NotificationData;->sticker:Lcom/discord/models/dsti/dto/ModelDsti;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getTimedMute(Landroid/content/Context;Lcom/discord/utilities/time/Clock;I)Landroidx/core/app/NotificationCompat$Action;
|
|
.locals 10
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x18
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
const-string v2, "MESSAGE_CREATE"
|
|
|
|
invoke-static {v1, v2}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
xor-int/lit8 v1, v1, 0x1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-ge p3, v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-interface {p2}, Lcom/discord/utilities/time/Clock;->currentTimeMillis()J
|
|
|
|
move-result-wide p2
|
|
|
|
const-wide/32 v0, 0x36ee80
|
|
|
|
add-long v8, p2, v0
|
|
|
|
sget-object v2, Lcom/discord/utilities/fcm/NotificationActions;->Companion:Lcom/discord/utilities/fcm/NotificationActions$Companion;
|
|
|
|
iget-wide v4, p0, Lcom/discord/utilities/fcm/NotificationData;->guildId:J
|
|
|
|
iget-wide v6, p0, Lcom/discord/utilities/fcm/NotificationData;->channelId:J
|
|
|
|
move-object v3, p1
|
|
|
|
invoke-virtual/range {v2 .. v9}, Lcom/discord/utilities/fcm/NotificationActions$Companion;->timedMute(Landroid/content/Context;JJJ)Landroid/content/Intent;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p0, p2}, Lcom/discord/utilities/fcm/NotificationData;->addTrackingData(Landroid/content/Intent;)Landroid/content/Intent;
|
|
|
|
move-result-object p2
|
|
|
|
const/4 p3, 0x0
|
|
|
|
invoke-static {p1, p3, p2, p3}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
|
|
|
|
move-result-object p2
|
|
|
|
new-instance p3, Landroidx/core/app/NotificationCompat$Action$Builder;
|
|
|
|
const v0, 0x7f08038a
|
|
|
|
const v1, 0x7f120fef
|
|
|
|
invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p3, v0, p1, p2}, Landroidx/core/app/NotificationCompat$Action$Builder;-><init>(ILjava/lang/CharSequence;Landroid/app/PendingIntent;)V
|
|
|
|
invoke-virtual {p3}, Landroidx/core/app/NotificationCompat$Action$Builder;->build()Landroidx/core/app/NotificationCompat$Action;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-object v0
|
|
|
|
:cond_2
|
|
const-string p1, "clock"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
const-string p1, "ctx"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final getTitle(Landroid/content/Context;)Ljava/lang/CharSequence;
|
|
.locals 11
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const-string v3, ""
|
|
|
|
sparse-switch v1, :sswitch_data_0
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_0
|
|
const-string v1, "CALL_RING"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget v0, p0, Lcom/discord/utilities/fcm/NotificationData;->channelType:I
|
|
|
|
if-eq v0, v2, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/discord/utilities/fcm/NotificationData;->channelName:Ljava/lang/String;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const v0, 0x7f120c65
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
move-object v3, p1
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_1
|
|
const-string v1, "MESSAGE_CREATE"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget v7, p0, Lcom/discord/utilities/fcm/NotificationData;->channelType:I
|
|
|
|
if-eqz v7, :cond_3
|
|
|
|
if-eq v7, v2, :cond_2
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-eq v7, v0, :cond_1
|
|
|
|
const/4 v0, 0x5
|
|
|
|
if-eq v7, v0, :cond_3
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_1
|
|
sget-object v4, Lcom/discord/utilities/channel/ChannelUtils;->INSTANCE:Lcom/discord/utilities/channel/ChannelUtils;
|
|
|
|
iget-object v6, p0, Lcom/discord/utilities/fcm/NotificationData;->channelName:Ljava/lang/String;
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/16 v9, 0x8
|
|
|
|
const/4 v10, 0x0
|
|
|
|
move-object v5, p1
|
|
|
|
invoke-static/range {v4 .. v10}, Lcom/discord/utilities/channel/ChannelUtils;->getDisplayName$default(Lcom/discord/utilities/channel/ChannelUtils;Landroid/content/Context;Ljava/lang/String;IZILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
iget-object v3, p0, Lcom/discord/utilities/fcm/NotificationData;->userUsername:Ljava/lang/String;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/fcm/NotificationData;->guildName:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " _"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
sget-object v2, Lcom/discord/utilities/channel/ChannelUtils;->INSTANCE:Lcom/discord/utilities/channel/ChannelUtils;
|
|
|
|
invoke-direct {p0}, Lcom/discord/utilities/fcm/NotificationData;->getChannelNameEscaped()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
iget v5, p0, Lcom/discord/utilities/fcm/NotificationData;->channelType:I
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x8
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v3, p1
|
|
|
|
invoke-static/range {v2 .. v8}, Lcom/discord/utilities/channel/ChannelUtils;->getDisplayName$default(Lcom/discord/utilities/channel/ChannelUtils;Landroid/content/Context;Ljava/lang/String;IZILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 p1, 0x5f
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/utilities/fcm/NotificationData;->renderMarkdown(Ljava/lang/String;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v3
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_2
|
|
const-string v1, "ACTIVITY_START"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget v0, p0, Lcom/discord/utilities/fcm/NotificationData;->activityType:I
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
const v0, 0x7f120ff7
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_3
|
|
const-string v1, "APPLICATION_LIBRARY_INSTALL_COMPLETE"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
const v0, 0x7f12081b
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_4
|
|
const-string p1, "RELATIONSHIP_ADD"
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
iget-object v3, p0, Lcom/discord/utilities/fcm/NotificationData;->userUsername:Ljava/lang/String;
|
|
|
|
:cond_4
|
|
:goto_1
|
|
return-object v3
|
|
|
|
:cond_5
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
|
|
nop
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x4f1a5206 -> :sswitch_4
|
|
-0x49c69930 -> :sswitch_3
|
|
0x3a0e4b12 -> :sswitch_2
|
|
0x3b7f2454 -> :sswitch_1
|
|
0x69807371 -> :sswitch_0
|
|
.end sparse-switch
|
|
.end method
|
|
|
|
.method public final getType()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final isGroupConversation()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/utilities/fcm/NotificationData;->isGroupConversation:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final isValid()Z
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/fcm/NotificationData;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
sparse-switch v1, :sswitch_data_0
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_0
|
|
const-string v1, "CALL_RING"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_1
|
|
const-string v1, "MESSAGE_CREATE"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_2
|
|
const-string v1, "ACTIVITY_START"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget v0, p0, Lcom/discord/utilities/fcm/NotificationData;->activityType:I
|
|
|
|
if-eq v0, v3, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_3
|
|
const-string v1, "APPLICATION_LIBRARY_INSTALL_COMPLETE"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_4
|
|
const-string v1, "RELATIONSHIP_ADD"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
:goto_0
|
|
const/4 v2, 0x1
|
|
|
|
:cond_0
|
|
:goto_1
|
|
return v2
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x4f1a5206 -> :sswitch_4
|
|
-0x49c69930 -> :sswitch_3
|
|
0x3a0e4b12 -> :sswitch_2
|
|
0x3b7f2454 -> :sswitch_1
|
|
0x69807371 -> :sswitch_0
|
|
.end sparse-switch
|
|
.end method
|