2020-05-17 12:40:10 +00:00
|
|
|
.class public Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "WidgetServerSettingsMembers.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/widgets/servers/WidgetServerSettingsMembers;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x9
|
|
|
|
name = "Model"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model$MemberItem;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final sortingFunction:Ljava/util/Comparator;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Comparator<",
|
|
|
|
"Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model$MemberItem;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final canKick:Z
|
|
|
|
|
|
|
|
.field public final canManageMembers:Z
|
|
|
|
|
|
|
|
.field public final guild:Lcom/discord/models/domain/ModelGuild;
|
|
|
|
|
|
|
|
.field public final meUser:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
.field public final memberItems:Ljava/util/List;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model$MemberItem;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public final myHighestRole:Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
.field public final roles:Ljava/util/Map;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelGuildRole;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 1
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
sget-object v0, Lf/a/o/e/y1;->d:Lf/a/o/e/y1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->sortingFunction:Ljava/util/Comparator;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Lcom/discord/models/domain/ModelGuild;Ljava/util/Map;Ljava/util/List;Lcom/discord/models/domain/ModelGuildRole;Lcom/discord/models/domain/ModelUser;ZZ)V
|
|
|
|
.locals 0
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lcom/discord/models/domain/ModelGuild;",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelGuildRole;",
|
|
|
|
">;",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model$MemberItem;",
|
|
|
|
">;",
|
|
|
|
"Lcom/discord/models/domain/ModelGuildRole;",
|
|
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
|
|
"ZZ)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->guild:Lcom/discord/models/domain/ModelGuild;
|
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->roles:Ljava/util/Map;
|
|
|
|
|
|
|
|
iput-object p3, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->memberItems:Ljava/util/List;
|
|
|
|
|
|
|
|
iput-object p4, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->myHighestRole:Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
iput-object p5, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->meUser:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
iput-boolean p6, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->canKick:Z
|
|
|
|
|
|
|
|
iput-boolean p7, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->canManageMembers:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic a(JLrx/Observable;Lrx/Observable;Ljava/util/Map;)Lrx/Observable;
|
|
|
|
.locals 9
|
|
|
|
|
|
|
|
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 v1
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getPermissions()Lcom/discord/stores/StorePermissions;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0, p1}, Lcom/discord/stores/StorePermissions;->getForGuild(J)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
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 v3
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getUsers()Lcom/discord/stores/StoreUser;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-interface {p4}, Ljava/util/Map;->keySet()Ljava/util/Set;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v0, v4}, Lcom/discord/stores/StoreUser;->observeUsers(Ljava/util/Collection;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0, p1}, Lcom/discord/stores/StoreGuilds;->observeRoles(J)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
sget-object p0, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
|
|
|
|
const-wide/16 v6, 0x12c
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p2, v6, v7, p0}, Lrx/Observable;->o(JLjava/util/concurrent/TimeUnit;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v8, Lf/a/o/e/x1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v8, p4}, Lf/a/o/e/x1;-><init>(Ljava/util/Map;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-object v7, p3
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static/range {v1 .. v8}, Lrx/Observable;->e(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func7;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic access$000(JLrx/Observable;Lrx/Observable;)Lrx/Observable;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-static {p0, p1, p2, p3}, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->get(JLrx/Observable;Lrx/Observable;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public static synthetic b(Ljava/util/Map;Lcom/discord/models/domain/ModelGuild;Ljava/lang/Integer;Lcom/discord/models/domain/ModelUser;Ljava/util/Map;Ljava/util/Map;Ljava/lang/String;Ljava/lang/Long;)Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;
|
|
|
|
.locals 9
|
|
|
|
|
|
|
|
invoke-virtual/range {p7 .. p7}, Ljava/lang/Long;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide v7
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
move-object v1, p1
|
|
|
|
|
|
|
|
move-object v2, p2
|
|
|
|
|
|
|
|
move-object v3, p3
|
|
|
|
|
|
|
|
move-object v4, p4
|
|
|
|
|
|
|
|
move-object v5, p5
|
|
|
|
|
|
|
|
move-object v6, p6
|
|
|
|
|
|
|
|
invoke-static/range {v0 .. v8}, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->create(Ljava/util/Map;Lcom/discord/models/domain/ModelGuild;Ljava/lang/Integer;Lcom/discord/models/domain/ModelUser;Ljava/util/Map;Ljava/util/Map;Ljava/lang/String;J)Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic c(Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model$MemberItem;Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model$MemberItem;)I
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model$MemberItem;->userDisplayName:Ljava/lang/String;
|
|
|
|
|
|
|
|
iget-object v1, p1, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model$MemberItem;->userDisplayName:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->compareToIgnoreCase(Ljava/lang/String;)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model$MemberItem;->userId:J
|
|
|
|
|
|
|
|
iget-wide p0, p1, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model$MemberItem;->userId:J
|
|
|
|
|
|
|
|
invoke-static {v0, v1, p0, p1}, Ljava/lang/Long;->compare(JJ)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
.method public static create(Ljava/util/Map;Lcom/discord/models/domain/ModelGuild;Ljava/lang/Integer;Lcom/discord/models/domain/ModelUser;Ljava/util/Map;Ljava/util/Map;Ljava/lang/String;J)Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;
|
|
|
|
.locals 18
|
|
|
|
.param p0 # Ljava/util/Map;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.param p1 # Lcom/discord/models/domain/ModelGuild;
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.param p2 # Ljava/lang/Integer;
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.param p3 # Lcom/discord/models/domain/ModelUser;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.param p4 # Ljava/util/Map;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.param p5 # Ljava/util/Map;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.param p6 # Ljava/lang/String;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelGuildMember$Computed;",
|
|
|
|
">;",
|
|
|
|
"Lcom/discord/models/domain/ModelGuild;",
|
|
|
|
"Ljava/lang/Integer;",
|
|
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
|
|
">;",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelGuildRole;",
|
|
|
|
">;",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"J)",
|
|
|
|
"Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
move-object/from16 v8, p1
|
|
|
|
|
|
|
|
move-object/from16 v9, p2
|
|
|
|
|
|
|
|
move-object/from16 v10, p5
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-eqz v8, :cond_b
|
|
|
|
|
|
|
|
if-nez v9, :cond_0
|
|
|
|
|
|
|
|
goto/16 :goto_3
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move-object/from16 v11, p3
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v11, v0}, Lf/e/b/a/a;->R(Lcom/discord/models/domain/ModelUser;Ljava/util/Map;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
move-object v12, v2
|
|
|
|
|
|
|
|
check-cast v12, Lcom/discord/models/domain/ModelGuildMember$Computed;
|
|
|
|
|
|
|
|
if-nez v12, :cond_1
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
move-object/from16 v2, p6
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v13
|
|
|
|
|
|
|
|
new-instance v14, Ljava/util/TreeSet;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->sortingFunction:Ljava/util/Comparator;
|
|
|
|
|
|
|
|
invoke-direct {v14, v1}, Ljava/util/TreeSet;-><init>(Ljava/util/Comparator;)V
|
|
|
|
|
|
|
|
invoke-static {v10, v12}, Lcom/discord/models/domain/ModelGuildRole;->getHighestRole(Ljava/util/Map;Lcom/discord/models/domain/ModelGuildMember$Computed;)Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
move-result-object v15
|
|
|
|
|
|
|
|
invoke-static/range {p6 .. p6}, Lcom/discord/widgets/servers/WidgetServerSettingsMembers;->access$200(Ljava/lang/String;)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v16
|
|
|
|
|
|
|
|
invoke-interface/range {p4 .. p4}, Ljava/util/Map;->values()Ljava/util/Collection;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v17
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface/range {v17 .. v17}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
|
|
|
|
invoke-interface/range {v17 .. v17}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
move-object v7, v1
|
|
|
|
|
|
|
|
check-cast v7, Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v7, v0}, Lf/e/b/a/a;->R(Lcom/discord/models/domain/ModelUser;Ljava/util/Map;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
move-object v6, v1
|
|
|
|
|
|
|
|
check-cast v6, Lcom/discord/models/domain/ModelGuildMember$Computed;
|
|
|
|
|
|
|
|
if-nez v6, :cond_2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
|
|
|
cmp-long v3, p7, v1
|
|
|
|
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelGuildMember$Computed;->getRoles()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-static/range {p7 .. p8}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
if-eqz v16, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
|
|
|
invoke-virtual/range {v16 .. v16}, Ljava/lang/Long;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide v3
|
|
|
|
|
|
|
|
cmp-long v5, v1, v3
|
|
|
|
|
|
|
|
if-eqz v5, :cond_5
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-virtual {v7}, Lcom/discord/models/domain/ModelUser;->getUsername()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1, v13}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelGuildMember$Computed;->getNick()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelGuildMember$Computed;->getNick()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1, v13}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
invoke-virtual {v12}, Lcom/discord/models/domain/ModelGuildMember$Computed;->getRoles()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelGuildMember$Computed;->getRoles()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
|
|
|
|
move-object/from16 v2, p3
|
|
|
|
|
|
|
|
move-object v3, v7
|
|
|
|
|
|
|
|
move-object v0, v6
|
|
|
|
|
|
|
|
move-object/from16 v6, p2
|
|
|
|
|
|
|
|
move-object v11, v7
|
|
|
|
|
|
|
|
move-object/from16 v7, p5
|
|
|
|
|
|
|
|
invoke-static/range {v1 .. v7}, Lcom/discord/utilities/permissions/ManageUserContext;->from(Lcom/discord/models/domain/ModelGuild;Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelUser;Ljava/util/Collection;Ljava/util/Collection;Ljava/lang/Integer;Ljava/util/Map;)Lcom/discord/utilities/permissions/ManageUserContext;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model$MemberItem;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/utilities/permissions/ManageUserContext;->canManage()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-direct {v2, v11, v0, v10, v1}, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model$MemberItem;-><init>(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelGuildMember$Computed;Ljava/util/Map;Z)V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v14, v2}, Ljava/util/TreeSet;->add(Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_6
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
move-object/from16 v11, p3
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
invoke-virtual/range {p3 .. p3}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
invoke-virtual {v8, v0, v1}, Lcom/discord/models/domain/ModelGuild;->isOwner(J)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-nez v0, :cond_9
|
|
|
|
|
|
|
|
const/4 v0, 0x2
|
|
|
|
|
|
|
|
invoke-virtual/range {p3 .. p3}, Lcom/discord/models/domain/ModelUser;->isMfaEnabled()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelGuild;->getMfaLevel()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v0, v9, v2, v3}, Lcom/discord/utilities/permissions/PermissionUtils;->canAndIsElevated(ILjava/lang/Integer;ZI)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
:goto_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
const/4 v6, 0x1
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-virtual/range {p3 .. p3}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelGuild;->getOwnerId()J
|
|
|
|
|
|
|
|
move-result-wide v4
|
|
|
|
|
|
|
|
cmp-long v0, v2, v4
|
|
|
|
|
|
|
|
if-nez v0, :cond_a
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
invoke-virtual/range {p3 .. p3}, Lcom/discord/models/domain/ModelUser;->isMfaEnabled()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelGuild;->getMfaLevel()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-static {v1, v0, v2, v9}, Lcom/discord/utilities/permissions/PermissionUtils;->canManageGuildMembers(ZZILjava/lang/Integer;)Z
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
invoke-static/range {p5 .. p5}, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->sortRoles(Ljava/util/Map;)Ljava/util/Map;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
new-instance v9, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;
|
|
|
|
|
|
|
|
new-instance v3, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v3, v14}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
|
|
|
|
move-object v0, v9
|
|
|
|
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
|
|
|
|
move-object v4, v15
|
|
|
|
|
|
|
|
move-object/from16 v5, p3
|
|
|
|
|
|
|
|
invoke-direct/range {v0 .. v7}, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;-><init>(Lcom/discord/models/domain/ModelGuild;Ljava/util/Map;Ljava/util/List;Lcom/discord/models/domain/ModelGuildRole;Lcom/discord/models/domain/ModelUser;ZZ)V
|
|
|
|
|
|
|
|
return-object v9
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
:goto_3
|
|
|
|
return-object v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static get(JLrx/Observable;Lrx/Observable;)Lrx/Observable;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(J",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
">;)",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0, p1}, Lcom/discord/stores/StoreGuilds;->observeComputed(J)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v1, Lf/a/o/e/w1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v1, p0, p1, p2, p3}, Lf/a/o/e/w1;-><init>(JLrx/Observable;Lrx/Observable;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->S(Lr0/k/b;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
sget-object p1, Lf/a/b/q;->d:Lf/a/b/q;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p0, p1}, Lrx/Observable;->k(Lrx/Observable$c;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static sortRoles(Ljava/util/Map;)Ljava/util/Map;
|
|
|
|
.locals 4
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelGuildRole;",
|
|
|
|
">;)",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelGuildRole;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Map;->values()Ljava/util/Collection;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/util/Collections;->sort(Ljava/util/List;)V
|
|
|
|
|
|
|
|
new-instance p0, Ljava/util/LinkedHashMap;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/util/LinkedHashMap;-><init>()V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGuildRole;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public canEqual(Ljava/lang/Object;)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
instance-of p1, p1, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
if-ne p1, p0, :cond_0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
instance-of v1, p1, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
check-cast p1, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p0}, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->canEqual(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->guild:Lcom/discord/models/domain/ModelGuild;
|
|
|
|
|
|
|
|
iget-object v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->guild:Lcom/discord/models/domain/ModelGuild;
|
|
|
|
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-virtual {v1, v3}, Lcom/discord/models/domain/ModelGuild;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->roles:Ljava/util/Map;
|
|
|
|
|
|
|
|
iget-object v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->roles:Ljava/util/Map;
|
|
|
|
|
|
|
|
if-nez v1, :cond_5
|
|
|
|
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_6
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->memberItems:Ljava/util/List;
|
|
|
|
|
|
|
|
iget-object v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->memberItems:Ljava/util/List;
|
|
|
|
|
|
|
|
if-nez v1, :cond_7
|
|
|
|
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_8
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->myHighestRole:Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
iget-object v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->myHighestRole:Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
if-nez v1, :cond_9
|
|
|
|
|
|
|
|
if-eqz v3, :cond_a
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
invoke-virtual {v1, v3}, Lcom/discord/models/domain/ModelGuildRole;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_a
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->meUser:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
iget-object v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->meUser:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
if-nez v1, :cond_b
|
|
|
|
|
|
|
|
if-eqz v3, :cond_c
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
invoke-virtual {v1, v3}, Lcom/discord/models/domain/ModelUser;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_c
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->canKick:Z
|
|
|
|
|
|
|
|
iget-boolean v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->canKick:Z
|
|
|
|
|
|
|
|
if-eq v1, v3, :cond_d
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->canManageMembers:Z
|
|
|
|
|
|
|
|
iget-boolean p1, p1, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->canManageMembers:Z
|
|
|
|
|
|
|
|
if-eq v1, p1, :cond_e
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public hashCode()I
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->guild:Lcom/discord/models/domain/ModelGuild;
|
|
|
|
|
|
|
|
const/16 v1, 0x2b
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/16 v0, 0x2b
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelGuild;->hashCode()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const/16 v2, 0x3b
|
|
|
|
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
iget-object v3, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->roles:Ljava/util/Map;
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x3b
|
|
|
|
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
|
|
|
|
const/16 v3, 0x2b
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Object;->hashCode()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
|
|
|
|
iget-object v3, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->memberItems:Ljava/util/List;
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x3b
|
|
|
|
|
|
|
|
if-nez v3, :cond_2
|
|
|
|
|
|
|
|
const/16 v3, 0x2b
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Object;->hashCode()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
|
|
|
|
iget-object v3, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->myHighestRole:Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x3b
|
|
|
|
|
|
|
|
if-nez v3, :cond_3
|
|
|
|
|
|
|
|
const/16 v3, 0x2b
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelGuildRole;->hashCode()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
|
|
|
|
iget-object v3, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->meUser:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x3b
|
|
|
|
|
|
|
|
if-nez v3, :cond_4
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelUser;->hashCode()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x3b
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->canKick:Z
|
|
|
|
|
|
|
|
const/16 v3, 0x4f
|
|
|
|
|
|
|
|
const/16 v4, 0x61
|
|
|
|
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
|
|
|
|
const/16 v1, 0x4f
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const/16 v1, 0x61
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x3b
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->canManageMembers:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const/16 v3, 0x61
|
|
|
|
|
|
|
|
:goto_6
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public isOwner()Z
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->meUser:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->guild:Lcom/discord/models/domain/ModelGuild;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->getOwnerId()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const-string v0, "WidgetServerSettingsMembers.Model(guild="
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->guild:Lcom/discord/models/domain/ModelGuild;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", roles="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->roles:Ljava/util/Map;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", memberItems="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->memberItems:Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", myHighestRole="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->myHighestRole:Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", meUser="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->meUser:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", canKick="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->canKick:Z
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", canManageMembers="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsMembers$Model;->canManageMembers:Z
|
|
|
|
|
|
|
|
const-string v2, ")"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v0, v1, v2}, Lf/e/b/a/a;->A(Ljava/lang/StringBuilder;ZLjava/lang/String;)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|