2019-11-28 00:30:53 +00:00
|
|
|
.class public Lcom/discord/models/domain/ModelNotificationSettings;
|
2019-07-24 11:27:29 +00:00
|
|
|
.super Ljava/lang/Object;
|
2019-11-28 00:30:53 +00:00
|
|
|
.source "ModelNotificationSettings.java"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lcom/discord/models/domain/Model;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
2019-11-28 00:30:53 +00:00
|
|
|
Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;
|
2019-07-24 11:27:29 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static FREQUENCY_ALL:I = 0x0
|
|
|
|
|
|
|
|
.field public static FREQUENCY_MENTIONS:I = 0x1
|
|
|
|
|
|
|
|
.field public static FREQUENCY_NOTHING:I = 0x2
|
|
|
|
|
|
|
|
.field public static FREQUENCY_UNSET:I = 0x3
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public channelOverrides:Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/List<",
|
2019-11-28 00:30:53 +00:00
|
|
|
"Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;",
|
2019-07-24 11:27:29 +00:00
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public transient derivedMute:Z
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public guildId:J
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public messageNotifications:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mobilePush:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public muteConfig:Lcom/discord/models/domain/ModelMuteConfig;
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public muted:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public suppressEveryone:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public static constructor <clinit>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-boolean v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->suppressEveryone:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-boolean v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->muted:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-object v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->muteConfig:Lcom/discord/models/domain/ModelMuteConfig;
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
const/4 v0, 0x1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-boolean v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->mobilePush:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
sget v0, Lcom/discord/models/domain/ModelNotificationSettings;->FREQUENCY_UNSET:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->messageNotifications:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-wide v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->guildId:J
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-object v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->channelOverrides:Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
.method public constructor <init>(ZZLcom/discord/models/domain/ModelMuteConfig;ZZIJLjava/util/List;)V
|
|
|
|
.locals 0
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(ZZ",
|
|
|
|
"Lcom/discord/models/domain/ModelMuteConfig;",
|
|
|
|
"ZZIJ",
|
|
|
|
"Ljava/util/List<",
|
2019-11-28 00:30:53 +00:00
|
|
|
"Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;",
|
2019-11-21 03:22:26 +00:00
|
|
|
">;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-boolean p1, p0, Lcom/discord/models/domain/ModelNotificationSettings;->suppressEveryone:Z
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-boolean p2, p0, Lcom/discord/models/domain/ModelNotificationSettings;->muted:Z
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-object p3, p0, Lcom/discord/models/domain/ModelNotificationSettings;->muteConfig:Lcom/discord/models/domain/ModelMuteConfig;
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-boolean p4, p0, Lcom/discord/models/domain/ModelNotificationSettings;->derivedMute:Z
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-boolean p5, p0, Lcom/discord/models/domain/ModelNotificationSettings;->mobilePush:Z
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput p6, p0, Lcom/discord/models/domain/ModelNotificationSettings;->messageNotifications:I
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-wide p7, p0, Lcom/discord/models/domain/ModelNotificationSettings;->guildId:J
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-object p9, p0, Lcom/discord/models/domain/ModelNotificationSettings;->channelOverrides:Ljava/util/List;
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public static synthetic a(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
new-instance v0, Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-direct {v0}, Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;-><init>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/models/domain/Model$JsonReader;->parse(Lcom/discord/models/domain/Model;)Lcom/discord/models/domain/Model;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
check-cast p0, Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public assignField(Lcom/discord/models/domain/Model$JsonReader;)V
|
2019-11-21 03:22:26 +00:00
|
|
|
.locals 2
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/Model$JsonReader;->nextName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
sparse-switch v1, :sswitch_data_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:sswitch_0
|
|
|
|
const-string v1, "suppress_everyone"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:sswitch_1
|
|
|
|
const-string v1, "message_notifications"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
const/4 v0, 0x4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:sswitch_2
|
|
|
|
const-string v1, "muted"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:sswitch_3
|
|
|
|
const-string v1, "channel_overrides"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
const/4 v0, 0x6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:sswitch_4
|
|
|
|
const-string v1, "guild_id"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
const/4 v0, 0x5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:sswitch_5
|
|
|
|
const-string v1, "mobile_push"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
const/4 v0, 0x3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
:sswitch_6
|
|
|
|
const-string v1, "mute_config"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
move-result v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
const/4 v0, 0x2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
goto :goto_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
:cond_0
|
|
|
|
:goto_0
|
|
|
|
const/4 v0, -0x1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
packed-switch v0, :pswitch_data_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/Model$JsonReader;->skipValue()V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
:pswitch_0
|
2019-12-06 03:29:40 +00:00
|
|
|
new-instance v0, Le/a/c/a/m0;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {v0, p1}, Le/a/c/a/m0;-><init>(Lcom/discord/models/domain/Model$JsonReader;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextList(Lcom/discord/models/domain/Model$JsonReader$ItemFactory;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/models/domain/ModelNotificationSettings;->channelOverrides:Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
:pswitch_1
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-wide v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->guildId:J
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/discord/models/domain/Model$JsonReader;->nextLong(J)J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-wide v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->guildId:J
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
:pswitch_2
|
2019-11-28 00:30:53 +00:00
|
|
|
iget v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->messageNotifications:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextInt(I)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput p1, p0, Lcom/discord/models/domain/ModelNotificationSettings;->messageNotifications:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
:pswitch_3
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-boolean v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->mobilePush:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextBoolean(Z)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-boolean p1, p0, Lcom/discord/models/domain/ModelNotificationSettings;->mobilePush:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
:pswitch_4
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/Model$JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sget-object v1, Lcom/google/gson/stream/JsonToken;->NULL:Lcom/google/gson/stream/JsonToken;
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/Model$JsonReader;->nextNull()V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_2
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
sget-object v0, Lcom/discord/models/domain/ModelMuteConfig;->Parser:Lcom/discord/models/domain/ModelMuteConfig$Parser;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/discord/models/domain/ModelMuteConfig$Parser;->parse(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/domain/ModelMuteConfig;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/models/domain/ModelNotificationSettings;->muteConfig:Lcom/discord/models/domain/ModelMuteConfig;
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_2
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
:pswitch_5
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-boolean v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->muted:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextBoolean(Z)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-boolean p1, p0, Lcom/discord/models/domain/ModelNotificationSettings;->muted:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
:pswitch_6
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-boolean v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->suppressEveryone:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextBoolean(Z)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iput-boolean p1, p0, Lcom/discord/models/domain/ModelNotificationSettings;->suppressEveryone:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_2
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
|
|
|
|
:sswitch_data_0
|
|
|
|
.sparse-switch
|
2019-11-21 03:22:26 +00:00
|
|
|
-0x7986afd8 -> :sswitch_6
|
2019-07-24 11:27:29 +00:00
|
|
|
-0x4e501369 -> :sswitch_5
|
|
|
|
-0x4de03319 -> :sswitch_4
|
|
|
|
-0x41315215 -> :sswitch_3
|
|
|
|
0x636f16b -> :sswitch_2
|
|
|
|
0x53cf4eb0 -> :sswitch_1
|
|
|
|
0x6a5ce7b5 -> :sswitch_0
|
|
|
|
.end sparse-switch
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
:pswitch_data_0
|
|
|
|
.packed-switch 0x0
|
|
|
|
:pswitch_6
|
|
|
|
:pswitch_5
|
|
|
|
:pswitch_4
|
|
|
|
:pswitch_3
|
|
|
|
:pswitch_2
|
|
|
|
:pswitch_1
|
|
|
|
:pswitch_0
|
|
|
|
.end packed-switch
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public canEqual(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
instance-of p1, p1, Lcom/discord/models/domain/ModelNotificationSettings;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
.method public copyAndRecomputeTransientFields(Lcom/discord/utilities/clocks/Clock;)Lcom/discord/models/domain/ModelNotificationSettings;
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 12
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-boolean v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->muted:Z
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/models/domain/ModelNotificationSettings;->muteConfig:Lcom/discord/models/domain/ModelMuteConfig;
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
invoke-static {v0, v1, p1}, Lcom/discord/models/domain/NotificationSettingsModelUtils;->isMuted(ZLcom/discord/models/domain/ModelMuteConfig;Lcom/discord/utilities/clocks/Clock;)Z
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v6
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
new-instance v11, Ljava/util/ArrayList;
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {v11}, Ljava/util/ArrayList;-><init>()V
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->channelOverrides:Ljava/util/List;
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
2019-11-21 03:22:26 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v1, :cond_0
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
check-cast v1, Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {v1, p1}, Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;->copyAndRecomputeTransientFields(Lcom/discord/utilities/clocks/Clock;)Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v11, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_0
|
2019-11-28 00:30:53 +00:00
|
|
|
new-instance p1, Lcom/discord/models/domain/ModelNotificationSettings;
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-boolean v3, p0, Lcom/discord/models/domain/ModelNotificationSettings;->suppressEveryone:Z
|
|
|
|
|
|
|
|
iget-boolean v4, p0, Lcom/discord/models/domain/ModelNotificationSettings;->muted:Z
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object v5, p0, Lcom/discord/models/domain/ModelNotificationSettings;->muteConfig:Lcom/discord/models/domain/ModelMuteConfig;
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-boolean v7, p0, Lcom/discord/models/domain/ModelNotificationSettings;->mobilePush:Z
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v8, p0, Lcom/discord/models/domain/ModelNotificationSettings;->messageNotifications:I
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-wide v9, p0, Lcom/discord/models/domain/ModelNotificationSettings;->guildId:J
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-object v2, p1
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct/range {v2 .. v11}, Lcom/discord/models/domain/ModelNotificationSettings;-><init>(ZZLcom/discord/models/domain/ModelMuteConfig;ZZIJLjava/util/List;)V
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
if-ne p1, p0, :cond_0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
2019-11-28 00:30:53 +00:00
|
|
|
instance-of v1, p1, Lcom/discord/models/domain/ModelNotificationSettings;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_1
|
2019-11-28 00:30:53 +00:00
|
|
|
check-cast p1, Lcom/discord/models/domain/ModelNotificationSettings;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p1, p0}, Lcom/discord/models/domain/ModelNotificationSettings;->canEqual(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_2
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->isSuppressEveryone()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelNotificationSettings;->isSuppressEveryone()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eq v1, v3, :cond_3
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_3
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->isMuted()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelNotificationSettings;->isMuted()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eq v1, v3, :cond_4
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_4
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->getMuteConfig()Lcom/discord/models/domain/ModelMuteConfig;
|
|
|
|
|
|
|
|
move-result-object v1
|
2019-12-04 22:43:03 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelNotificationSettings;->getMuteConfig()Lcom/discord/models/domain/ModelMuteConfig;
|
|
|
|
|
|
|
|
move-result-object v3
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
if-nez v1, :cond_5
|
|
|
|
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_5
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v1, v3}, Lcom/discord/models/domain/ModelMuteConfig;->equals(Ljava/lang/Object;)Z
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_6
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_6
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-boolean v1, p0, Lcom/discord/models/domain/ModelNotificationSettings;->derivedMute:Z
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-boolean v3, p1, Lcom/discord/models/domain/ModelNotificationSettings;->derivedMute:Z
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
if-eq v1, v3, :cond_7
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_7
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->isMobilePush()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelNotificationSettings;->isMobilePush()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
if-eq v1, v3, :cond_8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return v2
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
:cond_8
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->getMessageNotifications()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelNotificationSettings;->getMessageNotifications()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
if-eq v1, v3, :cond_9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return v2
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
:cond_9
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->getGuildId()J
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-wide v3
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelNotificationSettings;->getGuildId()J
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-wide v5
|
|
|
|
|
|
|
|
cmp-long v1, v3, v5
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
if-eqz v1, :cond_a
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return v2
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
:cond_a
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->getChannelOverrides()Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelNotificationSettings;->getChannelOverrides()Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
if-nez v1, :cond_b
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
if-eqz p1, :cond_c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
goto :goto_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
:cond_b
|
2019-07-24 11:27:29 +00:00
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
if-nez p1, :cond_c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
:goto_1
|
2019-07-24 11:27:29 +00:00
|
|
|
return v2
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
:cond_c
|
2019-07-24 11:27:29 +00:00
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
.method public getChannelOverride(J)Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 6
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->channelOverrides:Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
check-cast v2, Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;->getChannelId()J
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-wide v3
|
|
|
|
|
|
|
|
cmp-long v5, v3, p1
|
|
|
|
|
|
|
|
if-nez v5, :cond_1
|
|
|
|
|
|
|
|
return-object v2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return-object v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getChannelOverrides()Ljava/util/List;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Ljava/util/List<",
|
2019-11-28 00:30:53 +00:00
|
|
|
"Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;",
|
2019-07-24 11:27:29 +00:00
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->channelOverrides:Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getGuildId()J
|
|
|
|
.locals 2
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-wide v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->guildId:J
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getMessageNotifications()I
|
|
|
|
.locals 1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iget v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->messageNotifications:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public getMuteConfig()Lcom/discord/models/domain/ModelMuteConfig;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->muteConfig:Lcom/discord/models/domain/ModelMuteConfig;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-11-21 23:22:50 +00:00
|
|
|
.method public getMuteEndTime()Ljava/lang/String;
|
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
2019-11-21 23:22:50 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->muteConfig:Lcom/discord/models/domain/ModelMuteConfig;
|
2019-11-21 23:22:50 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelMuteConfig;->getEndTime()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-11-21 23:22:50 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
2019-11-21 23:22:50 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
.method public getNextMuteEndTimeMs(Lcom/discord/utilities/clocks/Clock;)J
|
|
|
|
.locals 8
|
|
|
|
|
|
|
|
invoke-interface {p1}, Lcom/discord/utilities/clocks/Clock;->currentTimeMillis()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/models/domain/ModelNotificationSettings;->muteConfig:Lcom/discord/models/domain/ModelMuteConfig;
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelMuteConfig;->getEndTimeMs()Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
cmp-long v4, v2, v0
|
|
|
|
|
|
|
|
if-lez v4, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-wide v2, 0x7fffffffffffffffL
|
|
|
|
|
|
|
|
:goto_0
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/models/domain/ModelNotificationSettings;->channelOverrides:Ljava/util/List;
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_1
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
check-cast v4, Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-static {v4}, Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;->access$000(Lcom/discord/models/domain/ModelNotificationSettings$ChannelOverride;)Lcom/discord/models/domain/ModelMuteConfig;
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelMuteConfig;->getEndTimeMs()Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-wide/high16 v4, -0x8000000000000000L
|
|
|
|
|
|
|
|
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Ljava/lang/Long;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide v5
|
|
|
|
|
|
|
|
cmp-long v7, v5, v0
|
|
|
|
|
|
|
|
if-lez v7, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Ljava/lang/Long;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide v4
|
|
|
|
|
|
|
|
invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
return-wide v2
|
|
|
|
.end method
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
.method public hashCode()I
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 10
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->isSuppressEveryone()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/16 v1, 0x4f
|
|
|
|
|
|
|
|
const/16 v2, 0x61
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/16 v0, 0x4f
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/16 v0, 0x61
|
|
|
|
|
|
|
|
:goto_0
|
2019-12-06 03:29:40 +00:00
|
|
|
const/16 v3, 0x3b
|
|
|
|
|
|
|
|
add-int/2addr v0, v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x3b
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->isMuted()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v4, :cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/16 v4, 0x4f
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2019-12-06 03:29:40 +00:00
|
|
|
const/16 v4, 0x61
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_1
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v0, v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->getMuteConfig()Lcom/discord/models/domain/ModelMuteConfig;
|
|
|
|
|
|
|
|
move-result-object v4
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
mul-int/lit8 v0, v0, 0x3b
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/16 v5, 0x2b
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-nez v4, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/16 v4, 0x2b
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelMuteConfig;->hashCode()I
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_2
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v0, v4
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x3b
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-boolean v4, p0, Lcom/discord/models/domain/ModelNotificationSettings;->derivedMute:Z
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v4, :cond_3
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/16 v4, 0x4f
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_3
|
2019-12-06 03:29:40 +00:00
|
|
|
const/16 v4, 0x61
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
:goto_3
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v0, v4
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x3b
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->isMobilePush()Z
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v4
|
2019-11-21 03:22:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v4, :cond_4
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const/16 v1, 0x61
|
|
|
|
|
|
|
|
:goto_4
|
2019-07-24 11:27:29 +00:00
|
|
|
add-int/2addr v0, v1
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x3b
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->getMessageNotifications()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v1, v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->getGuildId()J
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-wide v6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
mul-int/lit8 v1, v1, 0x3b
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/16 v0, 0x20
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
ushr-long v8, v6, v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
xor-long/2addr v6, v8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
long-to-int v0, v6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v1, v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->getChannelOverrides()Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
mul-int/lit8 v1, v1, 0x3b
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-nez v0, :cond_5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
goto :goto_5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
:cond_5
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
:goto_5
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v1, v5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
return v1
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public isMobilePush()Z
|
|
|
|
.locals 1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-boolean v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->mobilePush:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public isMuted()Z
|
|
|
|
.locals 1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-boolean v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->derivedMute:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public isSuppressEveryone()Z
|
|
|
|
.locals 1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-boolean v0, p0, Lcom/discord/models/domain/ModelNotificationSettings;->suppressEveryone:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 3
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string v0, "ModelNotificationSettings(suppressEveryone="
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->isSuppressEveryone()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", muted="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->isMuted()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
|
2019-11-21 03:22:26 +00:00
|
|
|
const-string v1, ", muteConfig="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->getMuteConfig()Lcom/discord/models/domain/ModelMuteConfig;
|
|
|
|
|
|
|
|
move-result-object v1
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", derivedMute="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
iget-boolean v1, p0, Lcom/discord/models/domain/ModelNotificationSettings;->derivedMute:Z
|
2019-11-21 03:22:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
const-string v1, ", mobilePush="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->isMobilePush()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", messageNotifications="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->getMessageNotifications()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", guildId="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->getGuildId()J
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", channelOverrides="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelNotificationSettings;->getChannelOverrides()Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ")"
|
|
|
|
|
|
|
|
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
|