apkfuckery/com.discord/smali/com/discord/models/domain/ModelUserGuildSettings.smali

724 lines
17 KiB
Smali
Raw Normal View History

2019-02-04 20:05:16 +00:00
.class public Lcom/discord/models/domain/ModelUserGuildSettings;
2019-02-04 20:08:30 +00:00
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "ModelUserGuildSettings.java"
2019-02-04 20:08:30 +00:00
# interfaces
.implements Lcom/discord/models/domain/Model;
2019-02-04 20:05:16 +00:00
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/models/domain/ModelUserGuildSettings$ChannelOverride;
}
.end annotation
# static fields
2019-02-04 20:08:30 +00:00
.field public static FREQUENCY_ALL:I = 0x0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
.field public static FREQUENCY_MENTIONS:I = 0x1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
.field public static FREQUENCY_NOTHING:I = 0x2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
.field public static FREQUENCY_UNSET:I = 0x3
2019-02-04 20:05:16 +00:00
# instance fields
.field private channelOverrides:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
2019-02-04 20:08:30 +00:00
"Ljava/util/List<",
2019-02-04 20:05:16 +00:00
"Lcom/discord/models/domain/ModelUserGuildSettings$ChannelOverride;",
">;"
}
.end annotation
.end field
.field private guildId:J
.field private messageNotifications:I
.field private mobilePush:Z
.field private muted:Z
.field private suppressEveryone:Z
# direct methods
.method static constructor <clinit>()V
2019-02-04 20:08:30 +00:00
.locals 0
2019-02-04 20:05:16 +00:00
return-void
.end method
.method public constructor <init>()V
.locals 2
2019-02-04 20:08:30 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v0, 0x0
2019-02-04 20:05:16 +00:00
iput-boolean v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->suppressEveryone:Z
iput-boolean v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->muted:Z
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->mobilePush:Z
sget v0, Lcom/discord/models/domain/ModelUserGuildSettings;->FREQUENCY_UNSET:I
iput v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->messageNotifications:I
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->guildId:J
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->channelOverrides:Ljava/util/List;
return-void
.end method
2019-02-04 20:08:30 +00:00
.method static synthetic lambda$assignField$0(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/domain/ModelUserGuildSettings$ChannelOverride;
2019-02-04 20:05:16 +00:00
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
new-instance v0, Lcom/discord/models/domain/ModelUserGuildSettings$ChannelOverride;
invoke-direct {v0}, Lcom/discord/models/domain/ModelUserGuildSettings$ChannelOverride;-><init>()V
2019-02-04 20:08:30 +00:00
invoke-virtual {p0, v0}, Lcom/discord/models/domain/Model$JsonReader;->parse(Lcom/discord/models/domain/Model;)Lcom/discord/models/domain/Model;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
check-cast p0, Lcom/discord/models/domain/ModelUserGuildSettings$ChannelOverride;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-object p0
2019-02-04 20:05:16 +00:00
.end method
# virtual methods
2019-02-04 20:08:30 +00:00
.method public assignField(Lcom/discord/models/domain/Model$JsonReader;)V
.locals 2
2019-02-04 20:05:16 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Lcom/discord/models/domain/Model$JsonReader;->nextName()Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
sparse-switch v1, :sswitch_data_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_0
2019-02-04 20:05:16 +00:00
:sswitch_0
2019-02-04 20:08:30 +00:00
const-string v1, "suppress_everyone"
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_0
2019-02-04 20:05:16 +00:00
const/4 v0, 0x0
2019-02-04 20:08:30 +00:00
goto :goto_1
2019-02-04 20:05:16 +00:00
:sswitch_1
2019-02-04 20:08:30 +00:00
const-string v1, "message_notifications"
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v0, 0x3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_1
2019-02-04 20:05:16 +00:00
:sswitch_2
2019-02-04 20:08:30 +00:00
const-string v1, "muted"
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v0, 0x1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_1
2019-02-04 20:05:16 +00:00
:sswitch_3
2019-02-04 20:08:30 +00:00
const-string v1, "channel_overrides"
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v0, 0x5
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_1
2019-02-04 20:05:16 +00:00
:sswitch_4
2019-02-04 20:08:30 +00:00
const-string v1, "guild_id"
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_0
2019-02-04 20:05:16 +00:00
const/4 v0, 0x4
2019-02-04 20:08:30 +00:00
goto :goto_1
2019-02-04 20:05:16 +00:00
:sswitch_5
2019-02-04 20:08:30 +00:00
const-string v1, "mobile_push"
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v0, 0x2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_1
:cond_0
:goto_0
const/4 v0, -0x1
:goto_1
packed-switch v0, :pswitch_data_0
invoke-virtual {p1}, Lcom/discord/models/domain/Model$JsonReader;->skipValue()V
return-void
2019-02-04 20:05:16 +00:00
:pswitch_0
2019-02-04 20:08:30 +00:00
new-instance v0, Lcom/discord/models/domain/-$$Lambda$ModelUserGuildSettings$IvOTQQITKYcQVvFUeVXDgMhlxYM;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-direct {v0, p1}, Lcom/discord/models/domain/-$$Lambda$ModelUserGuildSettings$IvOTQQITKYcQVvFUeVXDgMhlxYM;-><init>(Lcom/discord/models/domain/Model$JsonReader;)V
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextList(Lcom/discord/models/domain/Model$JsonReader$ItemFactory;)Ljava/util/List;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iput-object p1, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->channelOverrides:Ljava/util/List;
return-void
2019-02-04 20:05:16 +00:00
:pswitch_1
2019-02-04 20:08:30 +00:00
iget-wide v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->guildId:J
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0, v1}, Lcom/discord/models/domain/Model$JsonReader;->nextLong(J)J
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-wide v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iput-wide v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->guildId:J
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-void
2019-02-04 20:05:16 +00:00
:pswitch_2
2019-02-04 20:08:30 +00:00
iget v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->messageNotifications:I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextInt(I)I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iput p1, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->messageNotifications:I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-void
2019-02-04 20:05:16 +00:00
:pswitch_3
2019-02-04 20:08:30 +00:00
iget-boolean v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->mobilePush:Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextBoolean(Z)Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iput-boolean p1, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->mobilePush:Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-void
2019-02-04 20:05:16 +00:00
:pswitch_4
2019-02-04 20:08:30 +00:00
iget-boolean v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->muted:Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextBoolean(Z)Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iput-boolean p1, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->muted:Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-void
2019-02-04 20:05:16 +00:00
:pswitch_5
2019-02-04 20:08:30 +00:00
iget-boolean v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->suppressEveryone:Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextBoolean(Z)Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iput-boolean p1, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->suppressEveryone:Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-void
2019-02-04 20:05:16 +00:00
nop
:sswitch_data_0
.sparse-switch
2019-02-04 20:08:30 +00:00
-0x4e501369 -> :sswitch_5
2019-02-04 20:05:16 +00:00
-0x4de03319 -> :sswitch_4
2019-02-04 20:08:30 +00:00
-0x41315215 -> :sswitch_3
0x636f16b -> :sswitch_2
0x53cf4eb0 -> :sswitch_1
2019-02-04 20:05:16 +00:00
0x6a5ce7b5 -> :sswitch_0
.end sparse-switch
:pswitch_data_0
.packed-switch 0x0
:pswitch_5
2019-02-04 20:08:30 +00:00
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
:pswitch_0
2019-02-04 20:05:16 +00:00
.end packed-switch
.end method
.method protected canEqual(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
.locals 0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
instance-of p1, p1, Lcom/discord/models/domain/ModelUserGuildSettings;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return p1
2019-02-04 20:05:16 +00:00
.end method
.method public equals(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
.locals 7
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v0, 0x1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-ne p1, p0, :cond_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return v0
2019-02-04 20:05:16 +00:00
:cond_0
2019-02-04 20:08:30 +00:00
instance-of v1, p1, Lcom/discord/models/domain/ModelUserGuildSettings;
const/4 v2, 0x0
if-nez v1, :cond_1
return v2
2019-02-04 20:05:16 +00:00
:cond_1
2019-02-04 20:08:30 +00:00
check-cast p1, Lcom/discord/models/domain/ModelUserGuildSettings;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->canEqual(Ljava/lang/Object;)Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-nez v1, :cond_2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return v2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_2
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->isSuppressEveryone()Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUserGuildSettings;->isSuppressEveryone()Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eq v1, v3, :cond_3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return v2
2019-02-04 20:05:16 +00:00
:cond_3
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->isMuted()Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUserGuildSettings;->isMuted()Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eq v1, v3, :cond_4
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return v2
2019-02-04 20:05:16 +00:00
:cond_4
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->isMobilePush()Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUserGuildSettings;->isMobilePush()Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eq v1, v3, :cond_5
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return v2
2019-02-04 20:05:16 +00:00
:cond_5
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->getMessageNotifications()I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUserGuildSettings;->getMessageNotifications()I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eq v1, v3, :cond_6
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return v2
2019-02-04 20:05:16 +00:00
:cond_6
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->getGuildId()J
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-wide v3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUserGuildSettings;->getGuildId()J
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-wide v5
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
cmp-long v1, v3, v5
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v1, :cond_7
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return v2
2019-02-04 20:05:16 +00:00
:cond_7
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->getChannelOverrides()Ljava/util/List;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUserGuildSettings;->getChannelOverrides()Ljava/util/List;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-nez v1, :cond_8
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz p1, :cond_9
2019-02-04 20:05:16 +00:00
goto :goto_0
:cond_8
2019-02-04 20:08:30 +00:00
invoke-virtual {v1, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-nez p1, :cond_9
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:goto_0
return v2
:cond_9
return v0
.end method
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
.method public getChannelOverride(J)Lcom/discord/models/domain/ModelUserGuildSettings$ChannelOverride;
.locals 6
.annotation build Landroidx/annotation/Nullable;
.end annotation
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iget-object v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->channelOverrides:Ljava/util/List;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v1, 0x0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-object v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_0
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
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
check-cast v2, Lcom/discord/models/domain/ModelUserGuildSettings$ChannelOverride;
invoke-virtual {v2}, Lcom/discord/models/domain/ModelUserGuildSettings$ChannelOverride;->getChannelId()J
move-result-wide v3
cmp-long v5, v3, p1
if-nez v5, :cond_1
return-object v2
:cond_2
return-object v1
2019-02-04 20:05:16 +00:00
.end method
.method public getChannelOverrides()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
2019-02-04 20:08:30 +00:00
"Ljava/util/List<",
2019-02-04 20:05:16 +00:00
"Lcom/discord/models/domain/ModelUserGuildSettings$ChannelOverride;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->channelOverrides:Ljava/util/List;
return-object v0
.end method
.method public getGuildId()J
.locals 2
iget-wide v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->guildId:J
return-wide v0
.end method
.method public getMessageNotifications()I
.locals 1
iget v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->messageNotifications:I
return v0
.end method
.method public hashCode()I
2019-02-04 20:08:30 +00:00
.locals 5
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->isSuppressEveryone()Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:29:01 +00:00
const/16 v1, 0x4f
2019-02-04 20:05:16 +00:00
2019-02-04 20:29:01 +00:00
const/16 v2, 0x61
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/16 v0, 0x4f
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_0
const/16 v0, 0x61
2019-02-04 20:05:16 +00:00
:goto_0
2019-02-04 20:08:30 +00:00
add-int/lit8 v0, v0, 0x3b
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
mul-int/lit8 v0, v0, 0x3b
2019-02-04 20:05:16 +00:00
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->isMuted()Z
2019-02-04 20:08:30 +00:00
move-result v3
if-eqz v3, :cond_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/16 v3, 0x4f
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_1
:cond_1
const/16 v3, 0x61
2019-02-04 20:05:16 +00:00
:goto_1
2019-02-04 20:08:30 +00:00
add-int/2addr v0, v3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
mul-int/lit8 v0, v0, 0x3b
2019-02-04 20:05:16 +00:00
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->isMobilePush()Z
2019-02-04 20:08:30 +00:00
move-result v3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v3, :cond_2
2019-02-04 20:05:16 +00:00
2019-02-04 20:29:01 +00:00
goto :goto_2
2019-02-04 20:08:30 +00:00
:cond_2
2019-02-04 20:29:01 +00:00
const/16 v1, 0x61
:goto_2
2019-02-04 20:08:30 +00:00
add-int/2addr v0, v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
mul-int/lit8 v0, v0, 0x3b
2019-02-04 20:05:16 +00:00
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->getMessageNotifications()I
2019-02-04 20:08:30 +00:00
move-result v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
add-int/2addr v0, v1
2019-02-04 20:05:16 +00:00
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->getGuildId()J
2019-02-04 20:08:30 +00:00
move-result-wide v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
mul-int/lit8 v0, v0, 0x3b
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/16 v3, 0x20
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
ushr-long v3, v1, v3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
xor-long/2addr v1, v3
2019-02-04 20:05:16 +00:00
2019-02-17 02:24:41 +00:00
long-to-int v2, v1
2019-02-04 20:05:16 +00:00
2019-02-17 02:24:41 +00:00
add-int/2addr v0, v2
2019-02-04 20:05:16 +00:00
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->getChannelOverrides()Ljava/util/List;
2019-02-04 20:08:30 +00:00
move-result-object v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
mul-int/lit8 v0, v0, 0x3b
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-nez v1, :cond_3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/16 v1, 0x2b
2019-02-04 20:05:16 +00:00
2019-02-04 20:29:01 +00:00
goto :goto_3
2019-02-04 20:05:16 +00:00
:cond_3
2019-02-04 20:08:30 +00:00
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:29:01 +00:00
:goto_3
2019-02-04 20:08:30 +00:00
add-int/2addr v0, v1
return v0
2019-02-04 20:05:16 +00:00
.end method
.method public isMobilePush()Z
.locals 1
iget-boolean v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->mobilePush:Z
return v0
.end method
.method public isMuted()Z
.locals 1
iget-boolean v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->muted:Z
return v0
.end method
.method public isSuppressEveryone()Z
.locals 1
iget-boolean v0, p0, Lcom/discord/models/domain/ModelUserGuildSettings;->suppressEveryone:Z
return v0
.end method
.method public toString()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
.locals 3
2019-02-04 20:05:16 +00:00
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "ModelUserGuildSettings(suppressEveryone="
2019-02-04 20:08:30 +00:00
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-04 20:05:16 +00:00
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->isSuppressEveryone()Z
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;
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->isMuted()Z
move-result v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
const-string v1, ", mobilePush="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->isMobilePush()Z
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;
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->getMessageNotifications()I
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;
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->getGuildId()J
2019-02-04 20:08:30 +00:00
move-result-wide v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
2019-02-04 20:05:16 +00:00
const-string v1, ", channelOverrides="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUserGuildSettings;->getChannelOverrides()Ljava/util/List;
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