223 lines
6.2 KiB
Smali
223 lines
6.2 KiB
Smali
.class public final Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model$Companion$get$1$$special$$inlined$let$lambda$1;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetChannelNotificationSettings.kt"
|
|
|
|
# interfaces
|
|
.implements Lrx/functions/Func3;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model$Companion$get$1;->call(Lcom/discord/models/domain/ModelChannel;)Lrx/Observable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T1:",
|
|
"Ljava/lang/Object;",
|
|
"T2:",
|
|
"Ljava/lang/Object;",
|
|
"T3:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lrx/functions/Func3<",
|
|
"TT1;TT2;TT3;TR;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $channel$inlined:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/models/domain/ModelChannel;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model$Companion$get$1$$special$$inlined$let$lambda$1;->$channel$inlined:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final call(Lcom/discord/models/domain/ModelGuild;Lcom/discord/models/domain/ModelNotificationSettings;Lcom/discord/stores/StoreGuildProfiles$GuildProfileData;)Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;
|
|
.locals 15
|
|
|
|
move-object v0, p0
|
|
|
|
move-object/from16 v1, p2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz p1, :cond_7
|
|
|
|
iget-object v3, v0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model$Companion$get$1$$special$$inlined$let$lambda$1;->$channel$inlined:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
move-result-wide v3
|
|
|
|
invoke-virtual {v1, v3, v4}, Lcom/discord/models/domain/ModelNotificationSettings;->getChannelOverride(J)Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x1
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;->isMuted()Z
|
|
|
|
move-result v6
|
|
|
|
if-ne v6, v5, :cond_0
|
|
|
|
const/4 v9, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v9, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v3, :cond_1
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;->getMessageNotifications()I
|
|
|
|
move-result v6
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
sget v6, Lcom/discord/models/domain/ModelNotificationSettings;->FREQUENCY_UNSET:I
|
|
|
|
:goto_1
|
|
sget v7, Lcom/discord/models/domain/ModelNotificationSettings;->FREQUENCY_UNSET:I
|
|
|
|
if-ne v6, v7, :cond_2
|
|
|
|
const/4 v13, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 v13, 0x0
|
|
|
|
:goto_2
|
|
sget v7, Lcom/discord/models/domain/ModelNotificationSettings;->FREQUENCY_UNSET:I
|
|
|
|
const-string v8, "guildSettings"
|
|
|
|
if-ne v6, v7, :cond_3
|
|
|
|
invoke-static {v1, v8}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/models/domain/ModelNotificationSettings;->getMessageNotifications()I
|
|
|
|
move-result v6
|
|
|
|
sget v7, Lcom/discord/models/domain/ModelNotificationSettings;->FREQUENCY_UNSET:I
|
|
|
|
if-ne v6, v7, :cond_3
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelGuild;->getDefaultMessageNotifications()I
|
|
|
|
move-result v6
|
|
|
|
:cond_3
|
|
move v12, v6
|
|
|
|
if-eqz p3, :cond_4
|
|
|
|
invoke-virtual/range {p3 .. p3}, Lcom/discord/stores/StoreGuildProfiles$GuildProfileData;->getData()Lcom/discord/models/domain/ModelGuildPreview;
|
|
|
|
move-result-object v6
|
|
|
|
if-eqz v6, :cond_4
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelGuildPreview;->getApproximateMemberCount()Ljava/lang/Integer;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
move-object v6, v2
|
|
|
|
:goto_3
|
|
if-eqz v6, :cond_5
|
|
|
|
invoke-virtual {v6}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v6
|
|
|
|
const/16 v7, 0x9c4
|
|
|
|
if-le v6, v7, :cond_5
|
|
|
|
const/4 v14, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_5
|
|
const/4 v14, 0x0
|
|
|
|
:goto_4
|
|
new-instance v4, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;
|
|
|
|
iget-object v5, v0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model$Companion$get$1$$special$$inlined$let$lambda$1;->$channel$inlined:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;->getMuteEndTime()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_6
|
|
move-object v10, v2
|
|
|
|
invoke-static {v1, v8}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/models/domain/ModelNotificationSettings;->isMuted()Z
|
|
|
|
move-result v11
|
|
|
|
move-object v7, v4
|
|
|
|
move-object v8, v5
|
|
|
|
invoke-direct/range {v7 .. v14}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;-><init>(Lcom/discord/models/domain/ModelChannel;ZLjava/lang/String;ZIZZ)V
|
|
|
|
move-object v2, v4
|
|
|
|
:cond_7
|
|
return-object v2
|
|
.end method
|
|
|
|
.method public bridge synthetic call(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Lcom/discord/models/domain/ModelGuild;
|
|
|
|
check-cast p2, Lcom/discord/models/domain/ModelNotificationSettings;
|
|
|
|
check-cast p3, Lcom/discord/stores/StoreGuildProfiles$GuildProfileData;
|
|
|
|
invoke-virtual {p0, p1, p2, p3}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model$Companion$get$1$$special$$inlined$let$lambda$1;->call(Lcom/discord/models/domain/ModelGuild;Lcom/discord/models/domain/ModelNotificationSettings;Lcom/discord/stores/StoreGuildProfiles$GuildProfileData;)Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|