433 lines
13 KiB
Smali
433 lines
13 KiB
Smali
.class final Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetUserSheetModel.kt"
|
|
|
|
# interfaces
|
|
.implements Lrx/functions/Func9;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1;->invoke(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelChannel;)Lrx/Observable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T1:",
|
|
"Ljava/lang/Object;",
|
|
"T2:",
|
|
"Ljava/lang/Object;",
|
|
"T3:",
|
|
"Ljava/lang/Object;",
|
|
"T4:",
|
|
"Ljava/lang/Object;",
|
|
"T5:",
|
|
"Ljava/lang/Object;",
|
|
"T6:",
|
|
"Ljava/lang/Object;",
|
|
"T7:",
|
|
"Ljava/lang/Object;",
|
|
"T8:",
|
|
"Ljava/lang/Object;",
|
|
"T9:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lrx/functions/Func9<",
|
|
"TT1;TT2;TT3;TT4;TT5;TT6;TT7;TT8;TT9;TR;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic $channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
.field final synthetic $me:Lcom/discord/models/domain/ModelUser;
|
|
|
|
.field final synthetic $user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
.field final synthetic this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1;Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelChannel;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;->this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1;
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;->$me:Lcom/discord/models/domain/ModelUser;
|
|
|
|
iput-object p3, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;->$user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
iput-object p4, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;->$channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final call(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/lang/Boolean;Ljava/lang/Integer;Lcom/discord/widgets/user/ModelRichPresence;Lcom/discord/models/domain/ModelGuild;Ljava/lang/Integer;Lcom/discord/utilities/streams/StreamContext;)Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel;
|
|
.locals 24
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Lcom/discord/models/domain/ModelGuildMember$Computed;",
|
|
">;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Lcom/discord/models/domain/ModelGuildRole;",
|
|
">;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelVoice$State;",
|
|
">;",
|
|
"Ljava/lang/Boolean;",
|
|
"Ljava/lang/Integer;",
|
|
"Lcom/discord/widgets/user/ModelRichPresence;",
|
|
"Lcom/discord/models/domain/ModelGuild;",
|
|
"Ljava/lang/Integer;",
|
|
"Lcom/discord/utilities/streams/StreamContext;",
|
|
")",
|
|
"Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel;"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move-object/from16 v8, p2
|
|
|
|
iget-object v2, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;->$me:Lcom/discord/models/domain/ModelUser;
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
move-result-wide v2
|
|
|
|
iget-object v4, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;->$user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
move-result-wide v4
|
|
|
|
const/4 v9, 0x1
|
|
|
|
const/4 v10, 0x0
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
if-nez v6, :cond_0
|
|
|
|
const/4 v13, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v13, 0x0
|
|
|
|
:goto_0
|
|
iget-object v2, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;->$user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
invoke-virtual {v2}, 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-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/discord/models/domain/ModelGuildMember$Computed;
|
|
|
|
iget-object v3, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;->$me:Lcom/discord/models/domain/ModelUser;
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
move-result-wide v3
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/discord/models/domain/ModelGuildMember$Computed;
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuildMember$Computed;->getRoles()Ljava/util/List;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
check-cast v3, Ljava/lang/Iterable;
|
|
|
|
new-instance v4, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
check-cast v4, Ljava/util/Collection;
|
|
|
|
invoke-interface {v3}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v3
|
|
|
|
:cond_1
|
|
:goto_1
|
|
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Ljava/lang/Long;
|
|
|
|
invoke-interface {v8, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
invoke-interface {v4, v5}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
check-cast v4, Ljava/util/List;
|
|
|
|
check-cast v4, Ljava/lang/Iterable;
|
|
|
|
invoke-static {v4}, Lkotlin/a/m;->p(Ljava/lang/Iterable;)Ljava/util/List;
|
|
|
|
move-result-object v3
|
|
|
|
if-nez v3, :cond_4
|
|
|
|
:cond_3
|
|
sget-object v3, Lkotlin/a/y;->bjT:Lkotlin/a/y;
|
|
|
|
check-cast v3, Ljava/util/List;
|
|
|
|
:cond_4
|
|
move-object/from16 v19, v3
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuildMember$Computed;->getNick()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
move-object/from16 v20, v4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
move-object/from16 v20, v3
|
|
|
|
:goto_2
|
|
if-eqz v2, :cond_7
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
if-nez p7, :cond_6
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
sget-object v3, Lcom/discord/utilities/permissions/ManageUserContext;->Companion:Lcom/discord/utilities/permissions/ManageUserContext$Companion;
|
|
|
|
iget-object v4, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;->$me:Lcom/discord/models/domain/ModelUser;
|
|
|
|
iget-object v5, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;->$user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGuildMember$Computed;->getRoles()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v6, "memberMe.roles"
|
|
|
|
invoke-static {v1, v6}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
move-object v6, v1
|
|
|
|
check-cast v6, Ljava/util/Collection;
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuildMember$Computed;->getRoles()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "member.roles"
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
move-object v7, v1
|
|
|
|
check-cast v7, Ljava/util/Collection;
|
|
|
|
const-string v1, "guildRoles"
|
|
|
|
invoke-static {v8, v1}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
move-object v1, v3
|
|
|
|
move-object/from16 v2, p7
|
|
|
|
move-object v3, v4
|
|
|
|
move-object v4, v5
|
|
|
|
move-object v5, v6
|
|
|
|
move-object v6, v7
|
|
|
|
move-object/from16 v7, p8
|
|
|
|
move-object/from16 v8, p2
|
|
|
|
invoke-virtual/range {v1 .. v8}, Lcom/discord/utilities/permissions/ManageUserContext$Companion;->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
|
|
|
|
move-object/from16 v22, v1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
:goto_3
|
|
move-object/from16 v22, v3
|
|
|
|
:goto_4
|
|
iget-object v1, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;->this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1;
|
|
|
|
iget-wide v1, v1, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1;->$userId:J
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v1
|
|
|
|
move-object/from16 v2, p3
|
|
|
|
invoke-interface {v2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
move-object/from16 v17, v1
|
|
|
|
check-cast v17, Lcom/discord/models/domain/ModelVoice$State;
|
|
|
|
iget-object v1, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;->$channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getOwnerId()J
|
|
|
|
move-result-wide v1
|
|
|
|
iget-object v3, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;->$me:Lcom/discord/models/domain/ModelUser;
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
move-result-wide v3
|
|
|
|
cmp-long v5, v1, v3
|
|
|
|
if-nez v5, :cond_8
|
|
|
|
const/4 v14, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_8
|
|
const/4 v14, 0x0
|
|
|
|
:goto_5
|
|
new-instance v1, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel;
|
|
|
|
iget-object v12, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;->$user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
const-string v2, "muted"
|
|
|
|
move-object/from16 v3, p4
|
|
|
|
invoke-static {v3, v2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual/range {p4 .. p4}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v15
|
|
|
|
const-string v2, "outputVolume"
|
|
|
|
move-object/from16 v3, p5
|
|
|
|
invoke-static {v3, v2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual/range {p5 .. p5}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v16
|
|
|
|
iget-object v2, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;->$channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
move-object v11, v1
|
|
|
|
move-object/from16 v18, p6
|
|
|
|
move-object/from16 v21, v2
|
|
|
|
move-object/from16 v23, p9
|
|
|
|
invoke-direct/range {v11 .. v23}, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel;-><init>(Lcom/discord/models/domain/ModelUser;ZZZILcom/discord/models/domain/ModelVoice$State;Lcom/discord/widgets/user/ModelRichPresence;Ljava/util/List;Ljava/lang/String;Lcom/discord/models/domain/ModelChannel;Lcom/discord/utilities/permissions/ManageUserContext;Lcom/discord/utilities/streams/StreamContext;)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public final bridge synthetic call(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Ljava/util/Map;
|
|
|
|
check-cast p2, Ljava/util/Map;
|
|
|
|
check-cast p3, Ljava/util/Map;
|
|
|
|
check-cast p4, Ljava/lang/Boolean;
|
|
|
|
check-cast p5, Ljava/lang/Integer;
|
|
|
|
check-cast p6, Lcom/discord/widgets/user/ModelRichPresence;
|
|
|
|
check-cast p7, Lcom/discord/models/domain/ModelGuild;
|
|
|
|
check-cast p8, Ljava/lang/Integer;
|
|
|
|
check-cast p9, Lcom/discord/utilities/streams/StreamContext;
|
|
|
|
invoke-virtual/range {p0 .. p9}, Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel$Companion$get$1$1;->call(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/lang/Boolean;Ljava/lang/Integer;Lcom/discord/widgets/user/ModelRichPresence;Lcom/discord/models/domain/ModelGuild;Ljava/lang/Integer;Lcom/discord/utilities/streams/StreamContext;)Lcom/discord/widgets/user/usersheet/WidgetUserSheetModel;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|