2019-05-10 23:01:33 +00:00
|
|
|
.class final Lcom/discord/widgets/chat/list/WidgetChatListActions$Model$Companion$get$2;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "WidgetChatListActions.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lrx/functions/b;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/widgets/chat/list/WidgetChatListActions$Model$Companion;->get(JJLjava/lang/CharSequence;I)Lrx/Observable;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x18
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"R:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"Lrx/functions/b<",
|
|
|
|
"TT;",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"+TR;>;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field final synthetic $channelId:J
|
|
|
|
|
|
|
|
.field final synthetic $messageContent:Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
.field final synthetic $type:I
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method constructor <init>(JLjava/lang/CharSequence;I)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-wide p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListActions$Model$Companion$get$2;->$channelId:J
|
|
|
|
|
|
|
|
iput-object p3, p0, Lcom/discord/widgets/chat/list/WidgetChatListActions$Model$Companion$get$2;->$messageContent:Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
iput p4, p0, Lcom/discord/widgets/chat/list/WidgetChatListActions$Model$Companion$get$2;->$type:I
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListActions$Model$Companion$get$2;->call(Lkotlin/Pair;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final call(Lkotlin/Pair;)Lrx/Observable;
|
|
|
|
.locals 20
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/Pair<",
|
|
|
|
"+",
|
|
|
|
"Lcom/discord/models/domain/ModelMessage;",
|
|
|
|
"+",
|
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
|
|
">;)",
|
|
|
|
"Lrx/Observable<",
|
2019-05-16 22:41:35 +00:00
|
|
|
"+",
|
2019-05-10 23:01:33 +00:00
|
|
|
"Lcom/discord/widgets/chat/list/WidgetChatListActions$Model;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
|
|
|
|
iget-object v2, v1, Lkotlin/Pair;->first:Ljava/lang/Object;
|
|
|
|
|
|
|
|
check-cast v2, Lcom/discord/models/domain/ModelMessage;
|
|
|
|
|
|
|
|
iget-object v1, v1, Lkotlin/Pair;->second:Ljava/lang/Object;
|
|
|
|
|
|
|
|
check-cast v1, Lcom/discord/models/domain/ModelChannel;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessage;->getAuthor()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v3
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
2019-05-16 22:41:35 +00:00
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-static {v1}, Lrx/Observable;->bA(Ljava/lang/Object;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_1
|
2019-05-10 23:01:33 +00:00
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getPermissions()Lcom/discord/stores/StorePermissions;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
iget-wide v6, v0, Lcom/discord/widgets/chat/list/WidgetChatListActions$Model$Companion$get$2;->$channelId:J
|
|
|
|
|
|
|
|
invoke-virtual {v5, v6, v7}, Lcom/discord/stores/StorePermissions;->getForChannel(J)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getUsers()Lcom/discord/stores/StoreUser;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
const-string v6, "StoreStream\n .getUsers()"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {v5, v6}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-05-10 23:01:33 +00:00
|
|
|
|
|
|
|
invoke-virtual {v5}, Lcom/discord/stores/StoreUser;->getMe()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getGuildId()J
|
|
|
|
|
|
|
|
move-result-wide v6
|
|
|
|
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v10
|
|
|
|
|
|
|
|
invoke-static {v10}, Lkotlin/a/l;->aV(Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v10
|
|
|
|
|
|
|
|
check-cast v10, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v6, v7, v10}, Lcom/discord/stores/StoreGuilds;->getComputed(JLjava/util/Collection;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
new-instance v6, Lcom/discord/widgets/chat/list/WidgetChatListActions$Model$Companion$get$2$1;
|
|
|
|
|
|
|
|
invoke-direct {v6, v3, v4}, Lcom/discord/widgets/chat/list/WidgetChatListActions$Model$Companion$get$2$1;-><init>(J)V
|
|
|
|
|
|
|
|
check-cast v6, Lrx/functions/b;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v6}, Lrx/Observable;->e(Lrx/functions/b;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v10
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getGuildId()J
|
|
|
|
|
|
|
|
move-result-wide v4
|
|
|
|
|
|
|
|
invoke-virtual {v3, v4, v5}, Lcom/discord/stores/StoreGuilds;->get(J)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
sget-object v4, Lcom/discord/widgets/chat/list/WidgetChatListActions$Model$Companion$get$2$2;->INSTANCE:Lcom/discord/widgets/chat/list/WidgetChatListActions$Model$Companion$get$2$2;
|
|
|
|
|
|
|
|
check-cast v4, Lrx/functions/b;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v4}, Lrx/Observable;->e(Lrx/functions/b;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2019-05-28 22:16:26 +00:00
|
|
|
invoke-virtual {v3}, Lrx/Observable;->Fo()Lrx/Observable;
|
2019-05-10 23:01:33 +00:00
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getEmojis()Lcom/discord/stores/StoreEmoji;
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getGuildId()J
|
|
|
|
|
|
|
|
move-result-wide v13
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v15
|
|
|
|
|
|
|
|
const/16 v17, 0x0
|
|
|
|
|
|
|
|
const/16 v18, 0x4
|
|
|
|
|
|
|
|
const/16 v19, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v12 .. v19}, Lcom/discord/stores/StoreEmoji;->getEmojiSet$default(Lcom/discord/stores/StoreEmoji;JJZILjava/lang/Object;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
|
|
|
new-instance v3, Lcom/discord/widgets/chat/list/WidgetChatListActions$Model$Companion$get$2$3;
|
|
|
|
|
|
|
|
invoke-direct {v3, v0, v2, v1}, Lcom/discord/widgets/chat/list/WidgetChatListActions$Model$Companion$get$2$3;-><init>(Lcom/discord/widgets/chat/list/WidgetChatListActions$Model$Companion$get$2;Lcom/discord/models/domain/ModelMessage;Lcom/discord/models/domain/ModelChannel;)V
|
|
|
|
|
|
|
|
move-object v13, v3
|
|
|
|
|
|
|
|
check-cast v13, Lrx/functions/Func5;
|
|
|
|
|
|
|
|
invoke-static/range {v8 .. v13}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func5;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
.end method
|