745 lines
20 KiB
Smali
745 lines
20 KiB
Smali
|
.class public Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "WidgetChannelSettingsPermissionsAddMember.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x9
|
||
|
name = "Model"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public final canManage:Z
|
||
|
|
||
|
.field public final channel:Lcom/discord/models/domain/ModelChannel;
|
||
|
|
||
|
.field public final memberItems:Ljava/util/List;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/List<",
|
||
|
"Lcom/discord/widgets/channels/SimpleMembersAdapter$MemberItem;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelGuild;Lcom/discord/models/domain/ModelChannel;Ljava/lang/Integer;Ljava/util/List;)V
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lcom/discord/models/domain/ModelUser;",
|
||
|
"Lcom/discord/models/domain/ModelGuild;",
|
||
|
"Lcom/discord/models/domain/ModelChannel;",
|
||
|
"Ljava/lang/Integer;",
|
||
|
"Ljava/util/List<",
|
||
|
"Lcom/discord/widgets/channels/SimpleMembersAdapter$MemberItem;",
|
||
|
">;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput-object p3, p0, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;->channel:Lcom/discord/models/domain/ModelChannel;
|
||
|
|
||
|
iput-object p5, p0, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;->memberItems:Ljava/util/List;
|
||
|
|
||
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelGuild;->getOwnerId()J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->getId()J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
cmp-long p3, v0, v2
|
||
|
|
||
|
if-eqz p3, :cond_1
|
||
|
|
||
|
const/high16 p3, 0x10000000
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->isMfaEnabled()Z
|
||
|
|
||
|
move-result p5
|
||
|
|
||
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelGuild;->getMfaLevel()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-static {p3, p4, p5, v0}, Lcom/discord/utilities/permissions/PermissionUtils;->canAndIsElevated(ILjava/lang/Integer;ZI)Z
|
||
|
|
||
|
move-result p3
|
||
|
|
||
|
if-nez p3, :cond_1
|
||
|
|
||
|
const/16 p3, 0x8
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->isMfaEnabled()Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelGuild;->getMfaLevel()I
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
invoke-static {p3, p4, p1, p2}, Lcom/discord/utilities/permissions/PermissionUtils;->canAndIsElevated(ILjava/lang/Integer;ZI)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
const/4 p1, 0x1
|
||
|
|
||
|
:goto_1
|
||
|
iput-boolean p1, p0, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;->canManage:Z
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic a(Lcom/discord/models/domain/ModelChannel;Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelGuild;Ljava/lang/Integer;Ljava/util/List;)Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;
|
||
|
.locals 7
|
||
|
|
||
|
invoke-static {p1, p2, p0, p4}, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;->isValid(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelGuild;Lcom/discord/models/domain/ModelChannel;Ljava/util/List;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
new-instance v0, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;
|
||
|
|
||
|
move-object v1, v0
|
||
|
|
||
|
move-object v2, p1
|
||
|
|
||
|
move-object v3, p2
|
||
|
|
||
|
move-object v4, p0
|
||
|
|
||
|
move-object v5, p3
|
||
|
|
||
|
move-object v6, p4
|
||
|
|
||
|
invoke-direct/range {v1 .. v6}, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;-><init>(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelGuild;Lcom/discord/models/domain/ModelChannel;Ljava/lang/Integer;Ljava/util/List;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic a(Ljava/lang/String;Lcom/discord/models/domain/ModelUser;)Ljava/lang/Boolean;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->getUsernameLower()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p1, p0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic a(Ljava/util/Map;Lcom/discord/models/domain/ModelUser;)Ljava/lang/Boolean;
|
||
|
.locals 2
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->getId()J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-interface {p0, p1}, Ljava/util/Map;->containsKey(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 synthetic a(Ljava/util/Map;Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelUser;)Ljava/lang/Integer;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-static {p1, p0}, Lf/e/b/a/a;->a(Lcom/discord/models/domain/ModelUser;Ljava/util/Map;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/discord/models/domain/ModelGuildMember$Computed;
|
||
|
|
||
|
invoke-static {p2, p0}, Lf/e/b/a/a;->a(Lcom/discord/models/domain/ModelUser;Ljava/util/Map;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast p0, Lcom/discord/models/domain/ModelGuildMember$Computed;
|
||
|
|
||
|
invoke-static {p1, p2, v0, p0}, Lcom/discord/models/domain/ModelUser;->compareUserNames(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelGuildMember$Computed;Lcom/discord/models/domain/ModelGuildMember$Computed;)I
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic a(JJLrx/Observable;Lcom/discord/models/domain/ModelChannel;)Lrx/Observable;
|
||
|
.locals 4
|
||
|
|
||
|
if-nez p5, :cond_0
|
||
|
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
new-instance p1, Lg0/m/e/j;
|
||
|
|
||
|
invoke-direct {p1, p0}, Lg0/m/e/j;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
return-object p1
|
||
|
|
||
|
:cond_0
|
||
|
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
|
||
|
|
||
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1, 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 v2
|
||
|
|
||
|
invoke-virtual {v2, p2, p3}, Lcom/discord/stores/StorePermissions;->getForChannel(J)Lrx/Observable;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
const-wide/16 v2, 0x12c
|
||
|
|
||
|
sget-object p3, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
||
|
|
||
|
invoke-virtual {p4, v2, v3, p3}, Lrx/Observable;->b(JLjava/util/concurrent/TimeUnit;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p3
|
||
|
|
||
|
new-instance p4, Lf/a/m/a/j0;
|
||
|
|
||
|
invoke-direct {p4, p0, p1, p5}, Lf/a/m/a/j0;-><init>(JLcom/discord/models/domain/ModelChannel;)V
|
||
|
|
||
|
invoke-virtual {p3, p4}, Lrx/Observable;->k(Lg0/l/i;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Lrx/Observable;->a()Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
new-instance p1, Lf/a/m/a/g0;
|
||
|
|
||
|
invoke-direct {p1, p5}, Lf/a/m/a/g0;-><init>(Lcom/discord/models/domain/ModelChannel;)V
|
||
|
|
||
|
invoke-static {v0, v1, p2, p0, p1}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func4;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {}, Lf/a/b/k;->b()Lrx/Observable$c;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Lrx/Observable;->a(Lrx/Observable$c;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic a(JLcom/discord/models/domain/ModelChannel;Ljava/lang/String;)Lrx/Observable;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelChannel;->getPermissionOverwrites()Ljava/util/Map;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
invoke-static {p0, p1, p2, p3}, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;->getMemberItems(JLjava/util/Map;Ljava/lang/String;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic a(Ljava/util/Map;Ljava/lang/String;Ljava/util/Map;)Lrx/Observable;
|
||
|
.locals 2
|
||
|
|
||
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getUsers()Lcom/discord/stores/StoreUser;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {p2}, Ljava/util/Map;->keySet()Ljava/util/Set;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/discord/stores/StoreUser;->observeUsers(Ljava/util/Collection;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v1, Lf/a/m/a/l0;
|
||
|
|
||
|
invoke-direct {v1, p0, p2, p1}, Lf/a/m/a/l0;-><init>(Ljava/util/Map;Ljava/util/Map;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lrx/Observable;->k(Lg0/l/i;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic a(Ljava/util/Map;Ljava/util/Map;Ljava/lang/String;Ljava/util/Map;)Lrx/Observable;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-interface {p3}, Ljava/util/Map;->values()Ljava/util/Collection;
|
||
|
|
||
|
move-result-object p3
|
||
|
|
||
|
invoke-static {p3}, Lrx/Observable;->a(Ljava/lang/Iterable;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p3
|
||
|
|
||
|
new-instance v0, Lf/a/m/a/o0;
|
||
|
|
||
|
invoke-direct {v0, p0}, Lf/a/m/a/o0;-><init>(Ljava/util/Map;)V
|
||
|
|
||
|
invoke-virtual {p3, v0}, Lrx/Observable;->c(Lg0/l/i;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
new-instance p3, Lf/a/m/a/k0;
|
||
|
|
||
|
invoke-direct {p3, p1}, Lf/a/m/a/k0;-><init>(Ljava/util/Map;)V
|
||
|
|
||
|
invoke-virtual {p0, p3}, Lrx/Observable;->c(Lg0/l/i;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
new-instance p3, Lf/a/m/a/i0;
|
||
|
|
||
|
invoke-direct {p3, p2}, Lf/a/m/a/i0;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {p0, p3}, Lrx/Observable;->c(Lg0/l/i;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
new-instance p2, Lf/a/m/a/n0;
|
||
|
|
||
|
invoke-direct {p2, p1}, Lf/a/m/a/n0;-><init>(Ljava/util/Map;)V
|
||
|
|
||
|
invoke-virtual {p0, p2}, Lrx/Observable;->b(Lrx/functions/Func2;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
sget-object p1, Lf/a/m/a/q1;->d:Lf/a/m/a/q1;
|
||
|
|
||
|
invoke-virtual {p0, p1}, Lrx/Observable;->f(Lg0/l/i;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Lrx/Observable;->k()Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic access$000(Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;)Z
|
||
|
.locals 0
|
||
|
|
||
|
iget-boolean p0, p0, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;->canManage:Z
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic access$100(Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;)Lcom/discord/models/domain/ModelChannel;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;->channel:Lcom/discord/models/domain/ModelChannel;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic access$200(Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;)Ljava/util/List;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;->memberItems:Ljava/util/List;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic b(Ljava/util/Map;Lcom/discord/models/domain/ModelUser;)Ljava/lang/Boolean;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-static {p1, p0}, Lf/e/b/a/a;->a(Lcom/discord/models/domain/ModelUser;Ljava/util/Map;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
invoke-static {p0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static get(JJLrx/Observable;)Lrx/Observable;
|
||
|
.locals 8
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(JJ",
|
||
|
"Lrx/Observable<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;)",
|
||
|
"Lrx/Observable<",
|
||
|
"Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getChannels()Lcom/discord/stores/StoreChannels;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p2, p3}, Lcom/discord/stores/StoreChannels;->get(J)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v7, Lf/a/m/a/h0;
|
||
|
|
||
|
move-object v1, v7
|
||
|
|
||
|
move-wide v2, p0
|
||
|
|
||
|
move-wide v4, p2
|
||
|
|
||
|
move-object v6, p4
|
||
|
|
||
|
invoke-direct/range {v1 .. v6}, Lf/a/m/a/h0;-><init>(JJLrx/Observable;)V
|
||
|
|
||
|
invoke-virtual {v0, v7}, Lrx/Observable;->k(Lg0/l/i;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static getMemberItems(JLjava/util/Map;Ljava/lang/String;)Lrx/Observable;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(J",
|
||
|
"Ljava/util/Map<",
|
||
|
"Ljava/lang/Long;",
|
||
|
"Lcom/discord/models/domain/ModelPermissionOverwrite;",
|
||
|
">;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lrx/Observable<",
|
||
|
"Ljava/util/List<",
|
||
|
"Lcom/discord/widgets/channels/SimpleMembersAdapter$MemberItem;",
|
||
|
">;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p3, v0}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p3
|
||
|
|
||
|
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 p0
|
||
|
|
||
|
new-instance p1, Lf/a/m/a/m0;
|
||
|
|
||
|
invoke-direct {p1, p2, p3}, Lf/a/m/a/m0;-><init>(Ljava/util/Map;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {p0, p1}, Lrx/Observable;->k(Lg0/l/i;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static isValid(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelGuild;Lcom/discord/models/domain/ModelChannel;Ljava/util/List;)Z
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lcom/discord/models/domain/ModelUser;",
|
||
|
"Lcom/discord/models/domain/ModelGuild;",
|
||
|
"Lcom/discord/models/domain/ModelChannel;",
|
||
|
"Ljava/util/List<",
|
||
|
"Lcom/discord/widgets/channels/SimpleMembersAdapter$MemberItem;",
|
||
|
">;)Z"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
if-eqz p2, :cond_0
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
if-eqz p3, :cond_0
|
||
|
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public canEqual(Ljava/lang/Object;)Z
|
||
|
.locals 0
|
||
|
|
||
|
instance-of p1, p1, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$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/channels/WidgetChannelSettingsPermissionsAddMember$Model;
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
if-nez v1, :cond_1
|
||
|
|
||
|
return v2
|
||
|
|
||
|
:cond_1
|
||
|
check-cast p1, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;
|
||
|
|
||
|
invoke-virtual {p1, p0}, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$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/channels/WidgetChannelSettingsPermissionsAddMember$Model;->channel:Lcom/discord/models/domain/ModelChannel;
|
||
|
|
||
|
iget-object v3, p1, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;->channel:Lcom/discord/models/domain/ModelChannel;
|
||
|
|
||
|
if-nez v1, :cond_3
|
||
|
|
||
|
if-eqz v3, :cond_4
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_3
|
||
|
invoke-virtual {v1, v3}, Lcom/discord/models/domain/ModelChannel;->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/channels/WidgetChannelSettingsPermissionsAddMember$Model;->memberItems:Ljava/util/List;
|
||
|
|
||
|
iget-object v3, p1, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;->memberItems:Ljava/util/List;
|
||
|
|
||
|
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-boolean v1, p0, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;->canManage:Z
|
||
|
|
||
|
iget-boolean p1, p1, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;->canManage:Z
|
||
|
|
||
|
if-eq v1, p1, :cond_7
|
||
|
|
||
|
return v2
|
||
|
|
||
|
:cond_7
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public hashCode()I
|
||
|
.locals 4
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;->channel:Lcom/discord/models/domain/ModelChannel;
|
||
|
|
||
|
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/ModelChannel;->hashCode()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
:goto_0
|
||
|
const/16 v2, 0x3b
|
||
|
|
||
|
add-int/2addr v0, v2
|
||
|
|
||
|
iget-object v3, p0, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;->memberItems:Ljava/util/List;
|
||
|
|
||
|
mul-int/lit8 v0, v0, 0x3b
|
||
|
|
||
|
if-nez v3, :cond_1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
invoke-virtual {v3}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
:goto_1
|
||
|
add-int/2addr v0, v1
|
||
|
|
||
|
mul-int/lit8 v0, v0, 0x3b
|
||
|
|
||
|
iget-boolean v1, p0, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;->canManage:Z
|
||
|
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
const/16 v1, 0x4f
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_2
|
||
|
const/16 v1, 0x61
|
||
|
|
||
|
:goto_2
|
||
|
add-int/2addr v0, v1
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public toString()Ljava/lang/String;
|
||
|
.locals 3
|
||
|
|
||
|
const-string v0, "WidgetChannelSettingsPermissionsAddMember.Model(channel="
|
||
|
|
||
|
invoke-static {v0}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Lcom/discord/widgets/channels/WidgetChannelSettingsPermissionsAddMember$Model;->channel:Lcom/discord/models/domain/ModelChannel;
|
||
|
|
||
|
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/channels/WidgetChannelSettingsPermissionsAddMember$Model;->memberItems: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/channels/WidgetChannelSettingsPermissionsAddMember$Model;->canManage:Z
|
||
|
|
||
|
const-string v2, ")"
|
||
|
|
||
|
invoke-static {v0, v1, v2}, Lf/e/b/a/a;->a(Ljava/lang/StringBuilder;ZLjava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|