2019-07-24 11:27:29 +00:00
|
|
|
.class Lcom/discord/widgets/channels/WidgetChannelGroupDMSettings$ModelAppChannelSettings;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "WidgetChannelGroupDMSettings.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/widgets/channels/WidgetChannelGroupDMSettings;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x8
|
|
|
|
name = "ModelAppChannelSettings"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field private final channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
|
|
|
|
.field private final isMuted:Z
|
|
|
|
|
2019-11-21 23:22:50 +00:00
|
|
|
.field private final muteEndTime:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field private final timedMuteEnabled:Z
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
# direct methods
|
2019-11-28 00:30:53 +00:00
|
|
|
.method public constructor <init>(Lcom/discord/models/domain/ModelChannel;Lcom/discord/models/domain/ModelNotificationSettings;Lcom/discord/models/domain/ModelExperiment;)V
|
2019-11-21 23:22:50 +00:00
|
|
|
.locals 6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/channels/WidgetChannelGroupDMSettings$ModelAppChannelSettings;->channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
|
2019-11-21 23:22:50 +00:00
|
|
|
const/4 v0, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 23:22:50 +00:00
|
|
|
if-eqz p3, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 23:22:50 +00:00
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelExperiment;->getBucket()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 23:22:50 +00:00
|
|
|
move-result p3
|
|
|
|
|
|
|
|
if-ne p3, v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-11-21 23:22:50 +00:00
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iput-boolean v0, p0, Lcom/discord/widgets/channels/WidgetChannelGroupDMSettings$ModelAppChannelSettings;->timedMuteEnabled:Z
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelNotificationSettings;->getChannelOverrides()Ljava/util/List;
|
2019-11-21 23:22:50 +00:00
|
|
|
|
|
|
|
move-result-object p3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 23:22:50 +00:00
|
|
|
invoke-interface {p3}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 23:22:50 +00:00
|
|
|
move-result-object p3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 23:22:50 +00:00
|
|
|
:cond_1
|
|
|
|
invoke-interface {p3}, Ljava/util/Iterator;->hasNext()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 23:22:50 +00:00
|
|
|
move-result v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 23:22:50 +00:00
|
|
|
if-eqz v0, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 23:22:50 +00:00
|
|
|
invoke-interface {p3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
check-cast v0, Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;
|
2019-11-21 23:22:50 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;->getChannelId()J
|
2019-11-21 23:22:50 +00:00
|
|
|
|
|
|
|
move-result-wide v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
|
2019-11-21 23:22:50 +00:00
|
|
|
move-result-wide v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 23:22:50 +00:00
|
|
|
cmp-long v5, v1, v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 23:22:50 +00:00
|
|
|
if-nez v5, :cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;->isMuted()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
iput-boolean p1, p0, Lcom/discord/widgets/channels/WidgetChannelGroupDMSettings$ModelAppChannelSettings;->isMuted:Z
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;->getMuteEndTime()Ljava/lang/String;
|
2019-11-21 23:22:50 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/channels/WidgetChannelGroupDMSettings$ModelAppChannelSettings;->muteEndTime:Ljava/lang/String;
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
|
2019-11-21 23:22:50 +00:00
|
|
|
:cond_2
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelNotificationSettings;->isMuted()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
iput-boolean p1, p0, Lcom/discord/widgets/channels/WidgetChannelGroupDMSettings$ModelAppChannelSettings;->isMuted:Z
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelNotificationSettings;->getMuteEndTime()Ljava/lang/String;
|
2019-11-21 23:22:50 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/channels/WidgetChannelGroupDMSettings$ModelAppChannelSettings;->muteEndTime:Ljava/lang/String;
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method static synthetic access$000(Lcom/discord/widgets/channels/WidgetChannelGroupDMSettings$ModelAppChannelSettings;)Lcom/discord/models/domain/ModelChannel;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/channels/WidgetChannelGroupDMSettings$ModelAppChannelSettings;->channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method static synthetic access$100(Lcom/discord/widgets/channels/WidgetChannelGroupDMSettings$ModelAppChannelSettings;)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-boolean p0, p0, Lcom/discord/widgets/channels/WidgetChannelGroupDMSettings$ModelAppChannelSettings;->isMuted:Z
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
2019-11-21 23:22:50 +00:00
|
|
|
|
|
|
|
.method static synthetic access$200(Lcom/discord/widgets/channels/WidgetChannelGroupDMSettings$ModelAppChannelSettings;)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-boolean p0, p0, Lcom/discord/widgets/channels/WidgetChannelGroupDMSettings$ModelAppChannelSettings;->timedMuteEnabled:Z
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method static synthetic access$300(Lcom/discord/widgets/channels/WidgetChannelGroupDMSettings$ModelAppChannelSettings;)Ljava/lang/String;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/channels/WidgetChannelGroupDMSettings$ModelAppChannelSettings;->muteEndTime:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|