644 lines
16 KiB
Smali
644 lines
16 KiB
Smali
|
.class public Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "WidgetServerSettingsRolesList.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/discord/widgets/servers/WidgetServerSettingsRolesList;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x9
|
||
|
name = "Model"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public final canManageRoles:Z
|
||
|
|
||
|
.field public final elevated:Z
|
||
|
|
||
|
.field public final guildId:J
|
||
|
|
||
|
.field public final guildName:Ljava/lang/String;
|
||
|
|
||
|
.field public final roleItems:Ljava/util/List;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/List<",
|
||
|
"Lcom/discord/widgets/servers/WidgetServerSettingsRolesListAdapter$RoleItem;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(JLjava/lang/String;ZZLjava/util/List;)V
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(J",
|
||
|
"Ljava/lang/String;",
|
||
|
"ZZ",
|
||
|
"Ljava/util/List<",
|
||
|
"Lcom/discord/widgets/servers/WidgetServerSettingsRolesListAdapter$RoleItem;",
|
||
|
">;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput-wide p1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->guildId:J
|
||
|
|
||
|
iput-object p3, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->guildName:Ljava/lang/String;
|
||
|
|
||
|
iput-boolean p4, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->canManageRoles:Z
|
||
|
|
||
|
iput-boolean p5, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->elevated:Z
|
||
|
|
||
|
iput-object p6, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->roleItems:Ljava/util/List;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic a(Lcom/discord/models/domain/ModelUser;Ljava/util/Map;)Lcom/discord/models/domain/ModelGuildMember$Computed;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-static {p0, p1}, Lf/e/b/a/a;->a(Lcom/discord/models/domain/ModelUser;Ljava/util/Map;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast p0, Lcom/discord/models/domain/ModelGuildMember$Computed;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic a(JLcom/discord/models/domain/ModelUser;)Lrx/Observable;
|
||
|
.locals 4
|
||
|
|
||
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p0, p1}, Lcom/discord/stores/StoreGuilds;->observeGuild(J)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelUser;->getId()J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {v2}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v1, p0, p1, v2}, Lcom/discord/stores/StoreGuilds;->observeComputed(JLjava/util/Collection;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
new-instance v2, Lf/a/m/e/n2;
|
||
|
|
||
|
invoke-direct {v2, p2}, Lf/a/m/e/n2;-><init>(Lcom/discord/models/domain/ModelUser;)V
|
||
|
|
||
|
invoke-virtual {v1, v2}, Lrx/Observable;->f(Lg0/l/i;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getPermissions()Lcom/discord/stores/StorePermissions;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2, p0, p1}, Lcom/discord/stores/StorePermissions;->getForGuild(J)Lrx/Observable;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {v3, p0, p1}, Lcom/discord/stores/StoreGuilds;->observeRoles(J)Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
new-instance p1, Lf/a/m/e/p2;
|
||
|
|
||
|
invoke-direct {p1, p2}, Lf/a/m/e/p2;-><init>(Lcom/discord/models/domain/ModelUser;)V
|
||
|
|
||
|
invoke-static {v0, v1, v2, p0, p1}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func4;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic access$000(J)Lrx/Observable;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-static {p0, p1}, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->get(J)Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static create(Lcom/discord/models/domain/ModelGuild;Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelGuildMember$Computed;Ljava/lang/Integer;Ljava/util/Map;)Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;
|
||
|
.locals 17
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lcom/discord/models/domain/ModelGuild;",
|
||
|
"Lcom/discord/models/domain/ModelUser;",
|
||
|
"Lcom/discord/models/domain/ModelGuildMember$Computed;",
|
||
|
"Ljava/lang/Integer;",
|
||
|
"Ljava/util/Map<",
|
||
|
"Ljava/lang/Long;",
|
||
|
"Lcom/discord/models/domain/ModelGuildRole;",
|
||
|
">;)",
|
||
|
"Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
move-object/from16 v0, p2
|
||
|
|
||
|
move-object/from16 v1, p3
|
||
|
|
||
|
move-object/from16 v2, p4
|
||
|
|
||
|
if-eqz p0, :cond_5
|
||
|
|
||
|
if-eqz p1, :cond_5
|
||
|
|
||
|
if-eqz v0, :cond_5
|
||
|
|
||
|
if-eqz v1, :cond_5
|
||
|
|
||
|
if-nez v2, :cond_0
|
||
|
|
||
|
goto/16 :goto_4
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
||
|
|
||
|
move-result-wide v3
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
const/high16 v6, 0x10000000
|
||
|
|
||
|
invoke-static {v6, v1}, Lcom/discord/utilities/permissions/PermissionUtils;->can(ILjava/lang/Integer;)Z
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUser;->isMfaEnabled()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getMfaLevel()I
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
invoke-static {v1, v7}, Lcom/discord/utilities/permissions/PermissionUtils;->isElevated(ZI)Z
|
||
|
|
||
|
move-result v13
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getOwnerId()J
|
||
|
|
||
|
move-result-wide v7
|
||
|
|
||
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUser;->getId()J
|
||
|
|
||
|
move-result-wide v9
|
||
|
|
||
|
const/4 v14, 0x0
|
||
|
|
||
|
cmp-long v11, v7, v9
|
||
|
|
||
|
if-nez v11, :cond_1
|
||
|
|
||
|
const/4 v15, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v15, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
invoke-static {v2, v0}, Lcom/discord/models/domain/ModelGuildRole;->getHighestRole(Ljava/util/Map;Lcom/discord/models/domain/ModelGuildMember$Computed;)Lcom/discord/models/domain/ModelGuildRole;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v7, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-interface/range {p4 .. p4}, Ljava/util/Map;->values()Ljava/util/Collection;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-direct {v7, v2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
||
|
|
||
|
invoke-static {v7}, Ljava/util/Collections;->sort(Ljava/util/List;)V
|
||
|
|
||
|
new-instance v2, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-interface {v7}, Ljava/util/List;->size()I
|
||
|
|
||
|
move-result v8
|
||
|
|
||
|
invoke-direct {v2, v8}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
invoke-interface {v7}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v16
|
||
|
|
||
|
:goto_1
|
||
|
invoke-interface/range {v16 .. v16}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
if-eqz v7, :cond_4
|
||
|
|
||
|
invoke-interface/range {v16 .. v16}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
move-object v8, v7
|
||
|
|
||
|
check-cast v8, Lcom/discord/models/domain/ModelGuildRole;
|
||
|
|
||
|
new-instance v12, Lcom/discord/widgets/servers/WidgetServerSettingsRolesListAdapter$RoleItem;
|
||
|
|
||
|
invoke-virtual {v8}, Lcom/discord/models/domain/ModelGuildRole;->getId()J
|
||
|
|
||
|
move-result-wide v9
|
||
|
|
||
|
cmp-long v7, v3, v9
|
||
|
|
||
|
if-nez v7, :cond_2
|
||
|
|
||
|
const/4 v9, 0x1
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_2
|
||
|
const/4 v9, 0x0
|
||
|
|
||
|
:goto_2
|
||
|
if-nez v15, :cond_3
|
||
|
|
||
|
invoke-static {v0, v8}, Lcom/discord/models/domain/ModelGuildRole;->rankIsHigher(Lcom/discord/models/domain/ModelGuildRole;Lcom/discord/models/domain/ModelGuildRole;)Z
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
if-nez v7, :cond_3
|
||
|
|
||
|
const/4 v10, 0x1
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_3
|
||
|
const/4 v10, 0x0
|
||
|
|
||
|
:goto_3
|
||
|
move-object v7, v12
|
||
|
|
||
|
move v11, v6
|
||
|
|
||
|
move-object v1, v12
|
||
|
|
||
|
move v12, v13
|
||
|
|
||
|
invoke-direct/range {v7 .. v12}, Lcom/discord/widgets/servers/WidgetServerSettingsRolesListAdapter$RoleItem;-><init>(Lcom/discord/models/domain/ModelGuildRole;ZZZZ)V
|
||
|
|
||
|
invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_4
|
||
|
new-instance v7, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;
|
||
|
|
||
|
move-object v0, v7
|
||
|
|
||
|
move-object v8, v2
|
||
|
|
||
|
move-wide v1, v3
|
||
|
|
||
|
move-object v3, v5
|
||
|
|
||
|
move v4, v6
|
||
|
|
||
|
move v5, v13
|
||
|
|
||
|
move-object v6, v8
|
||
|
|
||
|
invoke-direct/range {v0 .. v6}, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;-><init>(JLjava/lang/String;ZZLjava/util/List;)V
|
||
|
|
||
|
return-object v7
|
||
|
|
||
|
:cond_5
|
||
|
:goto_4
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static get(J)Lrx/Observable;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(J)",
|
||
|
"Lrx/Observable<",
|
||
|
"Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getUsers()Lcom/discord/stores/StoreUser;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/stores/StoreUser;->observeMe()Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v1, Lf/a/m/e/o2;
|
||
|
|
||
|
invoke-direct {v1, p0, p1}, Lf/a/m/e/o2;-><init>(J)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lrx/Observable;->k(Lg0/l/i;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Lrx/Observable;->a()Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public canEqual(Ljava/lang/Object;)Z
|
||
|
.locals 0
|
||
|
|
||
|
instance-of p1, p1, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;
|
||
|
|
||
|
return p1
|
||
|
.end method
|
||
|
|
||
|
.method public equals(Ljava/lang/Object;)Z
|
||
|
.locals 7
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
if-ne p1, p0, :cond_0
|
||
|
|
||
|
return v0
|
||
|
|
||
|
:cond_0
|
||
|
instance-of v1, p1, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
if-nez v1, :cond_1
|
||
|
|
||
|
return v2
|
||
|
|
||
|
:cond_1
|
||
|
check-cast p1, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;
|
||
|
|
||
|
invoke-virtual {p1, p0}, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->canEqual(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-nez v1, :cond_2
|
||
|
|
||
|
return v2
|
||
|
|
||
|
:cond_2
|
||
|
iget-wide v3, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->guildId:J
|
||
|
|
||
|
iget-wide v5, p1, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->guildId:J
|
||
|
|
||
|
cmp-long v1, v3, v5
|
||
|
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
return v2
|
||
|
|
||
|
:cond_3
|
||
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->guildName:Ljava/lang/String;
|
||
|
|
||
|
iget-object v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->guildName:Ljava/lang/String;
|
||
|
|
||
|
if-nez v1, :cond_4
|
||
|
|
||
|
if-eqz v3, :cond_5
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_4
|
||
|
invoke-virtual {v1, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-nez v1, :cond_5
|
||
|
|
||
|
:goto_0
|
||
|
return v2
|
||
|
|
||
|
:cond_5
|
||
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->canManageRoles:Z
|
||
|
|
||
|
iget-boolean v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->canManageRoles:Z
|
||
|
|
||
|
if-eq v1, v3, :cond_6
|
||
|
|
||
|
return v2
|
||
|
|
||
|
:cond_6
|
||
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->elevated:Z
|
||
|
|
||
|
iget-boolean v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->elevated:Z
|
||
|
|
||
|
if-eq v1, v3, :cond_7
|
||
|
|
||
|
return v2
|
||
|
|
||
|
:cond_7
|
||
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->roleItems:Ljava/util/List;
|
||
|
|
||
|
iget-object p1, p1, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->roleItems:Ljava/util/List;
|
||
|
|
||
|
if-nez v1, :cond_8
|
||
|
|
||
|
if-eqz p1, :cond_9
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_8
|
||
|
invoke-virtual {v1, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-nez p1, :cond_9
|
||
|
|
||
|
:goto_1
|
||
|
return v2
|
||
|
|
||
|
:cond_9
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public hashCode()I
|
||
|
.locals 6
|
||
|
|
||
|
iget-wide v0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->guildId:J
|
||
|
|
||
|
const/16 v2, 0x20
|
||
|
|
||
|
ushr-long v2, v0, v2
|
||
|
|
||
|
xor-long/2addr v0, v2
|
||
|
|
||
|
long-to-int v1, v0
|
||
|
|
||
|
const/16 v0, 0x3b
|
||
|
|
||
|
add-int/2addr v1, v0
|
||
|
|
||
|
iget-object v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->guildName:Ljava/lang/String;
|
||
|
|
||
|
mul-int/lit8 v1, v1, 0x3b
|
||
|
|
||
|
const/16 v3, 0x2b
|
||
|
|
||
|
if-nez v2, :cond_0
|
||
|
|
||
|
const/16 v2, 0x2b
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
:goto_0
|
||
|
add-int/2addr v1, v2
|
||
|
|
||
|
mul-int/lit8 v1, v1, 0x3b
|
||
|
|
||
|
iget-boolean v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->canManageRoles:Z
|
||
|
|
||
|
const/16 v4, 0x4f
|
||
|
|
||
|
const/16 v5, 0x61
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
const/16 v2, 0x4f
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
const/16 v2, 0x61
|
||
|
|
||
|
:goto_1
|
||
|
add-int/2addr v1, v2
|
||
|
|
||
|
mul-int/lit8 v1, v1, 0x3b
|
||
|
|
||
|
iget-boolean v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->elevated:Z
|
||
|
|
||
|
if-eqz v2, :cond_2
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_2
|
||
|
const/16 v4, 0x61
|
||
|
|
||
|
:goto_2
|
||
|
add-int/2addr v1, v4
|
||
|
|
||
|
iget-object v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->roleItems:Ljava/util/List;
|
||
|
|
||
|
mul-int/lit8 v1, v1, 0x3b
|
||
|
|
||
|
if-nez v2, :cond_3
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_3
|
||
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
:goto_3
|
||
|
add-int/2addr v1, v3
|
||
|
|
||
|
return v1
|
||
|
.end method
|
||
|
|
||
|
.method public toString()Ljava/lang/String;
|
||
|
.locals 3
|
||
|
|
||
|
const-string v0, "WidgetServerSettingsRolesList.Model(guildId="
|
||
|
|
||
|
invoke-static {v0}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-wide v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->guildId:J
|
||
|
|
||
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, ", guildName="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->guildName:Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, ", canManageRoles="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->canManageRoles:Z
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, ", elevated="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->elevated:Z
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, ", roleItems="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsRolesList$Model;->roleItems:Ljava/util/List;
|
||
|
|
||
|
const-string v2, ")"
|
||
|
|
||
|
invoke-static {v0, v1, v2}, Lf/e/b/a/a;->a(Ljava/lang/StringBuilder;Ljava/util/List;Ljava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|