apkfuckery/com.discord/smali/com/discord/stores/StoreMessageAck$postPendingAck$1.smali
2019-04-25 12:39:51 +02:00

158 lines
5 KiB
Smali

.class final Lcom/discord/stores/StoreMessageAck$postPendingAck$1;
.super Lkotlin/jvm/internal/k;
.source "StoreMessageAck.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/stores/StoreMessageAck;->postPendingAck(Lrx/Observable;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/k;",
"Lkotlin/jvm/functions/Function1<",
"Lcom/discord/stores/StoreMessageAck$PendingAck;",
"Lkotlin/Unit;",
">;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/discord/stores/StoreMessageAck;
# direct methods
.method constructor <init>(Lcom/discord/stores/StoreMessageAck;)V
.locals 0
iput-object p1, p0, Lcom/discord/stores/StoreMessageAck$postPendingAck$1;->this$0:Lcom/discord/stores/StoreMessageAck;
const/4 p1, 0x1
invoke-direct {p0, p1}, Lkotlin/jvm/internal/k;-><init>(I)V
return-void
.end method
# virtual methods
.method public final bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Lcom/discord/stores/StoreMessageAck$PendingAck;
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreMessageAck$postPendingAck$1;->invoke(Lcom/discord/stores/StoreMessageAck$PendingAck;)V
sget-object p1, Lkotlin/Unit;->bcz:Lkotlin/Unit;
return-object p1
.end method
.method public final invoke(Lcom/discord/stores/StoreMessageAck$PendingAck;)V
.locals 12
const-string v0, "pendingAck"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p1}, Lcom/discord/stores/StoreMessageAck$PendingAck;->component1()J
move-result-wide v0
invoke-virtual {p1}, Lcom/discord/stores/StoreMessageAck$PendingAck;->component2()Lcom/discord/stores/StoreMessageAck$Ack;
move-result-object p1
iget-object v2, p0, Lcom/discord/stores/StoreMessageAck$postPendingAck$1;->this$0:Lcom/discord/stores/StoreMessageAck;
invoke-static {v2}, Lcom/discord/stores/StoreMessageAck;->access$getStream$p(Lcom/discord/stores/StoreMessageAck;)Lcom/discord/stores/StoreStream;
move-result-object v2
new-instance v3, Lcom/discord/stores/StoreMessageAck$postPendingAck$1$1;
invoke-direct {v3, p0, v0, v1, p1}, Lcom/discord/stores/StoreMessageAck$postPendingAck$1$1;-><init>(Lcom/discord/stores/StoreMessageAck$postPendingAck$1;JLcom/discord/stores/StoreMessageAck$Ack;)V
check-cast v3, Lrx/functions/Action0;
invoke-virtual {v2, v3}, Lcom/discord/stores/StoreStream;->schedule(Lrx/functions/Action0;)V
sget-object v2, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
invoke-virtual {v2}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApi()Lcom/discord/utilities/rest/RestAPI;
move-result-object v2
invoke-virtual {p1}, Lcom/discord/stores/StoreMessageAck$Ack;->getMessageId()J
move-result-wide v3
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p1
new-instance v3, Lcom/discord/restapi/RestAPIParams$EmptyBody;
invoke-direct {v3}, Lcom/discord/restapi/RestAPIParams$EmptyBody;-><init>()V
invoke-virtual {v2, v0, v1, p1, v3}, Lcom/discord/utilities/rest/RestAPI;->postChannelMessagesAck(JLjava/lang/Long;Lcom/discord/restapi/RestAPIParams$EmptyBody;)Lrx/Observable;
move-result-object p1
const/4 v2, 0x0
const/4 v3, 0x1
const/4 v4, 0x0
invoke-static {p1, v2, v3, v4}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->restSubscribeOn$default(Lrx/Observable;ZILjava/lang/Object;)Lrx/Observable;
move-result-object p1
new-instance v2, Lcom/discord/stores/StoreMessageAck$postPendingAck$1$2;
invoke-direct {v2, v0, v1}, Lcom/discord/stores/StoreMessageAck$postPendingAck$1$2;-><init>(J)V
check-cast v2, Lrx/functions/Action1;
invoke-virtual {p1, v2}, Lrx/Observable;->a(Lrx/functions/Action1;)Lrx/Observable;
move-result-object v3
const-string p1, "RestAPI\n .api\n \u2026r.ackMessage(channelId) }"
invoke-static {v3, p1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
const-string v5, "REST: ack"
sget-object p1, Lcom/discord/stores/StoreMessageAck$postPendingAck$1$3;->INSTANCE:Lcom/discord/stores/StoreMessageAck$postPendingAck$1$3;
move-object v7, p1
check-cast v7, Lkotlin/jvm/functions/Function1;
const/4 v6, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/16 v10, 0x35
const/4 v11, 0x0
invoke-static/range {v3 .. v11}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Landroid/content/Context;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)V
return-void
.end method