2722 lines
67 KiB
Smali
2722 lines
67 KiB
Smali
|
.class public Lcom/discord/models/domain/ModelGuild;
|
||
|
.super Lcom/discord/models/domain/Model;
|
||
|
.source "ModelGuild.java"
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private channels:Ljava/util/List;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/List",
|
||
|
"<",
|
||
|
"Lcom/discord/models/domain/ModelChannel;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private defaultMessageNotifications:Ljava/lang/Integer;
|
||
|
|
||
|
.field private emojis:Ljava/util/List;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/List",
|
||
|
"<",
|
||
|
"Lcom/discord/models/domain/ModelEmoji;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private icon:Ljava/lang/String;
|
||
|
|
||
|
.field private id:J
|
||
|
|
||
|
.field private large:Z
|
||
|
|
||
|
.field private members:Ljava/util/List;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/List",
|
||
|
"<",
|
||
|
"Lcom/discord/models/domain/ModelGuildMember;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private final transient membersMap:Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/concurrent/atomic/AtomicReference",
|
||
|
"<",
|
||
|
"Ljava/lang/Object;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private mfaLevel:I
|
||
|
|
||
|
.field private name:Ljava/lang/String;
|
||
|
|
||
|
.field private ownerId:J
|
||
|
|
||
|
.field private presences:Ljava/util/List;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/List",
|
||
|
"<",
|
||
|
"Lcom/discord/models/domain/ModelPresence;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private region:Ljava/lang/String;
|
||
|
|
||
|
.field private roles:Ljava/util/List;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/List",
|
||
|
"<",
|
||
|
"Lcom/discord/models/domain/ModelGuildRole;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private final transient shortName:Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/concurrent/atomic/AtomicReference",
|
||
|
"<",
|
||
|
"Ljava/lang/Object;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private unavailable:Z
|
||
|
|
||
|
.field private verificationLevel:Ljava/lang/Integer;
|
||
|
|
||
|
.field private voiceStates:Ljava/util/List;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/List",
|
||
|
"<",
|
||
|
"Lcom/discord/models/domain/ModelVoice$State;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
invoke-direct {p0}, Lcom/discord/models/domain/Model;-><init>()V
|
||
|
|
||
|
new-instance v0, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelGuild;->emojis:Ljava/util/List;
|
||
|
|
||
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelGuild;->membersMap:Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
|
||
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelGuild;->shortName:Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic access$lambda$0(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelGuildRole;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-static {p0}, Lcom/discord/models/domain/ModelGuild;->lambda$assignField$22(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelGuildRole;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic access$lambda$1(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelEmoji;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-static {p0}, Lcom/discord/models/domain/ModelGuild;->lambda$assignField$23(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelEmoji;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic access$lambda$2(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelPresence;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-static {p0}, Lcom/discord/models/domain/ModelGuild;->lambda$assignField$24(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelPresence;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic access$lambda$3(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelChannel;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-static {p0}, Lcom/discord/models/domain/ModelGuild;->lambda$assignField$25(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelChannel;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic access$lambda$4(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelGuildMember;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-static {p0}, Lcom/discord/models/domain/ModelGuild;->lambda$assignField$26(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelGuildMember;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic access$lambda$5(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelVoice$State;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-static {p0}, Lcom/discord/models/domain/ModelGuild;->lambda$assignField$27(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelVoice$State;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic access$lambda$6(Lcom/discord/models/domain/ModelGuildMember;)Ljava/lang/Long;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-static {p0}, Lcom/discord/models/domain/ModelGuild;->lambda$computeMembers$28(Lcom/discord/models/domain/ModelGuildMember;)Ljava/lang/Long;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private computeMembers(Ljava/util/List;)Ljava/util/Map;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/List",
|
||
|
"<",
|
||
|
"Lcom/discord/models/domain/ModelGuildMember;",
|
||
|
">;)",
|
||
|
"Ljava/util/Map",
|
||
|
"<",
|
||
|
"Ljava/lang/Long;",
|
||
|
"Lcom/discord/models/domain/ModelGuildMember;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.local p1, "members":Ljava/util/List;, "Ljava/util/List<Lcom/discord/models/domain/ModelGuildMember;>;"
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
.end local p1 # "members":Ljava/util/List;, "Ljava/util/List<Lcom/discord/models/domain/ModelGuildMember;>;"
|
||
|
:goto_0
|
||
|
invoke-static {p1}, Lcom/annimon/stream/Stream;->of(Ljava/util/List;)Lcom/annimon/stream/Stream;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {}, Lcom/discord/models/domain/ModelGuild$$Lambda$7;->lambdaFactory$()Lcom/annimon/stream/function/Function;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-static {v1}, Lcom/discord/utilities/app/AppCollectors;->toMap(Lcom/annimon/stream/function/Function;)Lcom/annimon/stream/Collector;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/annimon/stream/Stream;->collect(Lcom/annimon/stream/Collector;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Ljava/util/Map;
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
.restart local p1 # "members":Ljava/util/List;, "Ljava/util/List<Lcom/discord/models/domain/ModelGuildMember;>;"
|
||
|
:cond_0
|
||
|
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method private computeShortName(Ljava/lang/String;)Ljava/lang/String;
|
||
|
.locals 7
|
||
|
.param p1, "name" # Ljava/lang/String;
|
||
|
|
||
|
.prologue
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
const-string p1, ""
|
||
|
|
||
|
:cond_0
|
||
|
const-string v1, ""
|
||
|
|
||
|
.local v1, "shortName":Ljava/lang/String;
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
.local v2, "wasTrigger":Z
|
||
|
invoke-virtual {p1}, Ljava/lang/String;->toCharArray()[C
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
array-length v5, v4
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
if-ge v3, v5, :cond_4
|
||
|
|
||
|
aget-char v6, v4, v3
|
||
|
|
||
|
invoke-static {v6}, Ljava/lang/Character;->valueOf(C)Ljava/lang/Character;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.local v0, "character":Ljava/lang/Character;
|
||
|
invoke-virtual {v0}, Ljava/lang/Character;->charValue()C
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
invoke-static {v6}, Ljava/lang/Character;->isWhitespace(C)Z
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
if-eqz v6, :cond_2
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
:cond_1
|
||
|
:goto_1
|
||
|
add-int/lit8 v3, v3, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_2
|
||
|
invoke-virtual {v0}, Ljava/lang/Character;->charValue()C
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
invoke-static {v6}, Ljava/lang/Character;->isLetter(C)Z
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
if-nez v6, :cond_3
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
new-instance v6, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_3
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
new-instance v6, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
.end local v0 # "character":Ljava/lang/Character;
|
||
|
:cond_4
|
||
|
return-object v1
|
||
|
.end method
|
||
|
|
||
|
.method public static createPartial(Lcom/discord/models/domain/ModelGuild;Lcom/discord/models/domain/ModelGuild;)Lcom/discord/models/domain/ModelGuild;
|
||
|
.locals 6
|
||
|
.param p0, "guild" # Lcom/discord/models/domain/ModelGuild;
|
||
|
.param p1, "guildPartial" # Lcom/discord/models/domain/ModelGuild;
|
||
|
|
||
|
.prologue
|
||
|
const-wide/16 v4, 0x0
|
||
|
|
||
|
if-nez p0, :cond_0
|
||
|
|
||
|
new-instance p0, Lcom/discord/models/domain/ModelGuild;
|
||
|
|
||
|
.end local p0 # "guild":Lcom/discord/models/domain/ModelGuild;
|
||
|
invoke-direct {p0}, Lcom/discord/models/domain/ModelGuild;-><init>()V
|
||
|
|
||
|
.restart local p0 # "guild":Lcom/discord/models/domain/ModelGuild;
|
||
|
:cond_0
|
||
|
if-nez p1, :cond_1
|
||
|
|
||
|
new-instance p1, Lcom/discord/models/domain/ModelGuild;
|
||
|
|
||
|
.end local p1 # "guildPartial":Lcom/discord/models/domain/ModelGuild;
|
||
|
invoke-direct {p1}, Lcom/discord/models/domain/ModelGuild;-><init>()V
|
||
|
|
||
|
.restart local p1 # "guildPartial":Lcom/discord/models/domain/ModelGuild;
|
||
|
:cond_1
|
||
|
new-instance v0, Lcom/discord/models/domain/ModelGuild;
|
||
|
|
||
|
invoke-direct {v0}, Lcom/discord/models/domain/ModelGuild;-><init>()V
|
||
|
|
||
|
.local v0, "mergedGuild":Lcom/discord/models/domain/ModelGuild;
|
||
|
iget-object v1, p1, Lcom/discord/models/domain/ModelGuild;->name:Ljava/lang/String;
|
||
|
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
iget-object v1, p1, Lcom/discord/models/domain/ModelGuild;->name:Ljava/lang/String;
|
||
|
|
||
|
:goto_0
|
||
|
iput-object v1, v0, Lcom/discord/models/domain/ModelGuild;->name:Ljava/lang/String;
|
||
|
|
||
|
iget-boolean v1, p1, Lcom/discord/models/domain/ModelGuild;->large:Z
|
||
|
|
||
|
if-nez v1, :cond_2
|
||
|
|
||
|
iget-boolean v1, p0, Lcom/discord/models/domain/ModelGuild;->large:Z
|
||
|
|
||
|
if-eqz v1, :cond_4
|
||
|
|
||
|
:cond_2
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
:goto_1
|
||
|
iput-boolean v1, v0, Lcom/discord/models/domain/ModelGuild;->large:Z
|
||
|
|
||
|
iget-object v1, p1, Lcom/discord/models/domain/ModelGuild;->defaultMessageNotifications:Ljava/lang/Integer;
|
||
|
|
||
|
if-eqz v1, :cond_5
|
||
|
|
||
|
iget-object v1, p1, Lcom/discord/models/domain/ModelGuild;->defaultMessageNotifications:Ljava/lang/Integer;
|
||
|
|
||
|
:goto_2
|
||
|
iput-object v1, v0, Lcom/discord/models/domain/ModelGuild;->defaultMessageNotifications:Ljava/lang/Integer;
|
||
|
|
||
|
iget-wide v2, p1, Lcom/discord/models/domain/ModelGuild;->id:J
|
||
|
|
||
|
cmp-long v1, v2, v4
|
||
|
|
||
|
if-eqz v1, :cond_6
|
||
|
|
||
|
iget-wide v2, p1, Lcom/discord/models/domain/ModelGuild;->id:J
|
||
|
|
||
|
:goto_3
|
||
|
iput-wide v2, v0, Lcom/discord/models/domain/ModelGuild;->id:J
|
||
|
|
||
|
iget-object v1, p1, Lcom/discord/models/domain/ModelGuild;->region:Ljava/lang/String;
|
||
|
|
||
|
if-eqz v1, :cond_7
|
||
|
|
||
|
iget-object v1, p1, Lcom/discord/models/domain/ModelGuild;->region:Ljava/lang/String;
|
||
|
|
||
|
:goto_4
|
||
|
iput-object v1, v0, Lcom/discord/models/domain/ModelGuild;->region:Ljava/lang/String;
|
||
|
|
||
|
iget-wide v2, p1, Lcom/discord/models/domain/ModelGuild;->ownerId:J
|
||
|
|
||
|
cmp-long v1, v2, v4
|
||
|
|
||
|
if-eqz v1, :cond_8
|
||
|
|
||
|
iget-wide v2, p1, Lcom/discord/models/domain/ModelGuild;->ownerId:J
|
||
|
|
||
|
:goto_5
|
||
|
iput-wide v2, v0, Lcom/discord/models/domain/ModelGuild;->ownerId:J
|
||
|
|
||
|
iget-object v1, p1, Lcom/discord/models/domain/ModelGuild;->icon:Ljava/lang/String;
|
||
|
|
||
|
if-eqz v1, :cond_9
|
||
|
|
||
|
iget-object v1, p1, Lcom/discord/models/domain/ModelGuild;->icon:Ljava/lang/String;
|
||
|
|
||
|
:goto_6
|
||
|
iput-object v1, v0, Lcom/discord/models/domain/ModelGuild;->icon:Ljava/lang/String;
|
||
|
|
||
|
iget-object v1, p1, Lcom/discord/models/domain/ModelGuild;->verificationLevel:Ljava/lang/Integer;
|
||
|
|
||
|
if-eqz v1, :cond_a
|
||
|
|
||
|
iget-object v1, p1, Lcom/discord/models/domain/ModelGuild;->verificationLevel:Ljava/lang/Integer;
|
||
|
|
||
|
:goto_7
|
||
|
iput-object v1, v0, Lcom/discord/models/domain/ModelGuild;->verificationLevel:Ljava/lang/Integer;
|
||
|
|
||
|
iget v1, p1, Lcom/discord/models/domain/ModelGuild;->mfaLevel:I
|
||
|
|
||
|
iput v1, v0, Lcom/discord/models/domain/ModelGuild;->mfaLevel:I
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:cond_3
|
||
|
iget-object v1, p0, Lcom/discord/models/domain/ModelGuild;->name:Ljava/lang/String;
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_4
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_5
|
||
|
iget-object v1, p0, Lcom/discord/models/domain/ModelGuild;->defaultMessageNotifications:Ljava/lang/Integer;
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_6
|
||
|
iget-wide v2, p0, Lcom/discord/models/domain/ModelGuild;->id:J
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_7
|
||
|
iget-object v1, p0, Lcom/discord/models/domain/ModelGuild;->region:Ljava/lang/String;
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:cond_8
|
||
|
iget-wide v2, p0, Lcom/discord/models/domain/ModelGuild;->ownerId:J
|
||
|
|
||
|
goto :goto_5
|
||
|
|
||
|
:cond_9
|
||
|
iget-object v1, p0, Lcom/discord/models/domain/ModelGuild;->icon:Ljava/lang/String;
|
||
|
|
||
|
goto :goto_6
|
||
|
|
||
|
:cond_a
|
||
|
iget-object v1, p0, Lcom/discord/models/domain/ModelGuild;->verificationLevel:Ljava/lang/Integer;
|
||
|
|
||
|
goto :goto_7
|
||
|
.end method
|
||
|
|
||
|
.method private static synthetic lambda$assignField$22(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelGuildRole;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
new-instance v0, Lcom/discord/models/domain/ModelGuildRole;
|
||
|
|
||
|
invoke-direct {v0}, Lcom/discord/models/domain/ModelGuildRole;-><init>()V
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-virtual {v0, p0, v1}, Lcom/discord/models/domain/ModelGuildRole;->parse(Lcom/miguelgaeta/message_parser/MessageParser;Lcom/discord/models/domain/Model;)Lcom/discord/models/domain/Model;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/discord/models/domain/ModelGuildRole;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private static synthetic lambda$assignField$23(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelEmoji;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
new-instance v0, Lcom/discord/models/domain/ModelEmoji;
|
||
|
|
||
|
invoke-direct {v0}, Lcom/discord/models/domain/ModelEmoji;-><init>()V
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-virtual {v0, p0, v1}, Lcom/discord/models/domain/ModelEmoji;->parse(Lcom/miguelgaeta/message_parser/MessageParser;Lcom/discord/models/domain/Model;)Lcom/discord/models/domain/Model;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/discord/models/domain/ModelEmoji;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private static synthetic lambda$assignField$24(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelPresence;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
new-instance v0, Lcom/discord/models/domain/ModelPresence;
|
||
|
|
||
|
invoke-direct {v0}, Lcom/discord/models/domain/ModelPresence;-><init>()V
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-virtual {v0, p0, v1}, Lcom/discord/models/domain/ModelPresence;->parse(Lcom/miguelgaeta/message_parser/MessageParser;Lcom/discord/models/domain/Model;)Lcom/discord/models/domain/Model;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/discord/models/domain/ModelPresence;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private static synthetic lambda$assignField$25(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelChannel;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
new-instance v0, Lcom/discord/models/domain/ModelChannel;
|
||
|
|
||
|
invoke-direct {v0}, Lcom/discord/models/domain/ModelChannel;-><init>()V
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-virtual {v0, p0, v1}, Lcom/discord/models/domain/ModelChannel;->parse(Lcom/miguelgaeta/message_parser/MessageParser;Lcom/discord/models/domain/Model;)Lcom/discord/models/domain/Model;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/discord/models/domain/ModelChannel;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private static synthetic lambda$assignField$26(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelGuildMember;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
new-instance v0, Lcom/discord/models/domain/ModelGuildMember;
|
||
|
|
||
|
invoke-direct {v0}, Lcom/discord/models/domain/ModelGuildMember;-><init>()V
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-virtual {v0, p0, v1}, Lcom/discord/models/domain/ModelGuildMember;->parse(Lcom/miguelgaeta/message_parser/MessageParser;Lcom/discord/models/domain/Model;)Lcom/discord/models/domain/Model;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/discord/models/domain/ModelGuildMember;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private static synthetic lambda$assignField$27(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelVoice$State;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
new-instance v0, Lcom/discord/models/domain/ModelVoice$State;
|
||
|
|
||
|
invoke-direct {v0}, Lcom/discord/models/domain/ModelVoice$State;-><init>()V
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-virtual {v0, p0, v1}, Lcom/discord/models/domain/ModelVoice$State;->parse(Lcom/miguelgaeta/message_parser/MessageParser;Lcom/discord/models/domain/Model;)Lcom/discord/models/domain/Model;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/discord/models/domain/ModelVoice$State;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private static synthetic lambda$computeMembers$28(Lcom/discord/models/domain/ModelGuildMember;)Ljava/lang/Long;
|
||
|
.locals 2
|
||
|
.param p0, "member" # Lcom/discord/models/domain/ModelGuildMember;
|
||
|
|
||
|
.prologue
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuildMember;->getUser()Lcom/discord/models/domain/ModelUser;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelUser;->getId()J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method protected assignField(Lcom/miguelgaeta/message_parser/MessageParser;)V
|
||
|
.locals 4
|
||
|
.param p1, "reader" # Lcom/miguelgaeta/message_parser/MessageParser;
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-interface {p1}, Lcom/miguelgaeta/message_parser/MessageParser;->nextName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const/4 v0, -0x1
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/String;->hashCode()I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
sparse-switch v3, :sswitch_data_0
|
||
|
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
packed-switch v0, :pswitch_data_0
|
||
|
|
||
|
invoke-interface {p1}, Lcom/miguelgaeta/message_parser/MessageParser;->skipValue()V
|
||
|
|
||
|
:goto_1
|
||
|
return-void
|
||
|
|
||
|
:sswitch_0
|
||
|
const-string v3, "roles"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
move v0, v1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:sswitch_1
|
||
|
const-string v3, "emojis"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:sswitch_2
|
||
|
const-string v3, "name"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
const/4 v0, 0x2
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:sswitch_3
|
||
|
const-string v3, "large"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
const/4 v0, 0x3
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:sswitch_4
|
||
|
const-string v3, "default_message_notifications"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
const/4 v0, 0x4
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:sswitch_5
|
||
|
const-string v3, "id"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
const/4 v0, 0x5
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:sswitch_6
|
||
|
const-string v3, "region"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
const/4 v0, 0x6
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:sswitch_7
|
||
|
const-string v3, "owner_id"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
const/4 v0, 0x7
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:sswitch_8
|
||
|
const-string v3, "icon"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
const/16 v0, 0x8
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:sswitch_9
|
||
|
const-string v3, "verification_level"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
const/16 v0, 0x9
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:sswitch_a
|
||
|
const-string v3, "presences"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
const/16 v0, 0xa
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:sswitch_b
|
||
|
const-string v3, "channels"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
const/16 v0, 0xb
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:sswitch_c
|
||
|
const-string v3, "members"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
const/16 v0, 0xc
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:sswitch_d
|
||
|
const-string v3, "voice_states"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
const/16 v0, 0xd
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:sswitch_e
|
||
|
const-string v3, "unavailable"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
const/16 v0, 0xe
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:sswitch_f
|
||
|
const-string v3, "mfa_level"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
const/16 v0, 0xf
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:pswitch_0
|
||
|
invoke-static {p1}, Lcom/discord/models/domain/ModelGuild$$Lambda$1;->lambdaFactory$(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/miguelgaeta/message_parser/MessageParser$ListItem;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {p1, v0}, Lcom/miguelgaeta/message_parser/MessageParser;->nextList(Lcom/miguelgaeta/message_parser/MessageParser$ListItem;)Ljava/util/List;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelGuild;->roles:Ljava/util/List;
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:pswitch_1
|
||
|
invoke-static {p1}, Lcom/discord/models/domain/ModelGuild$$Lambda$2;->lambdaFactory$(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/miguelgaeta/message_parser/MessageParser$ListItem;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {p1, v0}, Lcom/miguelgaeta/message_parser/MessageParser;->nextList(Lcom/miguelgaeta/message_parser/MessageParser$ListItem;)Ljava/util/List;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelGuild;->emojis:Ljava/util/List;
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:pswitch_2
|
||
|
const-string v0, ""
|
||
|
|
||
|
invoke-interface {p1, v0}, Lcom/miguelgaeta/message_parser/MessageParser;->nextString(Ljava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelGuild;->name:Ljava/lang/String;
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:pswitch_3
|
||
|
invoke-interface {p1, v1}, Lcom/miguelgaeta/message_parser/MessageParser;->nextBoolean(Z)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput-boolean v0, p0, Lcom/discord/models/domain/ModelGuild;->large:Z
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:pswitch_4
|
||
|
invoke-interface {p1}, Lcom/miguelgaeta/message_parser/MessageParser;->nextIntOrNull()Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelGuild;->defaultMessageNotifications:Ljava/lang/Integer;
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:pswitch_5
|
||
|
iget-wide v0, p0, Lcom/discord/models/domain/ModelGuild;->id:J
|
||
|
|
||
|
invoke-interface {p1, v0, v1}, Lcom/miguelgaeta/message_parser/MessageParser;->nextLong(J)J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
iput-wide v0, p0, Lcom/discord/models/domain/ModelGuild;->id:J
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:pswitch_6
|
||
|
invoke-interface {p1}, Lcom/miguelgaeta/message_parser/MessageParser;->nextString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelGuild;->region:Ljava/lang/String;
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:pswitch_7
|
||
|
iget-wide v0, p0, Lcom/discord/models/domain/ModelGuild;->ownerId:J
|
||
|
|
||
|
invoke-interface {p1, v0, v1}, Lcom/miguelgaeta/message_parser/MessageParser;->nextLong(J)J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
iput-wide v0, p0, Lcom/discord/models/domain/ModelGuild;->ownerId:J
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:pswitch_8
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGuild;->icon:Ljava/lang/String;
|
||
|
|
||
|
invoke-interface {p1, v0}, Lcom/miguelgaeta/message_parser/MessageParser;->nextString(Ljava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelGuild;->icon:Ljava/lang/String;
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:pswitch_9
|
||
|
invoke-interface {p1}, Lcom/miguelgaeta/message_parser/MessageParser;->nextIntOrNull()Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelGuild;->verificationLevel:Ljava/lang/Integer;
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:pswitch_a
|
||
|
invoke-static {p1}, Lcom/discord/models/domain/ModelGuild$$Lambda$3;->lambdaFactory$(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/miguelgaeta/message_parser/MessageParser$ListItem;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {p1, v0}, Lcom/miguelgaeta/message_parser/MessageParser;->nextList(Lcom/miguelgaeta/message_parser/MessageParser$ListItem;)Ljava/util/List;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelGuild;->presences:Ljava/util/List;
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:pswitch_b
|
||
|
invoke-static {p1}, Lcom/discord/models/domain/ModelGuild$$Lambda$4;->lambdaFactory$(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/miguelgaeta/message_parser/MessageParser$ListItem;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {p1, v0}, Lcom/miguelgaeta/message_parser/MessageParser;->nextList(Lcom/miguelgaeta/message_parser/MessageParser$ListItem;)Ljava/util/List;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelGuild;->channels:Ljava/util/List;
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:pswitch_c
|
||
|
invoke-static {p1}, Lcom/discord/models/domain/ModelGuild$$Lambda$5;->lambdaFactory$(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/miguelgaeta/message_parser/MessageParser$ListItem;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {p1, v0}, Lcom/miguelgaeta/message_parser/MessageParser;->nextList(Lcom/miguelgaeta/message_parser/MessageParser$ListItem;)Ljava/util/List;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelGuild;->members:Ljava/util/List;
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:pswitch_d
|
||
|
invoke-static {p1}, Lcom/discord/models/domain/ModelGuild$$Lambda$6;->lambdaFactory$(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/miguelgaeta/message_parser/MessageParser$ListItem;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {p1, v0}, Lcom/miguelgaeta/message_parser/MessageParser;->nextList(Lcom/miguelgaeta/message_parser/MessageParser$ListItem;)Ljava/util/List;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelGuild;->voiceStates:Ljava/util/List;
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:pswitch_e
|
||
|
invoke-interface {p1}, Lcom/miguelgaeta/message_parser/MessageParser;->nextBoolean()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput-boolean v0, p0, Lcom/discord/models/domain/ModelGuild;->unavailable:Z
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:pswitch_f
|
||
|
invoke-interface {p1}, Lcom/miguelgaeta/message_parser/MessageParser;->nextInt()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, p0, Lcom/discord/models/domain/ModelGuild;->mfaLevel:I
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
nop
|
||
|
|
||
|
:sswitch_data_0
|
||
|
.sparse-switch
|
||
|
-0x4d727713 -> :sswitch_1
|
||
|
-0x37b7d90c -> :sswitch_6
|
||
|
-0x36f3fd28 -> :sswitch_a
|
||
|
-0x27aa27b0 -> :sswitch_e
|
||
|
-0x1e2c6ba0 -> :sswitch_9
|
||
|
0xd1b -> :sswitch_5
|
||
|
0x313c79 -> :sswitch_8
|
||
|
0x337a8b -> :sswitch_2
|
||
|
0x61fbb3b -> :sswitch_3
|
||
|
0x67a8ebd -> :sswitch_0
|
||
|
0xbb68daf -> :sswitch_d
|
||
|
0x3855966d -> :sswitch_f
|
||
|
0x388ec919 -> :sswitch_c
|
||
|
0x47f6cf32 -> :sswitch_4
|
||
|
0x556423d0 -> :sswitch_b
|
||
|
0x63219e27 -> :sswitch_7
|
||
|
.end sparse-switch
|
||
|
|
||
|
:pswitch_data_0
|
||
|
.packed-switch 0x0
|
||
|
:pswitch_0
|
||
|
:pswitch_1
|
||
|
:pswitch_2
|
||
|
:pswitch_3
|
||
|
:pswitch_4
|
||
|
:pswitch_5
|
||
|
:pswitch_6
|
||
|
:pswitch_7
|
||
|
:pswitch_8
|
||
|
:pswitch_9
|
||
|
:pswitch_a
|
||
|
:pswitch_b
|
||
|
:pswitch_c
|
||
|
:pswitch_d
|
||
|
:pswitch_e
|
||
|
:pswitch_f
|
||
|
.end packed-switch
|
||
|
.end method
|
||
|
|
||
|
.method protected canEqual(Ljava/lang/Object;)Z
|
||
|
.locals 1
|
||
|
.param p1, "other" # Ljava/lang/Object;
|
||
|
|
||
|
.prologue
|
||
|
instance-of v0, p1, Lcom/discord/models/domain/ModelGuild;
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public equals(Ljava/lang/Object;)Z
|
||
|
.locals 26
|
||
|
.param p1, "o" # Ljava/lang/Object;
|
||
|
|
||
|
.prologue
|
||
|
move-object/from16 v0, p1
|
||
|
|
||
|
move-object/from16 v1, p0
|
||
|
|
||
|
if-ne v0, v1, :cond_0
|
||
|
|
||
|
const/16 v21, 0x1
|
||
|
|
||
|
:goto_0
|
||
|
return v21
|
||
|
|
||
|
:cond_0
|
||
|
move-object/from16 v0, p1
|
||
|
|
||
|
instance-of v0, v0, Lcom/discord/models/domain/ModelGuild;
|
||
|
|
||
|
move/from16 v21, v0
|
||
|
|
||
|
if-nez v21, :cond_1
|
||
|
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
move-object/from16 v2, p1
|
||
|
|
||
|
check-cast v2, Lcom/discord/models/domain/ModelGuild;
|
||
|
|
||
|
.local v2, "other":Lcom/discord/models/domain/ModelGuild;
|
||
|
move-object/from16 v0, p0
|
||
|
|
||
|
invoke-virtual {v2, v0}, Lcom/discord/models/domain/ModelGuild;->canEqual(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
if-nez v21, :cond_2
|
||
|
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_2
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getRoles()Ljava/util/List;
|
||
|
|
||
|
move-result-object v19
|
||
|
|
||
|
.local v19, "this$roles":Ljava/util/List;
|
||
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->getRoles()Ljava/util/List;
|
||
|
|
||
|
move-result-object v10
|
||
|
|
||
|
.local v10, "other$roles":Ljava/util/List;
|
||
|
if-nez v19, :cond_4
|
||
|
|
||
|
if-eqz v10, :cond_5
|
||
|
|
||
|
:cond_3
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_4
|
||
|
move-object/from16 v0, v19
|
||
|
|
||
|
invoke-virtual {v0, v10}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
if-eqz v21, :cond_3
|
||
|
|
||
|
:cond_5
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getEmojis()Ljava/util/List;
|
||
|
|
||
|
move-result-object v13
|
||
|
|
||
|
.local v13, "this$emojis":Ljava/util/List;
|
||
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->getEmojis()Ljava/util/List;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
.local v4, "other$emojis":Ljava/util/List;
|
||
|
if-nez v13, :cond_7
|
||
|
|
||
|
if-eqz v4, :cond_8
|
||
|
|
||
|
:cond_6
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_7
|
||
|
invoke-virtual {v13, v4}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
if-eqz v21, :cond_6
|
||
|
|
||
|
:cond_8
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v16
|
||
|
|
||
|
.local v16, "this$name":Ljava/lang/String;
|
||
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
.local v7, "other$name":Ljava/lang/String;
|
||
|
if-nez v16, :cond_a
|
||
|
|
||
|
if-eqz v7, :cond_b
|
||
|
|
||
|
:cond_9
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_a
|
||
|
move-object/from16 v0, v16
|
||
|
|
||
|
invoke-virtual {v0, v7}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
if-eqz v21, :cond_9
|
||
|
|
||
|
:cond_b
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->isLarge()Z
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->isLarge()Z
|
||
|
|
||
|
move-result v22
|
||
|
|
||
|
move/from16 v0, v21
|
||
|
|
||
|
move/from16 v1, v22
|
||
|
|
||
|
if-eq v0, v1, :cond_c
|
||
|
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_c
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getDefaultMessageNotifications()I
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->getDefaultMessageNotifications()I
|
||
|
|
||
|
move-result v22
|
||
|
|
||
|
move/from16 v0, v21
|
||
|
|
||
|
move/from16 v1, v22
|
||
|
|
||
|
if-eq v0, v1, :cond_d
|
||
|
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_d
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
||
|
|
||
|
move-result-wide v22
|
||
|
|
||
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
||
|
|
||
|
move-result-wide v24
|
||
|
|
||
|
cmp-long v21, v22, v24
|
||
|
|
||
|
if-eqz v21, :cond_e
|
||
|
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_e
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getRegion()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v18
|
||
|
|
||
|
.local v18, "this$region":Ljava/lang/String;
|
||
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->getRegion()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v9
|
||
|
|
||
|
.local v9, "other$region":Ljava/lang/String;
|
||
|
if-nez v18, :cond_10
|
||
|
|
||
|
if-eqz v9, :cond_11
|
||
|
|
||
|
:cond_f
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_10
|
||
|
move-object/from16 v0, v18
|
||
|
|
||
|
invoke-virtual {v0, v9}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
if-eqz v21, :cond_f
|
||
|
|
||
|
:cond_11
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getOwnerId()J
|
||
|
|
||
|
move-result-wide v22
|
||
|
|
||
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->getOwnerId()J
|
||
|
|
||
|
move-result-wide v24
|
||
|
|
||
|
cmp-long v21, v22, v24
|
||
|
|
||
|
if-eqz v21, :cond_12
|
||
|
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_12
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getIcon()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v14
|
||
|
|
||
|
.local v14, "this$icon":Ljava/lang/String;
|
||
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->getIcon()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
.local v5, "other$icon":Ljava/lang/String;
|
||
|
if-nez v14, :cond_14
|
||
|
|
||
|
if-eqz v5, :cond_15
|
||
|
|
||
|
:cond_13
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_14
|
||
|
invoke-virtual {v14, v5}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
if-eqz v21, :cond_13
|
||
|
|
||
|
:cond_15
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getVerificationLevel()I
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->getVerificationLevel()I
|
||
|
|
||
|
move-result v22
|
||
|
|
||
|
move/from16 v0, v21
|
||
|
|
||
|
move/from16 v1, v22
|
||
|
|
||
|
if-eq v0, v1, :cond_16
|
||
|
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_16
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getPresences()Ljava/util/List;
|
||
|
|
||
|
move-result-object v17
|
||
|
|
||
|
.local v17, "this$presences":Ljava/util/List;
|
||
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->getPresences()Ljava/util/List;
|
||
|
|
||
|
move-result-object v8
|
||
|
|
||
|
.local v8, "other$presences":Ljava/util/List;
|
||
|
if-nez v17, :cond_18
|
||
|
|
||
|
if-eqz v8, :cond_19
|
||
|
|
||
|
:cond_17
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_18
|
||
|
move-object/from16 v0, v17
|
||
|
|
||
|
invoke-virtual {v0, v8}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
if-eqz v21, :cond_17
|
||
|
|
||
|
:cond_19
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getChannels()Ljava/util/List;
|
||
|
|
||
|
move-result-object v12
|
||
|
|
||
|
.local v12, "this$channels":Ljava/util/List;
|
||
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->getChannels()Ljava/util/List;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
.local v3, "other$channels":Ljava/util/List;
|
||
|
if-nez v12, :cond_1b
|
||
|
|
||
|
if-eqz v3, :cond_1c
|
||
|
|
||
|
:cond_1a
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_1b
|
||
|
invoke-virtual {v12, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
if-eqz v21, :cond_1a
|
||
|
|
||
|
:cond_1c
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getMembers()Ljava/util/List;
|
||
|
|
||
|
move-result-object v15
|
||
|
|
||
|
.local v15, "this$members":Ljava/util/List;
|
||
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->getMembers()Ljava/util/List;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
.local v6, "other$members":Ljava/util/List;
|
||
|
if-nez v15, :cond_1e
|
||
|
|
||
|
if-eqz v6, :cond_1f
|
||
|
|
||
|
:cond_1d
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_1e
|
||
|
invoke-virtual {v15, v6}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
if-eqz v21, :cond_1d
|
||
|
|
||
|
:cond_1f
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getVoiceStates()Ljava/util/List;
|
||
|
|
||
|
move-result-object v20
|
||
|
|
||
|
.local v20, "this$voiceStates":Ljava/util/List;
|
||
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->getVoiceStates()Ljava/util/List;
|
||
|
|
||
|
move-result-object v11
|
||
|
|
||
|
.local v11, "other$voiceStates":Ljava/util/List;
|
||
|
if-nez v20, :cond_21
|
||
|
|
||
|
if-eqz v11, :cond_22
|
||
|
|
||
|
:cond_20
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_21
|
||
|
move-object/from16 v0, v20
|
||
|
|
||
|
invoke-virtual {v0, v11}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
if-eqz v21, :cond_20
|
||
|
|
||
|
:cond_22
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->isUnavailable()Z
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->isUnavailable()Z
|
||
|
|
||
|
move-result v22
|
||
|
|
||
|
move/from16 v0, v21
|
||
|
|
||
|
move/from16 v1, v22
|
||
|
|
||
|
if-eq v0, v1, :cond_23
|
||
|
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_23
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getMfaLevel()I
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->getMfaLevel()I
|
||
|
|
||
|
move-result v22
|
||
|
|
||
|
move/from16 v0, v21
|
||
|
|
||
|
move/from16 v1, v22
|
||
|
|
||
|
if-eq v0, v1, :cond_24
|
||
|
|
||
|
const/16 v21, 0x0
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_24
|
||
|
const/16 v21, 0x1
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public getChannels()Ljava/util/List;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Ljava/util/List",
|
||
|
"<",
|
||
|
"Lcom/discord/models/domain/ModelChannel;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGuild;->channels:Ljava/util/List;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public getDefaultMessageNotifications()I
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGuild;->defaultMessageNotifications:Ljava/lang/Integer;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGuild;->defaultMessageNotifications:Ljava/lang/Integer;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
:goto_0
|
||
|
return v0
|
||
|
|
||
|
:cond_0
|
||
|
sget v0, Lcom/discord/models/domain/ModelUserGuildSettings;->FREQUENCY_ALL:I
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public getEmojis()Ljava/util/List;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Ljava/util/List",
|
||
|
"<",
|
||
|
"Lcom/discord/models/domain/ModelEmoji;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGuild;->emojis:Ljava/util/List;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public getIcon()Ljava/lang/String;
|
||
|
.locals 4
|
||
|
|
||
|
.prologue
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGuild;->icon:Ljava/lang/String;
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
return-object v0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-static {}, Lcom/discord/utilities/app/App;->isLocal()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v1, "https://discordapp.com/api//guilds/"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-wide v2, p0, Lcom/discord/models/domain/ModelGuild;->id:J
|
||
|
|
||
|
invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, "/icons/"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Lcom/discord/models/domain/ModelGuild;->icon:Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ".jpg"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v1, "https://cdn.discordapp.com/icons/"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-wide v2, p0, Lcom/discord/models/domain/ModelGuild;->id:J
|
||
|
|
||
|
invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, "/"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Lcom/discord/models/domain/ModelGuild;->icon:Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ".jpg"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public getId()J
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
iget-wide v0, p0, Lcom/discord/models/domain/ModelGuild;->id:J
|
||
|
|
||
|
return-wide v0
|
||
|
.end method
|
||
|
|
||
|
.method public getMembers()Ljava/util/List;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Ljava/util/List",
|
||
|
"<",
|
||
|
"Lcom/discord/models/domain/ModelGuildMember;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGuild;->members:Ljava/util/List;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public getMembersMap()Ljava/util/Map;
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Ljava/util/Map",
|
||
|
"<",
|
||
|
"Ljava/lang/Long;",
|
||
|
"Lcom/discord/models/domain/ModelGuildMember;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
iget-object v2, p0, Lcom/discord/models/domain/ModelGuild;->membersMap:Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
.local v1, "value":Ljava/lang/Object;
|
||
|
if-nez v1, :cond_1
|
||
|
|
||
|
iget-object v3, p0, Lcom/discord/models/domain/ModelGuild;->membersMap:Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
|
||
|
monitor-enter v3
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v2, p0, Lcom/discord/models/domain/ModelGuild;->membersMap:Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-nez v1, :cond_0
|
||
|
|
||
|
iget-object v2, p0, Lcom/discord/models/domain/ModelGuild;->members:Ljava/util/List;
|
||
|
|
||
|
invoke-direct {p0, v2}, Lcom/discord/models/domain/ModelGuild;->computeMembers(Ljava/util/List;)Ljava/util/Map;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.local v0, "actualValue":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/Long;Lcom/discord/models/domain/ModelGuildMember;>;"
|
||
|
if-nez v0, :cond_2
|
||
|
|
||
|
iget-object v1, p0, Lcom/discord/models/domain/ModelGuild;->membersMap:Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
|
||
|
:goto_0
|
||
|
iget-object v2, p0, Lcom/discord/models/domain/ModelGuild;->membersMap:Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
|
||
|
invoke-virtual {v2, v1}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
|
||
|
|
||
|
.end local v0 # "actualValue":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/Long;Lcom/discord/models/domain/ModelGuildMember;>;"
|
||
|
:cond_0
|
||
|
monitor-exit v3
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v2, p0, Lcom/discord/models/domain/ModelGuild;->membersMap:Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
|
||
|
if-ne v1, v2, :cond_3
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
:goto_1
|
||
|
check-cast v2, Ljava/util/Map;
|
||
|
|
||
|
check-cast v2, Ljava/util/Map;
|
||
|
|
||
|
return-object v2
|
||
|
|
||
|
.restart local v0 # "actualValue":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/Long;Lcom/discord/models/domain/ModelGuildMember;>;"
|
||
|
:cond_2
|
||
|
move-object v1, v0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.end local v0 # "actualValue":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/Long;Lcom/discord/models/domain/ModelGuildMember;>;"
|
||
|
:catchall_0
|
||
|
move-exception v2
|
||
|
|
||
|
:try_start_1
|
||
|
monitor-exit v3
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
throw v2
|
||
|
|
||
|
:cond_3
|
||
|
move-object v2, v1
|
||
|
|
||
|
goto :goto_1
|
||
|
.end method
|
||
|
|
||
|
.method public getMfaLevel()I
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
iget v0, p0, Lcom/discord/models/domain/ModelGuild;->mfaLevel:I
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public getName()Ljava/lang/String;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGuild;->name:Ljava/lang/String;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public getOwnerId()J
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
iget-wide v0, p0, Lcom/discord/models/domain/ModelGuild;->ownerId:J
|
||
|
|
||
|
return-wide v0
|
||
|
.end method
|
||
|
|
||
|
.method public getPresences()Ljava/util/List;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Ljava/util/List",
|
||
|
"<",
|
||
|
"Lcom/discord/models/domain/ModelPresence;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGuild;->presences:Ljava/util/List;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public getRegion()Ljava/lang/String;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGuild;->region:Ljava/lang/String;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public getRoles()Ljava/util/List;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Ljava/util/List",
|
||
|
"<",
|
||
|
"Lcom/discord/models/domain/ModelGuildRole;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGuild;->roles:Ljava/util/List;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public getShortName()Ljava/lang/String;
|
||
|
.locals 4
|
||
|
|
||
|
.prologue
|
||
|
iget-object v2, p0, Lcom/discord/models/domain/ModelGuild;->shortName:Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
.local v1, "value":Ljava/lang/Object;
|
||
|
if-nez v1, :cond_1
|
||
|
|
||
|
iget-object v3, p0, Lcom/discord/models/domain/ModelGuild;->shortName:Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
|
||
|
monitor-enter v3
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v2, p0, Lcom/discord/models/domain/ModelGuild;->shortName:Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-nez v1, :cond_0
|
||
|
|
||
|
iget-object v2, p0, Lcom/discord/models/domain/ModelGuild;->name:Ljava/lang/String;
|
||
|
|
||
|
invoke-direct {p0, v2}, Lcom/discord/models/domain/ModelGuild;->computeShortName(Ljava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.local v0, "actualValue":Ljava/lang/String;
|
||
|
if-nez v0, :cond_2
|
||
|
|
||
|
iget-object v1, p0, Lcom/discord/models/domain/ModelGuild;->shortName:Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
|
||
|
:goto_0
|
||
|
iget-object v2, p0, Lcom/discord/models/domain/ModelGuild;->shortName:Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
|
||
|
invoke-virtual {v2, v1}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
|
||
|
|
||
|
.end local v0 # "actualValue":Ljava/lang/String;
|
||
|
:cond_0
|
||
|
monitor-exit v3
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v2, p0, Lcom/discord/models/domain/ModelGuild;->shortName:Ljava/util/concurrent/atomic/AtomicReference;
|
||
|
|
||
|
if-ne v1, v2, :cond_3
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
:goto_1
|
||
|
check-cast v2, Ljava/lang/String;
|
||
|
|
||
|
check-cast v2, Ljava/lang/String;
|
||
|
|
||
|
return-object v2
|
||
|
|
||
|
.restart local v0 # "actualValue":Ljava/lang/String;
|
||
|
:cond_2
|
||
|
move-object v1, v0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.end local v0 # "actualValue":Ljava/lang/String;
|
||
|
:catchall_0
|
||
|
move-exception v2
|
||
|
|
||
|
:try_start_1
|
||
|
monitor-exit v3
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
throw v2
|
||
|
|
||
|
:cond_3
|
||
|
move-object v2, v1
|
||
|
|
||
|
goto :goto_1
|
||
|
.end method
|
||
|
|
||
|
.method public getVerificationLevel()I
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGuild;->verificationLevel:Ljava/lang/Integer;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGuild;->verificationLevel:Ljava/lang/Integer;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
:goto_0
|
||
|
return v0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public getVoiceStates()Ljava/util/List;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Ljava/util/List",
|
||
|
"<",
|
||
|
"Lcom/discord/models/domain/ModelVoice$State;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGuild;->voiceStates:Ljava/util/List;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public hashCode()I
|
||
|
.locals 20
|
||
|
|
||
|
.prologue
|
||
|
const/16 v15, 0x3b
|
||
|
|
||
|
.local v15, "PRIME":I
|
||
|
const/16 v16, 0x1
|
||
|
|
||
|
.local v16, "result":I
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getRoles()Ljava/util/List;
|
||
|
|
||
|
move-result-object v13
|
||
|
|
||
|
.local v13, "$roles":Ljava/util/List;
|
||
|
if-nez v13, :cond_0
|
||
|
|
||
|
const/16 v17, 0x2b
|
||
|
|
||
|
:goto_0
|
||
|
add-int/lit8 v16, v17, 0x3b
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getEmojis()Ljava/util/List;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
.local v3, "$emojis":Ljava/util/List;
|
||
|
mul-int/lit8 v18, v16, 0x3b
|
||
|
|
||
|
if-nez v3, :cond_1
|
||
|
|
||
|
const/16 v17, 0x2b
|
||
|
|
||
|
:goto_1
|
||
|
add-int v16, v18, v17
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v8
|
||
|
|
||
|
.local v8, "$name":Ljava/lang/String;
|
||
|
mul-int/lit8 v18, v16, 0x3b
|
||
|
|
||
|
if-nez v8, :cond_2
|
||
|
|
||
|
const/16 v17, 0x2b
|
||
|
|
||
|
:goto_2
|
||
|
add-int v16, v18, v17
|
||
|
|
||
|
mul-int/lit8 v18, v16, 0x3b
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->isLarge()Z
|
||
|
|
||
|
move-result v17
|
||
|
|
||
|
if-eqz v17, :cond_3
|
||
|
|
||
|
const/16 v17, 0x4f
|
||
|
|
||
|
:goto_3
|
||
|
add-int v16, v18, v17
|
||
|
|
||
|
mul-int/lit8 v17, v16, 0x3b
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getDefaultMessageNotifications()I
|
||
|
|
||
|
move-result v18
|
||
|
|
||
|
add-int v16, v17, v18
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
||
|
|
||
|
move-result-wide v6
|
||
|
|
||
|
.local v6, "$id":J
|
||
|
mul-int/lit8 v17, v16, 0x3b
|
||
|
|
||
|
const/16 v18, 0x20
|
||
|
|
||
|
ushr-long v18, v6, v18
|
||
|
|
||
|
xor-long v18, v18, v6
|
||
|
|
||
|
move-wide/from16 v0, v18
|
||
|
|
||
|
long-to-int v0, v0
|
||
|
|
||
|
move/from16 v18, v0
|
||
|
|
||
|
add-int v16, v17, v18
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getRegion()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v12
|
||
|
|
||
|
.local v12, "$region":Ljava/lang/String;
|
||
|
mul-int/lit8 v18, v16, 0x3b
|
||
|
|
||
|
if-nez v12, :cond_4
|
||
|
|
||
|
const/16 v17, 0x2b
|
||
|
|
||
|
:goto_4
|
||
|
add-int v16, v18, v17
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getOwnerId()J
|
||
|
|
||
|
move-result-wide v10
|
||
|
|
||
|
.local v10, "$ownerId":J
|
||
|
mul-int/lit8 v17, v16, 0x3b
|
||
|
|
||
|
const/16 v18, 0x20
|
||
|
|
||
|
ushr-long v18, v10, v18
|
||
|
|
||
|
xor-long v18, v18, v10
|
||
|
|
||
|
move-wide/from16 v0, v18
|
||
|
|
||
|
long-to-int v0, v0
|
||
|
|
||
|
move/from16 v18, v0
|
||
|
|
||
|
add-int v16, v17, v18
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getIcon()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
.local v4, "$icon":Ljava/lang/String;
|
||
|
mul-int/lit8 v18, v16, 0x3b
|
||
|
|
||
|
if-nez v4, :cond_5
|
||
|
|
||
|
const/16 v17, 0x2b
|
||
|
|
||
|
:goto_5
|
||
|
add-int v16, v18, v17
|
||
|
|
||
|
mul-int/lit8 v17, v16, 0x3b
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getVerificationLevel()I
|
||
|
|
||
|
move-result v18
|
||
|
|
||
|
add-int v16, v17, v18
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getPresences()Ljava/util/List;
|
||
|
|
||
|
move-result-object v9
|
||
|
|
||
|
.local v9, "$presences":Ljava/util/List;
|
||
|
mul-int/lit8 v18, v16, 0x3b
|
||
|
|
||
|
if-nez v9, :cond_6
|
||
|
|
||
|
const/16 v17, 0x2b
|
||
|
|
||
|
:goto_6
|
||
|
add-int v16, v18, v17
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getChannels()Ljava/util/List;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
.local v2, "$channels":Ljava/util/List;
|
||
|
mul-int/lit8 v18, v16, 0x3b
|
||
|
|
||
|
if-nez v2, :cond_7
|
||
|
|
||
|
const/16 v17, 0x2b
|
||
|
|
||
|
:goto_7
|
||
|
add-int v16, v18, v17
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getMembers()Ljava/util/List;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
.local v5, "$members":Ljava/util/List;
|
||
|
mul-int/lit8 v18, v16, 0x3b
|
||
|
|
||
|
if-nez v5, :cond_8
|
||
|
|
||
|
const/16 v17, 0x2b
|
||
|
|
||
|
:goto_8
|
||
|
add-int v16, v18, v17
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getVoiceStates()Ljava/util/List;
|
||
|
|
||
|
move-result-object v14
|
||
|
|
||
|
.local v14, "$voiceStates":Ljava/util/List;
|
||
|
mul-int/lit8 v18, v16, 0x3b
|
||
|
|
||
|
if-nez v14, :cond_9
|
||
|
|
||
|
const/16 v17, 0x2b
|
||
|
|
||
|
:goto_9
|
||
|
add-int v16, v18, v17
|
||
|
|
||
|
mul-int/lit8 v18, v16, 0x3b
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->isUnavailable()Z
|
||
|
|
||
|
move-result v17
|
||
|
|
||
|
if-eqz v17, :cond_a
|
||
|
|
||
|
const/16 v17, 0x4f
|
||
|
|
||
|
:goto_a
|
||
|
add-int v16, v18, v17
|
||
|
|
||
|
mul-int/lit8 v17, v16, 0x3b
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getMfaLevel()I
|
||
|
|
||
|
move-result v18
|
||
|
|
||
|
add-int v16, v17, v18
|
||
|
|
||
|
return v16
|
||
|
|
||
|
.end local v2 # "$channels":Ljava/util/List;
|
||
|
.end local v3 # "$emojis":Ljava/util/List;
|
||
|
.end local v4 # "$icon":Ljava/lang/String;
|
||
|
.end local v5 # "$members":Ljava/util/List;
|
||
|
.end local v6 # "$id":J
|
||
|
.end local v8 # "$name":Ljava/lang/String;
|
||
|
.end local v9 # "$presences":Ljava/util/List;
|
||
|
.end local v10 # "$ownerId":J
|
||
|
.end local v12 # "$region":Ljava/lang/String;
|
||
|
.end local v14 # "$voiceStates":Ljava/util/List;
|
||
|
:cond_0
|
||
|
invoke-virtual {v13}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v17
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
.restart local v3 # "$emojis":Ljava/util/List;
|
||
|
:cond_1
|
||
|
invoke-virtual {v3}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v17
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
.restart local v8 # "$name":Ljava/lang/String;
|
||
|
:cond_2
|
||
|
invoke-virtual {v8}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v17
|
||
|
|
||
|
goto/16 :goto_2
|
||
|
|
||
|
:cond_3
|
||
|
const/16 v17, 0x61
|
||
|
|
||
|
goto/16 :goto_3
|
||
|
|
||
|
.restart local v6 # "$id":J
|
||
|
.restart local v12 # "$region":Ljava/lang/String;
|
||
|
:cond_4
|
||
|
invoke-virtual {v12}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v17
|
||
|
|
||
|
goto/16 :goto_4
|
||
|
|
||
|
.restart local v4 # "$icon":Ljava/lang/String;
|
||
|
.restart local v10 # "$ownerId":J
|
||
|
:cond_5
|
||
|
invoke-virtual {v4}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v17
|
||
|
|
||
|
goto :goto_5
|
||
|
|
||
|
.restart local v9 # "$presences":Ljava/util/List;
|
||
|
:cond_6
|
||
|
invoke-virtual {v9}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v17
|
||
|
|
||
|
goto :goto_6
|
||
|
|
||
|
.restart local v2 # "$channels":Ljava/util/List;
|
||
|
:cond_7
|
||
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v17
|
||
|
|
||
|
goto :goto_7
|
||
|
|
||
|
.restart local v5 # "$members":Ljava/util/List;
|
||
|
:cond_8
|
||
|
invoke-virtual {v5}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v17
|
||
|
|
||
|
goto :goto_8
|
||
|
|
||
|
.restart local v14 # "$voiceStates":Ljava/util/List;
|
||
|
:cond_9
|
||
|
invoke-virtual {v14}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v17
|
||
|
|
||
|
goto :goto_9
|
||
|
|
||
|
:cond_a
|
||
|
const/16 v17, 0x61
|
||
|
|
||
|
goto :goto_a
|
||
|
.end method
|
||
|
|
||
|
.method public isLarge()Z
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
iget-boolean v0, p0, Lcom/discord/models/domain/ModelGuild;->large:Z
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public isOwner(J)Z
|
||
|
.locals 3
|
||
|
.param p1, "userId" # J
|
||
|
|
||
|
.prologue
|
||
|
iget-wide v0, p0, Lcom/discord/models/domain/ModelGuild;->ownerId:J
|
||
|
|
||
|
cmp-long v0, v0, p1
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
:goto_0
|
||
|
return v0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public isUnavailable()Z
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
iget-boolean v0, p0, Lcom/discord/models/domain/ModelGuild;->unavailable:Z
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public toString()Ljava/lang/String;
|
||
|
.locals 4
|
||
|
|
||
|
.prologue
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v1, "ModelGuild(roles="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getRoles()Ljava/util/List;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", emojis="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getEmojis()Ljava/util/List;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", name="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", large="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->isLarge()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", defaultMessageNotifications="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getDefaultMessageNotifications()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", id="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", region="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getRegion()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", ownerId="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getOwnerId()J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", icon="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getIcon()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", verificationLevel="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getVerificationLevel()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", presences="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getPresences()Ljava/util/List;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", channels="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getChannels()Ljava/util/List;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", members="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getMembers()Ljava/util/List;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", voiceStates="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getVoiceStates()Ljava/util/List;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", unavailable="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->isUnavailable()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", mfaLevel="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getMfaLevel()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", membersMap="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getMembersMap()Ljava/util/Map;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", shortName="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getShortName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ")"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|