432 lines
10 KiB
Smali
432 lines
10 KiB
Smali
.class public Lcom/discord/models/domain/ModelGuildMember$Chunk;
|
|
.super Lcom/discord/models/domain/Model;
|
|
.source "ModelGuildMember.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/models/domain/ModelGuildMember;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "Chunk"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private guildId:J
|
|
|
|
.field private members:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List",
|
|
"<",
|
|
"Lcom/discord/models/domain/ModelGuildMember;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.prologue
|
|
invoke-direct {p0}, Lcom/discord/models/domain/Model;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(JLjava/util/List;)V
|
|
.locals 1
|
|
.param p1, "guildId" # J
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(J",
|
|
"Ljava/util/List",
|
|
"<",
|
|
"Lcom/discord/models/domain/ModelGuildMember;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
.local p3, "members":Ljava/util/List;, "Ljava/util/List<Lcom/discord/models/domain/ModelGuildMember;>;"
|
|
invoke-direct {p0}, Lcom/discord/models/domain/Model;-><init>()V
|
|
|
|
iput-wide p1, p0, Lcom/discord/models/domain/ModelGuildMember$Chunk;->guildId:J
|
|
|
|
iput-object p3, p0, Lcom/discord/models/domain/ModelGuildMember$Chunk;->members:Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic access$lambda$0(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelGuildMember;
|
|
.locals 1
|
|
|
|
invoke-static {p0}, Lcom/discord/models/domain/ModelGuildMember$Chunk;->lambda$assignField$64(Lcom/miguelgaeta/message_parser/MessageParser;)Lcom/discord/models/domain/ModelGuildMember;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private static synthetic lambda$assignField$64(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
|
|
|
|
|
|
# virtual methods
|
|
.method protected assignField(Lcom/miguelgaeta/message_parser/MessageParser;)V
|
|
.locals 3
|
|
.param p1, "reader" # Lcom/miguelgaeta/message_parser/MessageParser;
|
|
.annotation build Llombok/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
if-nez p1, :cond_0
|
|
|
|
new-instance v0, Ljava/lang/NullPointerException;
|
|
|
|
const-string v1, "reader"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_0
|
|
invoke-interface {p1}, Lcom/miguelgaeta/message_parser/MessageParser;->nextName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v0, -0x1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
sparse-switch v2, :sswitch_data_0
|
|
|
|
:cond_1
|
|
: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 v2, "guild_id"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_1
|
|
const-string v2, "members"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_0
|
|
const-wide/16 v0, 0x0
|
|
|
|
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/ModelGuildMember$Chunk;->guildId:J
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_1
|
|
invoke-static {p1}, Lcom/discord/models/domain/ModelGuildMember$Chunk$$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/ModelGuildMember$Chunk;->members:Ljava/util/List;
|
|
|
|
goto :goto_1
|
|
|
|
nop
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x4de03319 -> :sswitch_0
|
|
0x388ec919 -> :sswitch_1
|
|
.end sparse-switch
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_0
|
|
:pswitch_1
|
|
.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/ModelGuildMember$Chunk;
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 10
|
|
.param p1, "o" # Ljava/lang/Object;
|
|
|
|
.prologue
|
|
const/4 v3, 0x1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-ne p1, p0, :cond_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
return v3
|
|
|
|
:cond_1
|
|
instance-of v5, p1, Lcom/discord/models/domain/ModelGuildMember$Chunk;
|
|
|
|
if-nez v5, :cond_2
|
|
|
|
move v3, v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Lcom/discord/models/domain/ModelGuildMember$Chunk;
|
|
|
|
.local v0, "other":Lcom/discord/models/domain/ModelGuildMember$Chunk;
|
|
invoke-virtual {v0, p0}, Lcom/discord/models/domain/ModelGuildMember$Chunk;->canEqual(Ljava/lang/Object;)Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_3
|
|
|
|
move v3, v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuildMember$Chunk;->getGuildId()J
|
|
|
|
move-result-wide v6
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelGuildMember$Chunk;->getGuildId()J
|
|
|
|
move-result-wide v8
|
|
|
|
cmp-long v5, v6, v8
|
|
|
|
if-eqz v5, :cond_4
|
|
|
|
move v3, v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuildMember$Chunk;->getMembers()Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
.local v2, "this$members":Ljava/util/List;
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelGuildMember$Chunk;->getMembers()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
.local v1, "other$members":Ljava/util/List;
|
|
if-nez v2, :cond_5
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
:goto_1
|
|
move v3, v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
invoke-virtual {v2, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_0
|
|
|
|
goto :goto_1
|
|
.end method
|
|
|
|
.method public getGuildId()J
|
|
.locals 2
|
|
|
|
.prologue
|
|
iget-wide v0, p0, Lcom/discord/models/domain/ModelGuildMember$Chunk;->guildId: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/ModelGuildMember$Chunk;->members:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 8
|
|
|
|
.prologue
|
|
const/16 v3, 0x3b
|
|
|
|
.local v3, "PRIME":I
|
|
const/4 v4, 0x1
|
|
|
|
.local v4, "result":I
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuildMember$Chunk;->getGuildId()J
|
|
|
|
move-result-wide v0
|
|
|
|
.local v0, "$guildId":J
|
|
const/16 v5, 0x20
|
|
|
|
ushr-long v6, v0, v5
|
|
|
|
xor-long/2addr v6, v0
|
|
|
|
long-to-int v5, v6
|
|
|
|
add-int/lit8 v4, v5, 0x3b
|
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuildMember$Chunk;->getMembers()Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
.local v2, "$members":Ljava/util/List;
|
|
mul-int/lit8 v6, v4, 0x3b
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
const/16 v5, 0x2b
|
|
|
|
:goto_0
|
|
add-int v4, v6, v5
|
|
|
|
return v4
|
|
|
|
:cond_0
|
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v5
|
|
|
|
goto :goto_0
|
|
.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, "ModelGuildMember.Chunk(guildId="
|
|
|
|
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/ModelGuildMember$Chunk;->getGuildId()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, ", 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/ModelGuildMember$Chunk;->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, ")"
|
|
|
|
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
|