2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/stores/StoreChannels;
|
2020-10-13 20:45:03 +00:00
|
|
|
.super Lcom/discord/stores/StoreV2;
|
2020-05-17 12:40:10 +00:00
|
|
|
.source "StoreChannels.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/stores/StoreChannels$Companion;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final Companion:Lcom/discord/stores/StoreChannels$Companion;
|
|
|
|
|
|
|
|
.field public static final PRIVATE_CHANNELS_ID:J
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final channelNames:Ljava/util/Map;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public final channelNamesSubject:Lrx/subjects/BehaviorSubject;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lrx/subjects/BehaviorSubject<",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.field public final channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
|
|
">;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.field public final channelsByIdSubject:Lrx/subjects/BehaviorSubject;
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-07-08 16:44:49 +00:00
|
|
|
"Lrx/subjects/BehaviorSubject<",
|
2020-05-17 12:40:10 +00:00
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
|
|
">;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.field public final channelsCache:Lcom/discord/utilities/persister/Persister;
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-07-08 16:44:49 +00:00
|
|
|
"Lcom/discord/utilities/persister/Persister<",
|
|
|
|
"Ljava/util/List<",
|
2020-05-17 12:40:10 +00:00
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
|
|
">;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public final dispatcher:Lcom/discord/stores/Dispatcher;
|
|
|
|
|
|
|
|
.field public isDirty:Z
|
|
|
|
|
|
|
|
.field public final stream:Lcom/discord/stores/StoreStream;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/stores/StoreChannels$Companion;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/stores/StoreChannels$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/stores/StoreChannels;->Companion:Lcom/discord/stores/StoreChannels$Companion;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Lcom/discord/stores/StoreStream;Lcom/discord/stores/Dispatcher;)V
|
|
|
|
.locals 2
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "stream"
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "dispatcher"
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p2, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/stores/StoreV2;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreChannels;->stream:Lcom/discord/stores/StoreStream;
|
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/discord/stores/StoreChannels;->dispatcher:Lcom/discord/stores/Dispatcher;
|
|
|
|
|
|
|
|
new-instance p1, Ljava/util/HashMap;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance p1, Ljava/util/HashMap;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreChannels;->channelNames:Ljava/util/Map;
|
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/utilities/persister/Persister;
|
|
|
|
|
|
|
|
new-instance p2, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
const-string v0, "STORE_CHANNELS_V21"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0, p2}, Lcom/discord/utilities/persister/Persister;-><init>(Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreChannels;->channelsCache:Lcom/discord/utilities/persister/Persister;
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
sget-object p1, Lc0/i/m;->d:Lc0/i/m;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1}, Lrx/subjects/BehaviorSubject;->h0(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "BehaviorSubject.create(emptyMap())"
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, p2}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreChannels;->channelsByIdSubject:Lrx/subjects/BehaviorSubject;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
sget-object p1, Lc0/i/m;->d:Lc0/i/m;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1}, Lrx/subjects/BehaviorSubject;->h0(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, p2}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreChannels;->channelNamesSubject:Lrx/subjects/BehaviorSubject;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
|
|
|
|
invoke-interface {p1, p2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public static synthetic observeChannelsForGuild$default(Lcom/discord/stores/StoreChannels;JLjava/lang/Integer;ILjava/lang/Object;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
and-int/lit8 p4, p4, 0x2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz p4, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const/4 p3, 0x0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0, p1, p2, p3}, Lcom/discord/stores/StoreChannels;->observeChannelsForGuild(JLjava/lang/Integer;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
# virtual methods
|
|
|
|
.method public final getChannel$app_productionDiscordExternalRelease(J)Lcom/discord/models/domain/ModelChannel;
|
|
|
|
.locals 3
|
|
|
|
.annotation runtime Lcom/discord/stores/StoreThread;
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v1, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v1, Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v1, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v2, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v1, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast p1, Lcom/discord/models/domain/ModelChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_1
|
|
|
|
const/4 p1, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-object p1
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final getChannelNames$app_productionDiscordExternalRelease()Ljava/util/Map;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelNames:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final getChannelsByGuild$app_productionDiscordExternalRelease()Ljava/util/Map;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
|
|
">;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final getChannelsForGuild$app_productionDiscordExternalRelease(J)Ljava/util/Map;
|
|
|
|
.locals 1
|
|
|
|
.annotation runtime Lcom/discord/stores/StoreThread;
|
|
|
|
.end annotation
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-10-13 20:45:03 +00:00
|
|
|
"(J)",
|
|
|
|
"Ljava/util/Map<",
|
2020-05-17 12:40:10 +00:00
|
|
|
"Ljava/lang/Long;",
|
2020-10-13 20:45:03 +00:00
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
2020-05-17 12:40:10 +00:00
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast p1, Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-object p1
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final handleChannelCreated(Lcom/discord/models/domain/ModelChannel;)V
|
|
|
|
.locals 9
|
|
|
|
.annotation runtime Lcom/discord/stores/StoreThread;
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v0, "channel"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->isManaged()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->isPrivate()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-nez v0, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getGuildId()Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
goto :goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_1
|
|
|
|
const-wide/16 v0, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:goto_0
|
|
|
|
const-string v1, "if (!channel.isPrivate) \u2026 else PRIVATE_CHANNELS_ID"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v4, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v4, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-nez v6, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v6, Ljava/util/HashMap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v6}, Ljava/util/HashMap;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v4, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_2
|
|
|
|
check-cast v6, Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v6, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v4, Lcom/discord/models/domain/ModelChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, v4}, Lc0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const/4 v7, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
xor-int/2addr v5, v7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v5, :cond_4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v4, :cond_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v5
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v8, Lcom/discord/models/domain/ModelChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelChannel;->getRecipients()Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v8, p1, v0, v1, v4}, Lcom/discord/models/domain/ModelChannel;-><init>(Lcom/discord/models/domain/ModelChannel;JLjava/util/List;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v6, v5, v8}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
goto :goto_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_3
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v5, Lcom/discord/models/domain/ModelChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v5, p1, v0, v1}, Lcom/discord/models/domain/ModelChannel;-><init>(Lcom/discord/models/domain/ModelChannel;J)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v6, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
:goto_1
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelNames:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v0, :cond_5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelNames:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v0, :cond_5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelNames:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v0, Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getName()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
xor-int/2addr v0, v7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v0, :cond_6
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelNames:Ljava/util/Map;
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getName()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v2, "channel.name"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, v2}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0, v1, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_6
|
|
|
|
iput-boolean v7, p0, Lcom/discord/stores/StoreChannels;->isDirty:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final handleChannelDeleted(Lcom/discord/models/domain/ModelChannel;)V
|
|
|
|
.locals 6
|
|
|
|
.annotation runtime Lcom/discord/stores/StoreThread;
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v0, "channel"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->isPrivate()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-nez v0, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getGuildId()Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
goto :goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_0
|
|
|
|
const-wide/16 v0, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:goto_0
|
|
|
|
const-string v1, "if (!channel.isPrivate) \u2026 else PRIVATE_CHANNELS_ID"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v4
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {p1, v4}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const/4 v4, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz p1, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {p1, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1}, Lc0/n/c/j;->checkNotNull(Ljava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast p1, Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {p1, v5}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz p1, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1}, Lc0/n/c/j;->checkNotNull(Ljava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast p1, Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {p1, v0}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iput-boolean v4, p0, Lcom/discord/stores/StoreChannels;->isDirty:Z
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget-object p1, p0, Lcom/discord/stores/StoreChannels;->channelNames:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {p1, v0}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz p1, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/stores/StoreChannels;->channelNames:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {p1, v0}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iput-boolean v4, p0, Lcom/discord/stores/StoreChannels;->isDirty:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_2
|
|
|
|
return-void
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final handleConnectionOpen(Lcom/discord/models/domain/ModelPayload;)V
|
|
|
|
.locals 9
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation runtime Lcom/discord/stores/StoreThread;
|
|
|
|
.end annotation
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v0, "payload"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Map;->clear()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelNames:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Map;->clear()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-wide/16 v1, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-nez v2, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v2, Ljava/util/HashMap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v2}, Ljava/util/HashMap;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_0
|
|
|
|
check-cast v2, Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelPayload;->getPrivateChannels()Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v1, "payload.privateChannels"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_1
|
|
|
|
:goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const/4 v4, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v3, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-object v5, v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v5, Lcom/discord/models/domain/ModelChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v6, "it"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v5, v6}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v5}, Lcom/discord/models/domain/ModelChannel;->isManaged()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
xor-int/2addr v4, v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v4, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v1, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
goto :goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_2
|
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:goto_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v1, :cond_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v1, Lcom/discord/models/domain/ModelChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v3, "privateChannel"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v1, v3}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v2, v3, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelPayload;->getGuilds()Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v0, "payload.guilds"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_4
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v0, :cond_6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v0, Lcom/discord/models/domain/ModelGuild;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v2, "guild"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v2}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-nez v3, :cond_5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v3, Ljava/util/HashMap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v3}, Ljava/util/HashMap;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v1, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_5
|
|
|
|
check-cast v3, Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelGuild;->getChannels()Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v2, "guild.channels"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v1, v2}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:goto_2
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v2, :cond_4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v2, Lcom/discord/models/domain/ModelChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v5, "channel"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v2, v5}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v6, Lcom/discord/models/domain/ModelChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v6, v2, v7, v8}, Lcom/discord/models/domain/ModelChannel;-><init>(Lcom/discord/models/domain/ModelChannel;J)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v3, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
goto :goto_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_6
|
|
|
|
iget-object p1, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_7
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v0, :cond_8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v0, Ljava/util/Map$Entry;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v0, Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/stores/StoreChannels;->channelNames:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:goto_3
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v2, :cond_7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v2, Ljava/util/Map$Entry;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v2, Lcom/discord/models/domain/ModelChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelChannel;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-interface {v1, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto :goto_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_8
|
2020-09-16 23:45:23 +00:00
|
|
|
iput-boolean v4, p0, Lcom/discord/stores/StoreChannels;->isDirty:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final handleGroupDMRecipient(Lcom/discord/models/domain/ModelChannel$Recipient;Z)V
|
|
|
|
.locals 13
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation runtime Lcom/discord/stores/StoreThread;
|
|
|
|
.end annotation
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v0, "recipient"
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v0, Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v0, :cond_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel$Recipient;->getChannelId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-object v4, v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v4, Lcom/discord/models/domain/ModelChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v4, :cond_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelChannel;->getGuildId()Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v3, "existing.guildId"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v3}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v0, "recipient.user"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz p2, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance p2, Ljava/util/ArrayList;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelChannel;->getRecipients()Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {p2, v3}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel$Recipient;->getUser()Lcom/discord/models/domain/ModelUser;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v3, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {p2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_0
|
|
|
|
move-object v7, p2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
goto :goto_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_1
|
|
|
|
new-instance p2, Ljava/util/ArrayList;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelChannel;->getRecipients()Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_2
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v5, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v5, Lcom/discord/models/domain/ModelUser;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v6, "existingRecipient"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v5, v6}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v5}, Lcom/discord/models/domain/ModelUser;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel$Recipient;->getUser()Lcom/discord/models/domain/ModelUser;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v8, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v8}, Lcom/discord/models/domain/ModelUser;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v11
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
cmp-long v8, v6, v11
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v8, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {p2, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
goto :goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:goto_1
|
|
|
|
new-instance p2, Lcom/discord/models/domain/ModelChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-object v3, p2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-wide v5, v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-object v8, p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct/range {v3 .. v8}, Lcom/discord/models/domain/ModelChannel;-><init>(Lcom/discord/models/domain/ModelChannel;JLjava/util/List;Lcom/discord/models/domain/ModelChannel$Recipient;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1}, Lc0/n/c/j;->checkNotNull(Ljava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast p1, Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {p1, v0, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const/4 p1, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iput-boolean p1, p0, Lcom/discord/stores/StoreChannels;->isDirty:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_3
|
|
|
|
return-void
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final handleGuildAdd(Lcom/discord/models/domain/ModelGuild;)V
|
|
|
|
.locals 7
|
|
|
|
.annotation runtime Lcom/discord/stores/StoreThread;
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v0, "guild"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-nez v2, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v2, Ljava/util/HashMap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v2}, Ljava/util/HashMap;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_0
|
|
|
|
check-cast v2, Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelGuild;->getChannels()Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v1, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v1, Lcom/discord/models/domain/ModelChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v3, "channel"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v1, v3}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v4, Lcom/discord/models/domain/ModelChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v4, v1, v5, v6}, Lcom/discord/models/domain/ModelChannel;-><init>(Lcom/discord/models/domain/ModelChannel;J)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v2, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v3, p0, Lcom/discord/stores/StoreChannels;->channelNames:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getName()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v5, "channel.name"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v1, v5}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v3, v4, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
goto :goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_1
|
|
|
|
const/4 p1, 0x1
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iput-boolean p1, p0, Lcom/discord/stores/StoreChannels;->isDirty:Z
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final handleGuildRemove(Lcom/discord/models/domain/ModelGuild;)V
|
|
|
|
.locals 4
|
|
|
|
.annotation runtime Lcom/discord/stores/StoreThread;
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v0, "guild"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v2, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-interface {v2, v3}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v2, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v0, Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:goto_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v1, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v1, Ljava/lang/Number;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v1}, Ljava/lang/Number;->longValue()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v3, p0, Lcom/discord/stores/StoreChannels;->channelNames:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v3, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
goto :goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_1
|
|
|
|
const/4 p1, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iput-boolean p1, p0, Lcom/discord/stores/StoreChannels;->isDirty:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final init()V
|
|
|
|
.locals 9
|
|
|
|
.annotation runtime Lcom/discord/stores/StoreThread;
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelsCache:Lcom/discord/utilities/persister/Persister;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/persister/Persister;->get()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v0, Ljava/lang/Iterable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0}, Lc0/i/f;->filterNotNull(Ljava/lang/Iterable;)Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v2, Ljava/util/LinkedHashMap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v2}, Ljava/util/LinkedHashMap;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:goto_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v3, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-object v4, v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v4, Lcom/discord/models/domain/ModelChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelChannel;->getGuildId()Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v2, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-nez v5, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v5, Ljava/util/ArrayList;
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v2, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_0
|
|
|
|
check-cast v5, Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v5, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
goto :goto_0
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_1
|
|
|
|
new-instance v0, Ljava/util/LinkedHashMap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v2}, Ljava/util/Map;->size()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v3}, Lf/h/a/f/f/n/f;->mapCapacity(I)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v0, v3}, Ljava/util/LinkedHashMap;-><init>(I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v2}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:goto_1
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v3, :cond_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v3, Ljava/util/Map$Entry;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v3}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v3, Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v5, Ljava/util/HashMap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v5}, Ljava/util/HashMap;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v3}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:goto_2
|
|
|
|
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
if-eqz v6, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-object v7, v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
check-cast v7, Lcom/discord/models/domain/ModelChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v7}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-wide v7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v7, v8}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-interface {v5, v7, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
goto :goto_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_2
|
|
|
|
invoke-interface {v0, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
goto :goto_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
:cond_3
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/Map;->putAll(Ljava/util/Map;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const/4 v0, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iput-boolean v0, p0, Lcom/discord/stores/StoreChannels;->isDirty:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final observeAllChannels()Lrx/Observable;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
|
|
">;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelsByIdSubject:Lrx/subjects/BehaviorSubject;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final observeChannel(J)Lrx/Observable;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(J)",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
|
|
">;"
|
|
|
|
}
|
2020-05-17 12:40:10 +00:00
|
|
|
.end annotation
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/StoreChannels;->observeAllChannels()Lrx/Observable;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v1, Lcom/discord/stores/StoreChannels$observeChannel$1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v1, p1, p2}, Lcom/discord/stores/StoreChannels$observeChannel$1;-><init>(J)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->D(Ll0/k/b;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lrx/Observable;->q()Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string p2, "observeAllChannels()\n \u2026 .distinctUntilChanged()"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, p2}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-object p1
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final observeChannelsForGuild(J)Lrx/Observable;
|
|
|
|
.locals 6
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(J)",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
|
|
">;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const/4 v3, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const/4 v4, 0x2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const/4 v5, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-object v0, p0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-wide v1, p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static/range {v0 .. v5}, Lcom/discord/stores/StoreChannels;->observeChannelsForGuild$default(Lcom/discord/stores/StoreChannels;JLjava/lang/Integer;ILjava/lang/Object;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-object p1
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final observeChannelsForGuild(JLjava/lang/Integer;)Lrx/Observable;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(J",
|
|
|
|
"Ljava/lang/Integer;",
|
|
|
|
")",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
|
|
">;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/StoreChannels;->observeAllChannels()Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v1, Lcom/discord/stores/StoreChannels$observeChannelsForGuild$1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v1, p1, p2, p3}, Lcom/discord/stores/StoreChannels$observeChannelsForGuild$1;-><init>(JLjava/lang/Integer;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->U(Ll0/k/b;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string p2, "observeAllChannels()\n \u2026st(guildChannels)\n }"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, p2}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lrx/Observable;->q()Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string p2, "observeAllChannels()\n \u2026 .distinctUntilChanged()"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, p2}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-object p1
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final observeDMs()Lrx/Observable;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
|
|
">;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/StoreChannels;->observePrivateChannels()Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
sget-object v1, Lcom/discord/stores/StoreChannels$observeDMs$1;->INSTANCE:Lcom/discord/stores/StoreChannels$observeDMs$1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->D(Ll0/k/b;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v1, "observePrivateChannels()\u2026annel -> channel.isDM } }"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final observeDirectShareCandidates(Landroid/content/Context;)Lrx/Observable;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroid/content/Context;",
|
|
|
|
")",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
|
|
">;>;"
|
|
|
|
}
|
2020-05-17 12:40:10 +00:00
|
|
|
.end annotation
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v0, "context"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/StoreChannels;->observeAllChannels()Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
sget-object v1, Lcom/discord/stores/StoreChannels$observeDirectShareCandidates$1;->INSTANCE:Lcom/discord/stores/StoreChannels$observeDirectShareCandidates$1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->v(Ll0/k/b;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v1, Lcom/discord/stores/StoreChannels$observeDirectShareCandidates$2;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v1, p1}, Lcom/discord/stores/StoreChannels$observeDirectShareCandidates$2;-><init>(Landroid/content/Context;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->D(Ll0/k/b;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v0, "observeAllChannels()\n \u2026ity(context))\n }"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-object p1
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final observeIds()Lrx/Observable;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
">;>;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/StoreChannels;->observeAllChannels()Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
sget-object v1, Lcom/discord/stores/StoreChannels$observeIds$1;->INSTANCE:Lcom/discord/stores/StoreChannels$observeIds$1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->D(Ll0/k/b;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v1, "observeAllChannels()\n \u2026 }\n }"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0}, Lrx/Observable;->q()Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v1, "observeAllChannels()\n \u2026 .distinctUntilChanged()"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final observeNames()Lrx/Observable;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelNamesSubject:Lrx/subjects/BehaviorSubject;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0}, Lrx/Observable;->q()Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v1, "channelNamesSubject\n \u2026 .distinctUntilChanged()"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final observeNames(Ljava/util/Collection;)Lrx/Observable;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/util/Collection<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
">;)",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v0, "channelIds"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/StoreChannels;->observeNames()Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1}, Lf/a/b/s;->a(Ljava/util/Collection;)Lrx/Observable$c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0, p1}, Lrx/Observable;->k(Lrx/Observable$c;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v0, "observeNames().compose(A\u2026rs.filterMap(channelIds))"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-object p1
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final observePrivateChannel(J)Lrx/Observable;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(J)",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/StoreChannels;->observePrivateChannels()Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v1, Lcom/discord/stores/StoreChannels$observePrivateChannel$1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v1, p1, p2}, Lcom/discord/stores/StoreChannels$observePrivateChannel$1;-><init>(J)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->D(Ll0/k/b;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p1}, Lrx/Observable;->q()Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string p2, "observePrivateChannels()\u2026 .distinctUntilChanged()"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, p2}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-object p1
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final observePrivateChannels()Lrx/Observable;
|
|
|
|
.locals 6
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
|
|
">;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-wide/16 v1, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const/4 v3, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const/4 v4, 0x2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const/4 v5, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-object v0, p0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static/range {v0 .. v5}, Lcom/discord/stores/StoreChannels;->observeChannelsForGuild$default(Lcom/discord/stores/StoreChannels;JLjava/lang/Integer;ILjava/lang/Object;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onDispatchEnded()V
|
|
|
|
.locals 9
|
|
|
|
.annotation runtime Lcom/discord/stores/StoreThread;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lcom/discord/stores/StoreChannels;->isDirty:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Ljava/util/Map;
|
|
|
|
|
|
|
|
invoke-interface {v2}, Ljava/util/Map;->values()Ljava/util/Collection;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-10-03 03:03:24 +00:00
|
|
|
invoke-static {v1, v2}, Lf/h/a/f/f/n/f;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->stream:Lcom/discord/stores/StoreStream;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream;->getLurking$app_productionDiscordExternalRelease()Lcom/discord/stores/StoreLurking;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreLurking;->getLurkingGuildIds$app_productionDiscordExternalRelease()Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v2, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
check-cast v3, Ljava/lang/Number;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Number;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide v5
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v3, p0, Lcom/discord/stores/StoreChannels;->channelsByGuild:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-interface {v3, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
check-cast v3, Ljava/util/Map;
|
|
|
|
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
|
|
|
|
invoke-interface {v3}, Ljava/util/Map;->keySet()Ljava/util/Set;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {v2, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
2020-10-03 03:03:24 +00:00
|
|
|
invoke-static {v2}, Lf/h/a/f/f/n/f;->flatten(Ljava/lang/Iterable;)Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/stores/StoreChannels;->channelsCache:Lcom/discord/utilities/persister/Persister;
|
|
|
|
|
|
|
|
new-instance v3, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
:goto_2
|
|
|
|
invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
if-eqz v6, :cond_6
|
|
|
|
|
|
|
|
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
move-object v7, v6
|
|
|
|
|
|
|
|
check-cast v7, Lcom/discord/models/domain/ModelChannel;
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v7
|
|
|
|
|
|
|
|
invoke-static {v7, v8}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object v8, v0
|
|
|
|
|
|
|
|
check-cast v8, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-virtual {v8, v7}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
if-nez v7, :cond_5
|
|
|
|
|
|
|
|
invoke-interface {v3, v6}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const/4 v0, 0x2
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
invoke-static {v2, v3, v5, v0, v4}, Lcom/discord/utilities/persister/Persister;->set$default(Lcom/discord/utilities/persister/Persister;Ljava/lang/Object;ZILjava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelsByIdSubject:Lrx/subjects/BehaviorSubject;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v2, 0xa
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-03 03:03:24 +00:00
|
|
|
invoke-static {v1, v2}, Lf/h/a/f/f/n/f;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-03 03:03:24 +00:00
|
|
|
invoke-static {v2}, Lf/h/a/f/f/n/f;->mapCapacity(I)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v3, 0x10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-ge v2, v3, :cond_7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v2, 0x10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_7
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v3, Ljava/util/LinkedHashMap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v3, v2}, Ljava/util/LinkedHashMap;-><init>(I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v2, :cond_8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object v4, v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
check-cast v4, Lcom/discord/models/domain/ModelChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-wide v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-interface {v3, v4, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_8
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v0, v3}, Lrx/subjects/BehaviorSubject;->onNext(Ljava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->channelNamesSubject:Lrx/subjects/BehaviorSubject;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v1, Ljava/util/HashMap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v2, p0, Lcom/discord/stores/StoreChannels;->channelNames:Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v1, v2}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/subjects/BehaviorSubject;->onNext(Ljava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
iput-boolean v5, p0, Lcom/discord/stores/StoreChannels;->isDirty:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method public final onGroupCreated(Lcom/discord/models/domain/ModelChannel;)V
|
|
|
|
.locals 2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v0, "channel"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChannels;->dispatcher:Lcom/discord/stores/Dispatcher;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
new-instance v1, Lcom/discord/stores/StoreChannels$onGroupCreated$1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/stores/StoreChannels$onGroupCreated$1;-><init>(Lcom/discord/stores/StoreChannels;Lcom/discord/models/domain/ModelChannel;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/stores/Dispatcher;->schedule(Lkotlin/jvm/functions/Function0;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
return-void
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|