2020-05-17 12:40:10 +00:00
|
|
|
.class public Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "WidgetServerSettingsEditRole.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/widgets/servers/WidgetServerSettingsEditRole;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x9
|
|
|
|
name = "Model"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final guildId:J
|
|
|
|
|
|
|
|
.field public final manageStatus:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
.field public final myPermissions:J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
.field public final myPermissionsFromOtherRoles:J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
.field public final owner:Z
|
|
|
|
|
|
|
|
.field public final role:Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-07-25 00:57:58 +00:00
|
|
|
.method public constructor <init>(ZJLcom/discord/models/domain/ModelGuildRole;Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;JJ)V
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iput-boolean p1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->owner:Z
|
|
|
|
|
|
|
|
iput-wide p2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->guildId:J
|
|
|
|
|
|
|
|
iput-object p4, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->role:Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
iput-object p5, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->manageStatus:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
iput-wide p6, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->myPermissions:J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
iput-wide p8, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->myPermissionsFromOtherRoles:J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic a(JJLcom/discord/models/domain/ModelUser;)Lrx/Observable;
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
if-nez p4, :cond_0
|
|
|
|
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
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 {p4}, 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
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
new-instance v2, Lf/a/o/e/e1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-direct {v2, p4}, Lf/a/o/e/e1;-><init>(Lcom/discord/models/domain/ModelUser;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v1, v2}, Lrx/Observable;->E(Ls0/k/b;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2, p0, p1}, Lcom/discord/stores/StoreGuilds;->observeRoles(J)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getPermissions()Lcom/discord/stores/StorePermissions;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v3, p0, p1}, Lcom/discord/stores/StorePermissions;->getForGuild(J)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
new-instance p1, Lf/a/o/e/d1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-direct {p1, p4, p2, p3}, Lf/a/o/e/d1;-><init>(Lcom/discord/models/domain/ModelUser;J)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v0, v1, v2, p0, p1}, Lrx/Observable;->h(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func4;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic access$000(JJ)Lrx/Observable;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-static {p0, p1, p2, p3}, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->get(JJ)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic access$100(Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;)Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->role:Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic access$200(Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->isEveryoneRole()Z
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
.method public static synthetic access$300(Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;)J
|
|
|
|
.locals 2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->myPermissions:J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
return-wide v0
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic access$400(Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;)Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->manageStatus:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic access$500(Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;)J
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->guildId:J
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public static synthetic b(Lcom/discord/models/domain/ModelUser;Ljava/util/Map;)Lcom/discord/models/domain/ModelGuildMember$Computed;
|
|
|
|
.locals 0
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {p0, p1}, Lf/e/b/a/a;->W(Lcom/discord/models/domain/ModelUser;Ljava/util/Map;)Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, Lcom/discord/models/domain/ModelGuildMember$Computed;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
.method public static synthetic c(Lcom/discord/models/domain/ModelUser;JLcom/discord/models/domain/ModelGuild;Lcom/discord/models/domain/ModelGuildMember$Computed;Ljava/util/Map;Ljava/lang/Long;)Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;
|
|
|
|
.locals 8
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-virtual {p6}, Ljava/lang/Long;->longValue()J
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-result-wide v4
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-object v0, p3
|
|
|
|
|
|
|
|
move-object v1, p0
|
|
|
|
|
|
|
|
move-object v2, p4
|
|
|
|
|
|
|
|
move-object v3, p5
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-wide v6, p1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static/range {v0 .. v7}, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->create(Lcom/discord/models/domain/ModelGuild;Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelGuildMember$Computed;Ljava/util/Map;JJ)Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
.method public static computeMyOtherPermissions(Ljava/util/Collection;Ljava/util/Map;JJ)Ljava/lang/Long;
|
|
|
|
.locals 3
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/util/Collection<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
">;",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelGuildRole;",
|
|
|
|
">;JJ)",
|
2020-07-25 00:57:58 +00:00
|
|
|
"Ljava/lang/Long;"
|
2020-05-17 12:40:10 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-static {p4, p5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
const-wide/16 v1, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
cmp-long v0, p2, p4
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-static {p4, p5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object p4
|
|
|
|
|
|
|
|
invoke-interface {p1, p4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p4
|
|
|
|
|
|
|
|
check-cast p4, Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-virtual {p4}, Lcom/discord/models/domain/ModelGuildRole;->getPermissions()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-result-wide p4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
or-long/2addr v1, p4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
if-nez p0, :cond_1
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result p4
|
|
|
|
|
|
|
|
if-eqz p4, :cond_3
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p4
|
|
|
|
|
|
|
|
check-cast p4, Ljava/lang/Long;
|
|
|
|
|
|
|
|
invoke-virtual {p4}, Ljava/lang/Long;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide p4
|
|
|
|
|
|
|
|
cmp-long v0, p4, p2
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
invoke-static {p4, p5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
invoke-static {p4, p5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object p4
|
|
|
|
|
|
|
|
invoke-interface {p1, p4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p4
|
|
|
|
|
|
|
|
check-cast p4, Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-virtual {p4}, Lcom/discord/models/domain/ModelGuildRole;->getPermissions()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-result-wide p4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
or-long/2addr p4, v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-wide v1, p4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
.method public static create(Lcom/discord/models/domain/ModelGuild;Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelGuildMember$Computed;Ljava/util/Map;JJ)Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;
|
|
|
|
.locals 14
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lcom/discord/models/domain/ModelGuild;",
|
|
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
|
|
"Lcom/discord/models/domain/ModelGuildMember$Computed;",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelGuildRole;",
|
2020-07-25 00:57:58 +00:00
|
|
|
">;JJ)",
|
2020-05-17 12:40:10 +00:00
|
|
|
"Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-object/from16 v0, p2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-object/from16 v1, p3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static/range {p6 .. p7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-interface {v1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
check-cast v3, Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
move-object v8, v3
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move-object v8, v2
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v8, :cond_9
|
|
|
|
|
|
|
|
if-eqz p0, :cond_9
|
|
|
|
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
|
|
|
|
goto/16 :goto_4
|
|
|
|
|
|
|
|
:cond_1
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1, v0}, Lcom/discord/models/domain/ModelGuildRole;->getHighestRole(Ljava/util/Map;Lcom/discord/models/domain/ModelGuildMember$Computed;)Lcom/discord/models/domain/ModelGuildRole;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getOwnerId()J
|
|
|
|
|
|
|
|
move-result-wide v3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v5
|
|
|
|
|
|
|
|
cmp-long v7, v3, v5
|
|
|
|
|
|
|
|
if-nez v7, :cond_2
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
const/4 v6, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->isMfaEnabled()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getMfaLevel()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-static {v3, v4}, Lcom/discord/utilities/permissions/PermissionUtils;->isElevated(ZI)Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-nez v6, :cond_8
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
const-wide/16 v4, 0x8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static/range {p4 .. p5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-result-object v7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v4, v5, v7}, Lcom/discord/utilities/permissions/PermissionUtils;->can(JLjava/lang/Long;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
|
|
|
|
invoke-static {v2, v8}, Lcom/discord/models/domain/ModelGuildRole;->rankIsHigher(Lcom/discord/models/domain/ModelGuildRole;Lcom/discord/models/domain/ModelGuildRole;)Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-static {v8, v2}, Lcom/discord/models/domain/ModelGuildRole;->rankIsHigher(Lcom/discord/models/domain/ModelGuildRole;Lcom/discord/models/domain/ModelGuildRole;)Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;->LOCKED_HIGHER:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-static {v2, v8}, Lcom/discord/models/domain/ModelGuildRole;->rankEquals(Lcom/discord/models/domain/ModelGuildRole;Lcom/discord/models/domain/ModelGuildRole;)Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;->LOCKED_HIGHEST:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_5
|
2020-07-25 00:57:58 +00:00
|
|
|
const-wide/32 v4, 0x10000000
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static/range {p4 .. p5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v4, v5, v2}, Lcom/discord/utilities/permissions/PermissionUtils;->can(JLjava/lang/Long;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;->CAN_MANAGE_CONDITIONAL:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
if-nez v3, :cond_7
|
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;->USER_NOT_ELEVATED:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
sget-object v2, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;->NO_MANAGE_ROLES_PERMISSION:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
:goto_2
|
|
|
|
sget-object v2, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;->CAN_MANAGE_ADMIN:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
move-object v9, v2
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/models/domain/ModelGuildMember$Computed;->getRoles()Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v4
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-object/from16 v1, p3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-wide/from16 v2, p6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static/range {v0 .. v5}, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->computeMyOtherPermissions(Ljava/util/Collection;Ljava/util/Map;JJ)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-result-wide v12
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
|
|
|
move-object v4, v0
|
|
|
|
|
|
|
|
move v5, v6
|
|
|
|
|
|
|
|
move-wide v6, v1
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-wide/from16 v10, p4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-direct/range {v4 .. v13}, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;-><init>(ZJLcom/discord/models/domain/ModelGuildRole;Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;JJ)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
:goto_4
|
|
|
|
return-object v2
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static get(JJ)Lrx/Observable;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(JJ)",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$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
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
new-instance v1, Lf/a/o/e/f1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-direct {v1, p0, p1, p2, p3}, Lf/a/o/e/f1;-><init>(JJ)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->U(Ls0/k/b;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p0}, Lrx/Observable;->q()Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private isEveryoneRole()Z
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->role:Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelGuildRole;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
iget-wide v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->guildId:J
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public canEqual(Ljava/lang/Object;)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
instance-of p1, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public canManage()Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->manageStatus:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;->CAN_MANAGE_CONDITIONAL:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;->CAN_MANAGE_ADMIN:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return v0
|
|
|
|
.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/WidgetServerSettingsEditRole$Model;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
check-cast p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p0}, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->canEqual(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->isOwner()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->isOwner()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eq v1, v3, :cond_3
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
iget-wide v3, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->guildId:J
|
|
|
|
|
|
|
|
iget-wide v5, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->guildId:J
|
|
|
|
|
|
|
|
cmp-long v1, v3, v5
|
|
|
|
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->role:Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
iget-object v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->role:Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
if-nez v1, :cond_5
|
|
|
|
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
invoke-virtual {v1, v3}, Lcom/discord/models/domain/ModelGuildRole;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_6
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->manageStatus:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
|
|
|
|
iget-object v3, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->manageStatus:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
|
|
|
|
if-nez v1, :cond_7
|
|
|
|
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_8
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_8
|
2020-07-25 00:57:58 +00:00
|
|
|
iget-wide v3, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->myPermissions:J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
iget-wide v5, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->myPermissions:J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
cmp-long v1, v3, v5
|
|
|
|
|
|
|
|
if-eqz v1, :cond_9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_9
|
2020-07-25 00:57:58 +00:00
|
|
|
iget-wide v3, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->myPermissionsFromOtherRoles:J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
iget-wide v5, p1, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->myPermissionsFromOtherRoles:J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
cmp-long p1, v3, v5
|
|
|
|
|
|
|
|
if-eqz p1, :cond_a
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public hashCode()I
|
2020-07-25 00:57:58 +00:00
|
|
|
.locals 7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->isOwner()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/16 v0, 0x4f
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/16 v0, 0x61
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const/16 v1, 0x3b
|
|
|
|
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
|
|
|
|
iget-wide v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->guildId:J
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x3b
|
|
|
|
|
|
|
|
const/16 v4, 0x20
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
ushr-long v5, v2, v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
xor-long/2addr v2, v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
long-to-int v3, v2
|
|
|
|
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->role:Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x3b
|
|
|
|
|
|
|
|
const/16 v3, 0x2b
|
|
|
|
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
|
|
|
|
const/16 v2, 0x2b
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuildRole;->hashCode()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->manageStatus:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x3b
|
|
|
|
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
iget-wide v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->myPermissions:J
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
mul-int/lit8 v0, v0, 0x3b
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
ushr-long v5, v2, v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
xor-long/2addr v2, v5
|
|
|
|
|
|
|
|
long-to-int v3, v2
|
|
|
|
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
|
|
|
|
iget-wide v2, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->myPermissionsFromOtherRoles:J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x3b
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
ushr-long v4, v2, v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
xor-long v1, v4, v2
|
|
|
|
|
|
|
|
long-to-int v2, v1
|
|
|
|
|
|
|
|
add-int/2addr v0, v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public isOwner()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->owner:Z
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
.method public isSingular(J)Z
|
|
|
|
.locals 3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->owner:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->myPermissionsFromOtherRoles:J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
and-long/2addr v0, p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
cmp-long v2, v0, p1
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
2020-07-25 00:57:58 +00:00
|
|
|
.locals 4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string v0, "WidgetServerSettingsEditRole.Model(owner="
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->isOwner()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", guildId="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->guildId:J
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", role="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->role:Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", manageStatus="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->manageStatus:Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model$ManageStatus;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", myPermissions="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->myPermissions:J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string v1, ", myPermissionsFromOtherRoles="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/servers/WidgetServerSettingsEditRole$Model;->myPermissionsFromOtherRoles:J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
const-string v3, ")"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v0, v1, v2, v3}, Lf/e/b/a/a;->t(Ljava/lang/StringBuilder;JLjava/lang/String;)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|