335 lines
8.8 KiB
Smali
335 lines
8.8 KiB
Smali
.class public final Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3;
|
|
.super Lj0/n/c/i;
|
|
.source "StoreMessagesLoader.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function4;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/stores/StoreMessagesLoader;->tryLoadMessages(JZZZLjava/lang/Long;Ljava/lang/Long;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lj0/n/c/i;",
|
|
"Lkotlin/jvm/functions/Function4<",
|
|
"Ljava/lang/Long;",
|
|
"Ljava/lang/Long;",
|
|
"Ljava/lang/Long;",
|
|
"Ljava/lang/Long;",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Lcom/discord/stores/StoreMessagesLoader;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/stores/StoreMessagesLoader;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3;->this$0:Lcom/discord/stores/StoreMessagesLoader;
|
|
|
|
const/4 p1, 0x4
|
|
|
|
invoke-direct {p0, p1}, Lj0/n/c/i;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic invoke$default(Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3;JLjava/lang/Long;Ljava/lang/Long;Ljava/lang/Long;ILjava/lang/Object;)V
|
|
.locals 7
|
|
|
|
and-int/lit8 p7, p6, 0x2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p7, :cond_0
|
|
|
|
move-object v4, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v4, p3
|
|
|
|
:goto_0
|
|
and-int/lit8 p3, p6, 0x4
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
move-object v5, v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-object v5, p4
|
|
|
|
:goto_1
|
|
and-int/lit8 p3, p6, 0x8
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
move-object v6, v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move-object v6, p5
|
|
|
|
:goto_2
|
|
move-object v1, p0
|
|
|
|
move-wide v2, p1
|
|
|
|
invoke-virtual/range {v1 .. v6}, Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3;->invoke(JLjava/lang/Long;Ljava/lang/Long;Ljava/lang/Long;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 6
|
|
|
|
check-cast p1, Ljava/lang/Number;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Number;->longValue()J
|
|
|
|
move-result-wide v1
|
|
|
|
move-object v3, p2
|
|
|
|
check-cast v3, Ljava/lang/Long;
|
|
|
|
move-object v4, p3
|
|
|
|
check-cast v4, Ljava/lang/Long;
|
|
|
|
move-object v5, p4
|
|
|
|
check-cast v5, Ljava/lang/Long;
|
|
|
|
move-object v0, p0
|
|
|
|
invoke-virtual/range {v0 .. v5}, Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3;->invoke(JLjava/lang/Long;Ljava/lang/Long;Ljava/lang/Long;)V
|
|
|
|
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final declared-synchronized invoke(JLjava/lang/Long;Ljava/lang/Long;Ljava/lang/Long;)V
|
|
.locals 10
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3;->this$0:Lcom/discord/stores/StoreMessagesLoader;
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3$1;->INSTANCE:Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3$1;
|
|
|
|
invoke-static {v0, p1, p2, v1}, Lcom/discord/stores/StoreMessagesLoader;->access$channelLoadedStateUpdate(Lcom/discord/stores/StoreMessagesLoader;JLkotlin/jvm/functions/Function1;)V
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p3}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v2
|
|
|
|
cmp-long v4, v2, v0
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const-wide/16 v0, 0x0
|
|
|
|
if-nez p3, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
invoke-virtual {p3}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v2
|
|
|
|
cmp-long v4, v2, v0
|
|
|
|
if-nez v4, :cond_3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
:goto_1
|
|
if-nez p3, :cond_4
|
|
|
|
:goto_2
|
|
sget-object v0, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApi()Lcom/discord/utilities/rest/RestAPI;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3;->this$0:Lcom/discord/stores/StoreMessagesLoader;
|
|
|
|
invoke-static {v0}, Lcom/discord/stores/StoreMessagesLoader;->access$getMessageRequestSize$p(Lcom/discord/stores/StoreMessagesLoader;)I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v6
|
|
|
|
move-wide v2, p1
|
|
|
|
move-object v4, p4
|
|
|
|
move-object v5, p5
|
|
|
|
invoke-virtual/range {v1 .. v6}, Lcom/discord/utilities/rest/RestAPI;->getChannelMessages(JLjava/lang/Long;Ljava/lang/Long;Ljava/lang/Integer;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
sget-object v0, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApi()Lcom/discord/utilities/rest/RestAPI;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3;->this$0:Lcom/discord/stores/StoreMessagesLoader;
|
|
|
|
invoke-static {v0}, Lcom/discord/stores/StoreMessagesLoader;->access$getMessageRequestSize$p(Lcom/discord/stores/StoreMessagesLoader;)I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {p3}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v5
|
|
|
|
move-wide v2, p1
|
|
|
|
invoke-virtual/range {v1 .. v6}, Lcom/discord/utilities/rest/RestAPI;->getChannelMessagesAround(JIJ)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_3
|
|
const/4 v1, 0x0
|
|
|
|
const-string v2, "it"
|
|
|
|
invoke-static {v0, v2}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {v0, v1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->restSubscribeOn(Lrx/Observable;Z)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "messagesRequest\n \u2026s.restSubscribeOn(false))"
|
|
|
|
invoke-static {v0, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v0, Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3$2;
|
|
|
|
move-object v3, v0
|
|
|
|
move-object v4, p0
|
|
|
|
move-wide v5, p1
|
|
|
|
move-object v7, p3
|
|
|
|
move-object v8, p4
|
|
|
|
move-object v9, p5
|
|
|
|
invoke-direct/range {v3 .. v9}, Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3$2;-><init>(Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3;JLjava/lang/Long;Ljava/lang/Long;Ljava/lang/Long;)V
|
|
|
|
iget-object p3, p0, Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3;->this$0:Lcom/discord/stores/StoreMessagesLoader;
|
|
|
|
invoke-virtual {p3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object p3
|
|
|
|
new-instance p4, Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3$3;
|
|
|
|
invoke-direct {p4, p0, p1, p2}, Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3$3;-><init>(Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3;J)V
|
|
|
|
new-instance v5, Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3$4;
|
|
|
|
invoke-direct {v5, p0}, Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3$4;-><init>(Lcom/discord/stores/StoreMessagesLoader$tryLoadMessages$3;)V
|
|
|
|
if-eqz p3, :cond_5
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const-string p1, "observable"
|
|
|
|
invoke-static {v2, p1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p3}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
const-string p1, "errorClass.simpleName"
|
|
|
|
invoke-static {v4, p1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v7, Lf/a/b/o0;
|
|
|
|
invoke-direct {v7, p4}, Lf/a/b/o0;-><init>(Lrx/functions/Action1;)V
|
|
|
|
sget-object v8, Lf/a/b/a0;->d:Lf/a/b/a0;
|
|
|
|
move-object v6, v0
|
|
|
|
invoke-static/range {v2 .. v8}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe(Lrx/Observable;Landroid/content/Context;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:cond_5
|
|
:try_start_1
|
|
const-string p1, "errorClass"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|