2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/stores/StoreReadStates$computeUnreadMarker$4;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "StoreReadStates.kt"
|
|
|
|
|
|
|
|
# interfaces
|
2020-07-23 01:06:17 +00:00
|
|
|
.implements Lr0/k/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/stores/StoreReadStates;->computeUnreadMarker()V
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"R:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Ljava/lang/Object;",
|
2020-07-23 01:06:17 +00:00
|
|
|
"Lr0/k/b<",
|
2020-05-17 12:40:10 +00:00
|
|
|
"TT;",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"+TR;>;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final synthetic this$0:Lcom/discord/stores/StoreReadStates;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/discord/stores/StoreReadStates;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreReadStates$computeUnreadMarker$4;->this$0:Lcom/discord/stores/StoreReadStates;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/models/application/Unread$Marker;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreReadStates$computeUnreadMarker$4;->call(Lcom/discord/models/application/Unread$Marker;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final call(Lcom/discord/models/application/Unread$Marker;)Lrx/Observable;
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lcom/discord/models/application/Unread$Marker;",
|
|
|
|
")",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lcom/discord/models/application/Unread;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getMessages()Lcom/discord/stores/StoreMessages;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/application/Unread$Marker;->getChannelId()J
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/discord/stores/StoreMessages;->get(J)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/stores/StoreReadStates$computeUnreadMarker$4$1;
|
|
|
|
|
|
|
|
invoke-direct {v1, p1}, Lcom/discord/stores/StoreReadStates$computeUnreadMarker$4$1;-><init>(Lcom/discord/models/application/Unread$Marker;)V
|
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->E(Lr0/k/b;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreReadStates$computeUnreadMarker$4;->this$0:Lcom/discord/stores/StoreReadStates;
|
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/discord/stores/StoreReadStates;->access$getMarkAsRead$p(Lcom/discord/stores/StoreReadStates;)Lrx/subjects/SerializedSubject;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreReadStates$computeUnreadMarker$4$2;->INSTANCE:Lcom/discord/stores/StoreReadStates$computeUnreadMarker$4$2;
|
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->w(Lr0/k/b;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-virtual {p1, v0}, Lrx/Observable;->W(Lrx/Observable;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/stores/StoreReadStates$computeUnreadMarker$4$3;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/stores/StoreReadStates$computeUnreadMarker$4$3;-><init>(Lcom/discord/stores/StoreReadStates$computeUnreadMarker$4;)V
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
sget-object v1, Lr0/k/a;->a:Lr0/k/a$b;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
new-instance v2, Lr0/l/e/a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {v2, v1, v1, v0}, Lr0/l/e/a;-><init>(Lrx/functions/Action1;Lrx/functions/Action1;Lrx/functions/Action0;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
new-instance v0, Lr0/l/a/n;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {v0, p1, v2}, Lr0/l/a/n;-><init>(Lrx/Observable;Lr0/g;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-static {v0}, Lrx/Observable;->d0(Lrx/Observable$a;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "marker"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|