290 lines
7.9 KiB
Smali
290 lines
7.9 KiB
Smali
|
.class public Lcom/discord/stores/StoreMessagesMostRecent;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "StoreMessagesMostRecent.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Lcom/discord/stores/StoreMessagesMostRecent$Cache;,
|
||
|
Lcom/discord/stores/StoreMessagesMostRecent$Listeners;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic access$lambda$0(JLjava/util/Map;)Ljava/lang/Long;
|
||
|
.locals 2
|
||
|
|
||
|
invoke-static {p0, p1, p2}, Lcom/discord/stores/StoreMessagesMostRecent;->lambda$get$355(JLjava/util/Map;)Ljava/lang/Long;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic access$lambda$1(Ljava/util/Collection;)Lrx/Observable;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-static {p0}, Lcom/discord/stores/StoreMessagesMostRecent;->get(Ljava/util/Collection;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic access$lambda$2(Ljava/util/Collection;Ljava/util/Map;)Lrx/Observable;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-static {p0, p1}, Lcom/discord/stores/StoreMessagesMostRecent;->lambda$get$357(Ljava/util/Collection;Ljava/util/Map;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic access$lambda$3(Ljava/util/Collection;Ljava/util/Map$Entry;)Ljava/lang/Boolean;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-static {p0, p1}, Lcom/discord/stores/StoreMessagesMostRecent;->lambda$null$356(Ljava/util/Collection;Ljava/util/Map$Entry;)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static get()Lrx/Observable;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Lrx/Observable",
|
||
|
"<",
|
||
|
"Ljava/util/Map",
|
||
|
"<",
|
||
|
"Ljava/lang/Long;",
|
||
|
"Ljava/lang/Long;",
|
||
|
">;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
invoke-static {}, Lcom/discord/stores/StoreMessagesMostRecent$Cache;->getMessageIds()Lcom/discord/utilities/mg_preference/MGPreferenceRx;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/utilities/mg_preference/MGPreferenceRx;->get()Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static get(J)Lrx/Observable;
|
||
|
.locals 2
|
||
|
.param p0, "channelId" # J
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(J)",
|
||
|
"Lrx/Observable",
|
||
|
"<",
|
||
|
"Ljava/lang/Long;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
invoke-static {}, Lcom/discord/stores/StoreMessagesMostRecent;->get()Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {p0, p1}, Lcom/discord/stores/StoreMessagesMostRecent$$Lambda$1;->lambdaFactory$(J)Lrx/functions/Func1;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lrx/Observable;->map(Lrx/functions/Func1;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lrx/Observable;->distinctUntilChanged()Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static get(Ljava/util/Collection;)Lrx/Observable;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/Collection",
|
||
|
"<",
|
||
|
"Ljava/lang/Long;",
|
||
|
">;)",
|
||
|
"Lrx/Observable",
|
||
|
"<",
|
||
|
"Ljava/util/Map",
|
||
|
"<",
|
||
|
"Ljava/lang/Long;",
|
||
|
"Ljava/lang/Long;",
|
||
|
">;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.local p0, "channelIds":Ljava/util/Collection;, "Ljava/util/Collection<Ljava/lang/Long;>;"
|
||
|
invoke-static {}, Lcom/discord/stores/StoreMessagesMostRecent;->get()Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {p0}, Lcom/discord/stores/StoreMessagesMostRecent$$Lambda$4;->lambdaFactory$(Ljava/util/Collection;)Lrx/functions/Func1;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lrx/Observable;->switchMap(Lrx/functions/Func1;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {}, Lcom/discord/utilities/app/AppTransformers;->computationDistinctUntilChanged()Lrx/Observable$Transformer;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static getForChannels(Ljava/util/Collection;)Lrx/Observable;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/Collection",
|
||
|
"<",
|
||
|
"Lcom/discord/models/domain/ModelChannel;",
|
||
|
">;)",
|
||
|
"Lrx/Observable",
|
||
|
"<",
|
||
|
"Ljava/util/Map",
|
||
|
"<",
|
||
|
"Ljava/lang/Long;",
|
||
|
"Ljava/lang/Long;",
|
||
|
">;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.local p0, "channels":Ljava/util/Collection;, "Ljava/util/Collection<Lcom/discord/models/domain/ModelChannel;>;"
|
||
|
invoke-static {p0}, Lrx/Observable;->from(Ljava/lang/Iterable;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {}, Lcom/discord/stores/StoreMessagesMostRecent$$Lambda$2;->lambdaFactory$()Lrx/functions/Func1;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lrx/Observable;->map(Lrx/functions/Func1;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lrx/Observable;->toList()Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {}, Lcom/discord/stores/StoreMessagesMostRecent$$Lambda$3;->lambdaFactory$()Lrx/functions/Func1;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lrx/Observable;->switchMap(Lrx/functions/Func1;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private static synthetic lambda$get$355(JLjava/util/Map;)Ljava/lang/Long;
|
||
|
.locals 2
|
||
|
.param p2, "mostRecent" # Ljava/util/Map;
|
||
|
|
||
|
.prologue
|
||
|
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {p2, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Ljava/lang/Long;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private static synthetic lambda$get$357(Ljava/util/Collection;Ljava/util/Map;)Lrx/Observable;
|
||
|
.locals 3
|
||
|
.param p1, "mostRecentMessageIds" # Ljava/util/Map;
|
||
|
|
||
|
.prologue
|
||
|
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Lrx/Observable;->from(Ljava/lang/Iterable;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {p0}, Lcom/discord/stores/StoreMessagesMostRecent$$Lambda$5;->lambdaFactory$(Ljava/util/Collection;)Lrx/functions/Func1;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lrx/Observable;->filter(Lrx/functions/Func1;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {}, Lcom/discord/stores/StoreMessagesMostRecent$$Lambda$6;->lambdaFactory$()Lrx/functions/Func1;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-static {}, Lcom/discord/stores/StoreMessagesMostRecent$$Lambda$7;->lambdaFactory$()Lrx/functions/Func1;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v0, v1, v2}, Lrx/Observable;->toMap(Lrx/functions/Func1;Lrx/functions/Func1;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private static synthetic lambda$null$356(Ljava/util/Collection;Ljava/util/Map$Entry;)Ljava/lang/Boolean;
|
||
|
.locals 1
|
||
|
.param p1, "mostRecentMessageIdsEntry" # Ljava/util/Map$Entry;
|
||
|
|
||
|
.prologue
|
||
|
invoke-interface {p1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {p0, v0}, Ljava/util/Collection;->contains(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|