1052 lines
28 KiB
Smali
1052 lines
28 KiB
Smali
.class public Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetServerSettingsEditMember.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/widgets/servers/WidgetServerSettingsEditMember;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "Model"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final canBan:Z
|
|
|
|
.field public final canChangeNickname:Z
|
|
|
|
.field public final canKick:Z
|
|
|
|
.field public final canManage:Z
|
|
|
|
.field public final canTransferOwnership:Z
|
|
|
|
.field public final guild:Lcom/discord/models/domain/ModelGuild;
|
|
|
|
.field public final myId:J
|
|
|
|
.field public final roleItems:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/discord/widgets/servers/WidgetServerSettingsEditMemberRolesAdapter$RoleItem;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
.field public final userComputed:Lcom/discord/models/domain/ModelGuildMember$Computed;
|
|
|
|
.field public final userRoles:Ljava/util/Set;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/Long;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(JLcom/discord/models/domain/ModelGuild;Lcom/discord/models/domain/ModelGuildMember$Computed;Ljava/util/Set;Lcom/discord/models/domain/ModelUser;Ljava/util/List;ZZZZZ)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(J",
|
|
"Lcom/discord/models/domain/ModelGuild;",
|
|
"Lcom/discord/models/domain/ModelGuildMember$Computed;",
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/Long;",
|
|
">;",
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
"Ljava/util/List<",
|
|
"Lcom/discord/widgets/servers/WidgetServerSettingsEditMemberRolesAdapter$RoleItem;",
|
|
">;ZZZZZ)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-wide p1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->myId:J
|
|
|
|
iput-object p3, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->guild:Lcom/discord/models/domain/ModelGuild;
|
|
|
|
iput-object p4, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->userComputed:Lcom/discord/models/domain/ModelGuildMember$Computed;
|
|
|
|
iput-object p5, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->userRoles:Ljava/util/Set;
|
|
|
|
iput-object p6, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
iput-object p7, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->roleItems:Ljava/util/List;
|
|
|
|
iput-boolean p8, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canManage:Z
|
|
|
|
iput-boolean p9, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canKick:Z
|
|
|
|
iput-boolean p10, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canBan:Z
|
|
|
|
iput-boolean p11, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canChangeNickname:Z
|
|
|
|
iput-boolean p12, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canTransferOwnership:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic a(JLjava/util/Map;)Lrx/Observable;
|
|
.locals 1
|
|
|
|
invoke-interface {p2}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Lrx/Observable;->y(Ljava/lang/Iterable;)Lrx/Observable;
|
|
|
|
move-result-object p2
|
|
|
|
new-instance v0, Lf/a/o/e/s0;
|
|
|
|
invoke-direct {v0, p0, p1}, Lf/a/o/e/s0;-><init>(J)V
|
|
|
|
invoke-virtual {p2, v0}, Lrx/Observable;->v(Lk0/k/b;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
sget-object p1, Lf/a/o/e/c;->d:Lf/a/o/e/c;
|
|
|
|
sget-object p2, Lf/a/o/e/e;->d:Lf/a/o/e/e;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lrx/Observable;->c0(Lk0/k/b;Lk0/k/b;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic b(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelUser;Ljava/util/Map;Lcom/discord/models/domain/ModelGuild;Ljava/util/Map;Ljava/lang/Long;)Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;
|
|
.locals 6
|
|
|
|
move-object v0, p3
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p4
|
|
|
|
move-object v3, p5
|
|
|
|
move-object v4, p2
|
|
|
|
move-object v5, p0
|
|
|
|
invoke-static/range {v0 .. v5}, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->create(Lcom/discord/models/domain/ModelGuild;Lcom/discord/models/domain/ModelUser;Ljava/util/Map;Ljava/lang/Long;Ljava/util/Map;Lcom/discord/models/domain/ModelUser;)Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic c(JLjava/util/Map$Entry;)Ljava/lang/Boolean;
|
|
.locals 0
|
|
|
|
invoke-interface {p2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Ljava/lang/Long;
|
|
|
|
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p2, p0}, Ljava/lang/Long;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
xor-int/lit8 p0, p0, 0x1
|
|
|
|
invoke-static {p0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static create(Lcom/discord/models/domain/ModelGuild;Lcom/discord/models/domain/ModelUser;Ljava/util/Map;Ljava/lang/Long;Ljava/util/Map;Lcom/discord/models/domain/ModelUser;)Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;
|
|
.locals 24
|
|
.param p0 # Lcom/discord/models/domain/ModelGuild;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Lcom/discord/models/domain/ModelUser;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Ljava/util/Map;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Ljava/lang/Long;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p4 # Ljava/util/Map;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p5 # Lcom/discord/models/domain/ModelUser;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/models/domain/ModelGuild;",
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Lcom/discord/models/domain/ModelGuildRole;",
|
|
">;",
|
|
"Ljava/lang/Long;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Lcom/discord/models/domain/ModelGuildMember$Computed;",
|
|
">;",
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
")",
|
|
"Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v7, p2
|
|
|
|
move-object/from16 v0, p4
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p0, :cond_5
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
if-eqz v7, :cond_5
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_0
|
|
invoke-virtual/range {p5 .. p5}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
move-result-wide v8
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
move-result-wide v10
|
|
|
|
invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
move-object v12, v2
|
|
|
|
check-cast v12, Lcom/discord/models/domain/ModelGuildMember$Computed;
|
|
|
|
invoke-static {v10, v11}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v13, v0
|
|
|
|
check-cast v13, Lcom/discord/models/domain/ModelGuildMember$Computed;
|
|
|
|
if-eqz v12, :cond_5
|
|
|
|
if-nez v13, :cond_1
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_1
|
|
invoke-virtual {v12}, Lcom/discord/models/domain/ModelGuildMember$Computed;->getRoles()Ljava/util/List;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v13}, Lcom/discord/models/domain/ModelGuildMember$Computed;->getRoles()Ljava/util/List;
|
|
|
|
move-result-object v4
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p5
|
|
|
|
move-object/from16 v2, p1
|
|
|
|
move-object/from16 v5, p3
|
|
|
|
move-object/from16 v6, p2
|
|
|
|
invoke-static/range {v0 .. v6}, 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/Long;Ljava/util/Map;)Lcom/discord/utilities/permissions/ManageUserContext;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Ljava/util/HashSet;
|
|
|
|
invoke-virtual {v13}, Lcom/discord/models/domain/ModelGuildMember$Computed;->getRoles()Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
|
|
|
|
invoke-static {v7, v12}, Lcom/discord/models/domain/ModelGuildRole;->getHighestRole(Ljava/util/Map;Lcom/discord/models/domain/ModelGuildMember$Computed;)Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v3, Ljava/util/ArrayList;
|
|
|
|
invoke-interface/range {p2 .. p2}, Ljava/util/Map;->values()Ljava/util/Collection;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-direct {v3, v4}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
invoke-static {v3}, Ljava/util/Collections;->sort(Ljava/util/List;)V
|
|
|
|
new-instance v12, Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v4
|
|
|
|
invoke-direct {v12, v4}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/permissions/ManageUserContext;->getCanManageRoles()Z
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/permissions/ManageUserContext;->canManage()Z
|
|
|
|
move-result v20
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/permissions/ManageUserContext;->getCanKick()Z
|
|
|
|
move-result v21
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/permissions/ManageUserContext;->getCanBan()Z
|
|
|
|
move-result v22
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/permissions/ManageUserContext;->getCanChangeNickname()Z
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelGuild;->getOwnerId()J
|
|
|
|
move-result-wide v5
|
|
|
|
const/4 v7, 0x1
|
|
|
|
const/4 v14, 0x0
|
|
|
|
cmp-long v15, v8, v5
|
|
|
|
if-nez v15, :cond_2
|
|
|
|
const/4 v5, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 v5, 0x0
|
|
|
|
:goto_0
|
|
cmp-long v6, v8, v10
|
|
|
|
if-eqz v6, :cond_3
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
const/16 v23, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const/16 v23, 0x0
|
|
|
|
:goto_1
|
|
invoke-virtual {v3}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v3
|
|
|
|
:goto_2
|
|
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_4
|
|
|
|
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
move-object v15, v6
|
|
|
|
check-cast v15, Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
new-instance v6, Lcom/discord/widgets/servers/WidgetServerSettingsEditMemberRolesAdapter$RoleItem;
|
|
|
|
invoke-virtual {v15}, Lcom/discord/models/domain/ModelGuildRole;->getId()J
|
|
|
|
move-result-wide v10
|
|
|
|
invoke-static {v10, v11}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v1, v7}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v16
|
|
|
|
move-object v14, v6
|
|
|
|
move-object/from16 v17, v2
|
|
|
|
move/from16 v18, v5
|
|
|
|
move/from16 v19, v4
|
|
|
|
invoke-direct/range {v14 .. v19}, Lcom/discord/widgets/servers/WidgetServerSettingsEditMemberRolesAdapter$RoleItem;-><init>(Lcom/discord/models/domain/ModelGuildRole;ZLcom/discord/models/domain/ModelGuildRole;ZZ)V
|
|
|
|
invoke-virtual {v12, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
new-instance v15, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;
|
|
|
|
move-object v2, v15
|
|
|
|
move-wide v3, v8
|
|
|
|
move-object/from16 v5, p0
|
|
|
|
move-object v6, v13
|
|
|
|
move-object v7, v1
|
|
|
|
move-object/from16 v8, p1
|
|
|
|
move-object v9, v12
|
|
|
|
move/from16 v10, v20
|
|
|
|
move/from16 v11, v21
|
|
|
|
move/from16 v12, v22
|
|
|
|
move v13, v0
|
|
|
|
move/from16 v14, v23
|
|
|
|
invoke-direct/range {v2 .. v14}, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;-><init>(JLcom/discord/models/domain/ModelGuild;Lcom/discord/models/domain/ModelGuildMember$Computed;Ljava/util/Set;Lcom/discord/models/domain/ModelUser;Ljava/util/List;ZZZZZ)V
|
|
|
|
return-object v15
|
|
|
|
:cond_5
|
|
:goto_3
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public static get(JJ)Lrx/Observable;
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(JJ)",
|
|
"Lrx/Observable<",
|
|
"Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$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 v1
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getUsers()Lcom/discord/stores/StoreUser;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p2, p3}, Lcom/discord/stores/StoreUser;->observeUser(J)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2, p0, p1}, Lcom/discord/stores/StoreGuilds;->observeComputed(J)Lrx/Observable;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2, p0, p1}, Lcom/discord/stores/StoreGuilds;->observeGuild(J)Lrx/Observable;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2, p0, p1}, Lcom/discord/stores/StoreGuilds;->observeRoles(J)Lrx/Observable;
|
|
|
|
move-result-object p2
|
|
|
|
new-instance p3, Lf/a/o/e/q0;
|
|
|
|
invoke-direct {p3, p0, p1}, Lf/a/o/e/q0;-><init>(J)V
|
|
|
|
invoke-virtual {p2, p3}, Lrx/Observable;->U(Lk0/k/b;)Lrx/Observable;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2}, Lrx/Observable;->q()Lrx/Observable;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getPermissions()Lcom/discord/stores/StorePermissions;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2, p0, p1}, Lcom/discord/stores/StorePermissions;->getForGuild(J)Lrx/Observable;
|
|
|
|
move-result-object v6
|
|
|
|
sget-object v7, Lf/a/o/e/r0;->a:Lf/a/o/e/r0;
|
|
|
|
invoke-static/range {v1 .. v7}, Lrx/Observable;->f(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func6;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
sget-object p1, Lf/a/b/r;->d:Lf/a/b/r;
|
|
|
|
invoke-virtual {p0, p1}, Lrx/Observable;->k(Lrx/Observable$c;)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/WidgetServerSettingsEditMember$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/WidgetServerSettingsEditMember$Model;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
return v2
|
|
|
|
:cond_1
|
|
check-cast p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;
|
|
|
|
invoke-virtual {p1, p0}, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$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/WidgetServerSettingsEditMember$Model;->myId:J
|
|
|
|
iget-wide v5, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->myId:J
|
|
|
|
cmp-long v1, v3, v5
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
return v2
|
|
|
|
:cond_3
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->guild:Lcom/discord/models/domain/ModelGuild;
|
|
|
|
iget-object v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->guild:Lcom/discord/models/domain/ModelGuild;
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
if-eqz v3, :cond_5
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
invoke-virtual {v1, v3}, Lcom/discord/models/domain/ModelGuild;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_5
|
|
|
|
:goto_0
|
|
return v2
|
|
|
|
:cond_5
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->userComputed:Lcom/discord/models/domain/ModelGuildMember$Computed;
|
|
|
|
iget-object v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->userComputed:Lcom/discord/models/domain/ModelGuildMember$Computed;
|
|
|
|
if-nez v1, :cond_6
|
|
|
|
if-eqz v3, :cond_7
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
invoke-virtual {v1, v3}, Lcom/discord/models/domain/ModelGuildMember$Computed;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_7
|
|
|
|
:goto_1
|
|
return v2
|
|
|
|
:cond_7
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->userRoles:Ljava/util/Set;
|
|
|
|
iget-object v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->userRoles:Ljava/util/Set;
|
|
|
|
if-nez v1, :cond_8
|
|
|
|
if-eqz v3, :cond_9
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
invoke-virtual {v1, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_9
|
|
|
|
:goto_2
|
|
return v2
|
|
|
|
:cond_9
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
iget-object v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
if-nez v1, :cond_a
|
|
|
|
if-eqz v3, :cond_b
|
|
|
|
goto :goto_3
|
|
|
|
:cond_a
|
|
invoke-virtual {v1, v3}, Lcom/discord/models/domain/ModelUser;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_b
|
|
|
|
:goto_3
|
|
return v2
|
|
|
|
:cond_b
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->roleItems:Ljava/util/List;
|
|
|
|
iget-object v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->roleItems:Ljava/util/List;
|
|
|
|
if-nez v1, :cond_c
|
|
|
|
if-eqz v3, :cond_d
|
|
|
|
goto :goto_4
|
|
|
|
:cond_c
|
|
invoke-virtual {v1, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_d
|
|
|
|
:goto_4
|
|
return v2
|
|
|
|
:cond_d
|
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canManage:Z
|
|
|
|
iget-boolean v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canManage:Z
|
|
|
|
if-eq v1, v3, :cond_e
|
|
|
|
return v2
|
|
|
|
:cond_e
|
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canKick:Z
|
|
|
|
iget-boolean v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canKick:Z
|
|
|
|
if-eq v1, v3, :cond_f
|
|
|
|
return v2
|
|
|
|
:cond_f
|
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canBan:Z
|
|
|
|
iget-boolean v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canBan:Z
|
|
|
|
if-eq v1, v3, :cond_10
|
|
|
|
return v2
|
|
|
|
:cond_10
|
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canChangeNickname:Z
|
|
|
|
iget-boolean v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canChangeNickname:Z
|
|
|
|
if-eq v1, v3, :cond_11
|
|
|
|
return v2
|
|
|
|
:cond_11
|
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canTransferOwnership:Z
|
|
|
|
iget-boolean p1, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canTransferOwnership:Z
|
|
|
|
if-eq v1, p1, :cond_12
|
|
|
|
return v2
|
|
|
|
:cond_12
|
|
return v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 5
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->myId: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/WidgetServerSettingsEditMember$Model;->guild:Lcom/discord/models/domain/ModelGuild;
|
|
|
|
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}, Lcom/discord/models/domain/ModelGuild;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
:goto_0
|
|
add-int/2addr v1, v2
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->userComputed:Lcom/discord/models/domain/ModelGuildMember$Computed;
|
|
|
|
mul-int/lit8 v1, v1, 0x3b
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
const/16 v2, 0x2b
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuildMember$Computed;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
:goto_1
|
|
add-int/2addr v1, v2
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->userRoles:Ljava/util/Set;
|
|
|
|
mul-int/lit8 v1, v1, 0x3b
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
const/16 v2, 0x2b
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
:goto_2
|
|
add-int/2addr v1, v2
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
mul-int/lit8 v1, v1, 0x3b
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
const/16 v2, 0x2b
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelUser;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
:goto_3
|
|
add-int/2addr v1, v2
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->roleItems:Ljava/util/List;
|
|
|
|
mul-int/lit8 v1, v1, 0x3b
|
|
|
|
if-nez v2, :cond_4
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v3
|
|
|
|
:goto_4
|
|
add-int/2addr v1, v3
|
|
|
|
mul-int/lit8 v1, v1, 0x3b
|
|
|
|
iget-boolean v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canManage:Z
|
|
|
|
const/16 v3, 0x4f
|
|
|
|
const/16 v4, 0x61
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
const/16 v2, 0x4f
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
const/16 v2, 0x61
|
|
|
|
:goto_5
|
|
add-int/2addr v1, v2
|
|
|
|
mul-int/lit8 v1, v1, 0x3b
|
|
|
|
iget-boolean v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canKick:Z
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
const/16 v2, 0x4f
|
|
|
|
goto :goto_6
|
|
|
|
:cond_6
|
|
const/16 v2, 0x61
|
|
|
|
:goto_6
|
|
add-int/2addr v1, v2
|
|
|
|
mul-int/lit8 v1, v1, 0x3b
|
|
|
|
iget-boolean v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canBan:Z
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
const/16 v2, 0x4f
|
|
|
|
goto :goto_7
|
|
|
|
:cond_7
|
|
const/16 v2, 0x61
|
|
|
|
:goto_7
|
|
add-int/2addr v1, v2
|
|
|
|
mul-int/lit8 v1, v1, 0x3b
|
|
|
|
iget-boolean v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canChangeNickname:Z
|
|
|
|
if-eqz v2, :cond_8
|
|
|
|
const/16 v2, 0x4f
|
|
|
|
goto :goto_8
|
|
|
|
:cond_8
|
|
const/16 v2, 0x61
|
|
|
|
:goto_8
|
|
add-int/2addr v1, v2
|
|
|
|
mul-int/lit8 v1, v1, 0x3b
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canTransferOwnership:Z
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
goto :goto_9
|
|
|
|
:cond_9
|
|
const/16 v3, 0x61
|
|
|
|
:goto_9
|
|
add-int/2addr v1, v3
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
const-string v0, "WidgetServerSettingsEditMember.Model(myId="
|
|
|
|
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->myId:J
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", guild="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->guild:Lcom/discord/models/domain/ModelGuild;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", userComputed="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->userComputed:Lcom/discord/models/domain/ModelGuildMember$Computed;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", userRoles="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->userRoles:Ljava/util/Set;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", user="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)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/WidgetServerSettingsEditMember$Model;->roleItems:Ljava/util/List;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", canManage="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canManage:Z
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)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/WidgetServerSettingsEditMember$Model;->canKick:Z
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", canBan="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canBan:Z
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", canChangeNickname="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canChangeNickname:Z
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", canTransferOwnership="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditMember$Model;->canTransferOwnership:Z
|
|
|
|
const-string v2, ")"
|
|
|
|
invoke-static {v0, v1, v2}, Lf/e/c/a/a;->A(Ljava/lang/StringBuilder;ZLjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|