581 lines
21 KiB
Smali
581 lines
21 KiB
Smali
.class public final Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;
|
|
.super Ljava/lang/Object;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;,
|
|
Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$RequestState;,
|
|
Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final Companion:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$Companion;
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final RESULTS_ERROR:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;
|
|
|
|
.field private static final RESULTS_LOADING:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;
|
|
|
|
|
|
# instance fields
|
|
.field private final channelId:J
|
|
|
|
.field private final messageId:J
|
|
|
|
.field private final targetedEmojiSubject:Lrx/subjects/Subject;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/subjects/Subject<",
|
|
"Lcom/discord/models/domain/ModelMessageReaction$Emoji;",
|
|
"Lcom/discord/models/domain/ModelMessageReaction$Emoji;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
new-instance v0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->Companion:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$Companion;
|
|
|
|
new-instance v0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;
|
|
|
|
sget-object v1, Lkotlin/a/x;->bPB:Lkotlin/a/x;
|
|
|
|
check-cast v1, Ljava/util/List;
|
|
|
|
sget-object v2, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$RequestState;->LOADING:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$RequestState;
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;-><init>(Ljava/util/List;Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$RequestState;)V
|
|
|
|
sput-object v0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->RESULTS_LOADING:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;
|
|
|
|
new-instance v0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;
|
|
|
|
sget-object v1, Lkotlin/a/x;->bPB:Lkotlin/a/x;
|
|
|
|
check-cast v1, Ljava/util/List;
|
|
|
|
sget-object v2, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$RequestState;->ERROR:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$RequestState;
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;-><init>(Ljava/util/List;Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$RequestState;)V
|
|
|
|
sput-object v0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->RESULTS_ERROR:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(JJ)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-wide p1, p0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->channelId:J
|
|
|
|
iput-wide p3, p0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->messageId:J
|
|
|
|
new-instance p1, Lrx/subjects/SerializedSubject;
|
|
|
|
invoke-static {}, Lrx/subjects/BehaviorSubject;->Mk()Lrx/subjects/BehaviorSubject;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lrx/subjects/Subject;
|
|
|
|
invoke-direct {p1, p2}, Lrx/subjects/SerializedSubject;-><init>(Lrx/subjects/Subject;)V
|
|
|
|
check-cast p1, Lrx/subjects/Subject;
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->targetedEmojiSubject:Lrx/subjects/Subject;
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->targetedEmojiSubject:Lrx/subjects/Subject;
|
|
|
|
const/4 p2, 0x0
|
|
|
|
invoke-virtual {p1, p2}, Lrx/subjects/Subject;->onNext(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$Companion()Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$Companion;
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->Companion:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$Companion;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final synthetic access$createModel(Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;Ljava/util/List;Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;Lcom/discord/models/domain/ModelMessageReaction$Emoji;)Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModel;
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->createModel(Ljava/util/List;Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;Lcom/discord/models/domain/ModelMessageReaction$Emoji;)Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModel;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getRESULTS_ERROR$cp()Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->RESULTS_ERROR:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getTargetedEmojiSubject$p(Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;)Lrx/subjects/Subject;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->targetedEmojiSubject:Lrx/subjects/Subject;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getUsersForReaction(Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;Lcom/discord/models/domain/ModelMessageReaction$Emoji;)Lrx/Observable;
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->getUsersForReaction(Lcom/discord/models/domain/ModelMessageReaction$Emoji;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final createModel(Ljava/util/List;Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;Lcom/discord/models/domain/ModelMessageReaction$Emoji;)Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModel;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelMessageReaction;",
|
|
">;",
|
|
"Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;",
|
|
"Lcom/discord/models/domain/ModelMessageReaction$Emoji;",
|
|
")",
|
|
"Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModel;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
check-cast p1, Ljava/lang/Iterable;
|
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
move-object v2, v0
|
|
|
|
check-cast v2, Ljava/util/Collection;
|
|
|
|
check-cast v1, Lcom/discord/models/domain/ModelMessageReaction;
|
|
|
|
new-instance v3, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsEmojisAdapter$ReactionEmojiItem;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelMessageReaction;->getEmoji()Lcom/discord/models/domain/ModelMessageReaction$Emoji;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v4, p3}, Lkotlin/jvm/internal/j;->x(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v4
|
|
|
|
invoke-direct {v3, v1, v4}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsEmojisAdapter$ReactionEmojiItem;-><init>(Lcom/discord/models/domain/ModelMessageReaction;Z)V
|
|
|
|
invoke-interface {v2, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-virtual {p2}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;->getRequestState()Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$RequestState;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object p3, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$WhenMappings;->$EnumSwitchMapping$0:[I
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$RequestState;->ordinal()I
|
|
|
|
move-result p1
|
|
|
|
aget p1, p3, p1
|
|
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
new-instance p1, Lkotlin/k;
|
|
|
|
invoke-direct {p1}, Lkotlin/k;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:pswitch_0
|
|
new-instance p1, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$ErrorItem;
|
|
|
|
invoke-direct {p1}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$ErrorItem;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_1
|
|
new-instance p1, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$LoadingItem;
|
|
|
|
invoke-direct {p1}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$LoadingItem;-><init>()V
|
|
|
|
:goto_1
|
|
invoke-static {p1}, Lkotlin/a/l;->by(Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_3
|
|
|
|
:pswitch_2
|
|
invoke-virtual {p2}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;->getUsers()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/Iterable;
|
|
|
|
new-instance p2, Ljava/util/ArrayList;
|
|
|
|
const/16 p3, 0xa
|
|
|
|
invoke-static {p1, p3}, Lkotlin/a/l;->a(Ljava/lang/Iterable;I)I
|
|
|
|
move-result p3
|
|
|
|
invoke-direct {p2, p3}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
check-cast p2, Ljava/util/Collection;
|
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_2
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object p3
|
|
|
|
check-cast p3, Lcom/discord/models/domain/ModelUser;
|
|
|
|
new-instance v1, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$ReactionUserItem;
|
|
|
|
invoke-direct {v1, p3}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$ReactionUserItem;-><init>(Lcom/discord/models/domain/ModelUser;)V
|
|
|
|
invoke-interface {p2, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
check-cast p2, Ljava/util/List;
|
|
|
|
check-cast p2, Ljava/lang/Iterable;
|
|
|
|
invoke-static {p2}, Lkotlin/a/l;->h(Ljava/lang/Iterable;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_3
|
|
new-instance p2, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModel;
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
const/4 p3, 0x0
|
|
|
|
invoke-direct {p2, v0, p1, p3}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModel;-><init>(Ljava/util/List;Ljava/util/List;Z)V
|
|
|
|
return-object p2
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method private final getUsersForReaction(Lcom/discord/models/domain/ModelMessageReaction$Emoji;)Lrx/Observable;
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/models/domain/ModelMessageReaction$Emoji;",
|
|
")",
|
|
"Lrx/Observable<",
|
|
"Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelMessageReaction$Emoji;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelMessageReaction$Emoji;->getId()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const-string v0, ":"
|
|
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
:cond_0
|
|
const-string p1, ""
|
|
|
|
:cond_1
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
sget-object p1, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->RESULTS_LOADING:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$UsersRequest;
|
|
|
|
invoke-static {p1}, Lrx/Observable;->ca(Ljava/lang/Object;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
const-wide/16 v0, 0x1f4
|
|
|
|
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-static {v0, v1, v2}, Lrx/Observable;->g(JLjava/util/concurrent/TimeUnit;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApi()Lcom/discord/utilities/rest/RestAPI;
|
|
|
|
move-result-object v2
|
|
|
|
iget-wide v3, p0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->channelId:J
|
|
|
|
iget-wide v5, p0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->messageId:J
|
|
|
|
const/16 v1, 0x64
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual/range {v2 .. v8}, Lcom/discord/utilities/rest/RestAPI;->getReactionUsers(JJLjava/lang/String;Ljava/lang/Integer;)Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {}, Lcom/discord/app/g;->dw()Lrx/Observable$Transformer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Lrx/Observable;->a(Lrx/Observable$Transformer;)Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$getUsersForReaction$1;
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getUsers()Lcom/discord/stores/StoreUser;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$getUsersForReaction$1;-><init>(Lcom/discord/stores/StoreUser;)V
|
|
|
|
check-cast v2, Lkotlin/jvm/functions/Function1;
|
|
|
|
new-instance v3, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$sam$rx_functions_Action1$0;
|
|
|
|
invoke-direct {v3, v2}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$sam$rx_functions_Action1$0;-><init>(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
check-cast v3, Lrx/functions/Action1;
|
|
|
|
invoke-virtual {v1, v3}, Lrx/Observable;->a(Lrx/functions/Action1;)Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$getUsersForReaction$2;->INSTANCE:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$getUsersForReaction$2;
|
|
|
|
check-cast v2, Lrx/functions/b;
|
|
|
|
invoke-virtual {v1, v2}, Lrx/Observable;->e(Lrx/functions/b;)Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$getUsersForReaction$3;->INSTANCE:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$getUsersForReaction$3;
|
|
|
|
check-cast v2, Lrx/functions/Func2;
|
|
|
|
invoke-static {v0, v1, v2}, Lrx/Observable;->b(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p1, v0}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "Observable.concat(\n \u2026stState }\n )\n )"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final get()Lrx/Observable;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lrx/Observable<",
|
|
"Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModel;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getMessages()Lcom/discord/stores/StoreMessages;
|
|
|
|
move-result-object v0
|
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->channelId:J
|
|
|
|
iget-wide v3, p0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->messageId:J
|
|
|
|
invoke-virtual {v0, v1, v2, v3, v4}, Lcom/discord/stores/StoreMessages;->get(JJ)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$get$1;->INSTANCE:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$get$1;
|
|
|
|
check-cast v1, Lrx/functions/b;
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->e(Lrx/functions/b;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$get$2;->INSTANCE:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$get$2;
|
|
|
|
check-cast v1, Lrx/functions/b;
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->e(Lrx/functions/b;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lrx/Observable;->KI()Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$get$3;
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider$get$3;-><init>(Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;)V
|
|
|
|
check-cast v1, Lrx/functions/b;
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->g(Lrx/functions/b;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {}, Lcom/discord/app/g;->dz()Lrx/Observable$Transformer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->a(Lrx/Observable$Transformer;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "StoreStream\n .get\u2026onDistinctUntilChanged())"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getChannelId()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->channelId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final getMessageId()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->messageId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final onEmojiTargeted(Lcom/discord/models/domain/ModelMessageReaction$Emoji;)V
|
|
.locals 1
|
|
|
|
const-string v0, "emoji"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsModelProvider;->targetedEmojiSubject:Lrx/subjects/Subject;
|
|
|
|
invoke-virtual {v0, p1}, Lrx/subjects/Subject;->onNext(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|