168 lines
5.4 KiB
Smali
168 lines
5.4 KiB
Smali
.class public final Lcom/discord/widgets/chat/MessageManager$sendMessage$messageResultObservable$1;
|
|
.super Ljava/lang/Object;
|
|
.source "MessageManager.kt"
|
|
|
|
# interfaces
|
|
.implements Lr0/k/b;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/chat/MessageManager;->sendMessage(Ljava/lang/String;Ljava/util/List;Lcom/discord/widgets/chat/MessageManager$AttachmentsRequest;Ljava/lang/Long;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;Lkotlin/jvm/functions/Function1;)Z
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lr0/k/b<",
|
|
"TT;",
|
|
"Lrx/Observable<",
|
|
"+TR;>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $attachments:Ljava/util/List;
|
|
|
|
.field public final synthetic $content:Ljava/lang/String;
|
|
|
|
.field public final synthetic $me:Lcom/discord/models/domain/ModelUser$Me;
|
|
|
|
.field public final synthetic $mentions:Ljava/util/List;
|
|
|
|
.field public final synthetic $nonNullChannelId:J
|
|
|
|
.field public final synthetic this$0:Lcom/discord/widgets/chat/MessageManager;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/widgets/chat/MessageManager;JLcom/discord/models/domain/ModelUser$Me;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/MessageManager$sendMessage$messageResultObservable$1;->this$0:Lcom/discord/widgets/chat/MessageManager;
|
|
|
|
iput-wide p2, p0, Lcom/discord/widgets/chat/MessageManager$sendMessage$messageResultObservable$1;->$nonNullChannelId:J
|
|
|
|
iput-object p4, p0, Lcom/discord/widgets/chat/MessageManager$sendMessage$messageResultObservable$1;->$me:Lcom/discord/models/domain/ModelUser$Me;
|
|
|
|
iput-object p5, p0, Lcom/discord/widgets/chat/MessageManager$sendMessage$messageResultObservable$1;->$content:Ljava/lang/String;
|
|
|
|
iput-object p6, p0, Lcom/discord/widgets/chat/MessageManager$sendMessage$messageResultObservable$1;->$mentions:Ljava/util/List;
|
|
|
|
iput-object p7, p0, Lcom/discord/widgets/chat/MessageManager$sendMessage$messageResultObservable$1;->$attachments:Ljava/util/List;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/chat/MessageManager$sendMessage$messageResultObservable$1;->call(Ljava/lang/Integer;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final call(Ljava/lang/Integer;)Lrx/Observable;
|
|
.locals 12
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Integer;",
|
|
")",
|
|
"Lrx/Observable<",
|
|
"+",
|
|
"Lcom/discord/utilities/messagesend/MessageResult;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v0, v1}, Lj0/o/c/h;->compare(II)I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_0
|
|
if-eqz v1, :cond_1
|
|
|
|
new-instance v0, Lcom/discord/utilities/messagesend/MessageResult$Slowmode;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p1
|
|
|
|
int-to-long v1, p1
|
|
|
|
const-wide/16 v3, 0x3e8
|
|
|
|
mul-long v1, v1, v3
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/discord/utilities/messagesend/MessageResult$Slowmode;-><init>(J)V
|
|
|
|
new-instance p1, Lr0/l/e/j;
|
|
|
|
invoke-direct {p1, v0}, Lr0/l/e/j;-><init>(Ljava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object p1, p0, Lcom/discord/widgets/chat/MessageManager$sendMessage$messageResultObservable$1;->this$0:Lcom/discord/widgets/chat/MessageManager;
|
|
|
|
invoke-static {p1}, Lcom/discord/widgets/chat/MessageManager;->access$getStoreMessages$p(Lcom/discord/widgets/chat/MessageManager;)Lcom/discord/stores/StoreMessages;
|
|
|
|
move-result-object v0
|
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/chat/MessageManager$sendMessage$messageResultObservable$1;->$nonNullChannelId:J
|
|
|
|
iget-object v3, p0, Lcom/discord/widgets/chat/MessageManager$sendMessage$messageResultObservable$1;->$me:Lcom/discord/models/domain/ModelUser$Me;
|
|
|
|
iget-object v4, p0, Lcom/discord/widgets/chat/MessageManager$sendMessage$messageResultObservable$1;->$content:Ljava/lang/String;
|
|
|
|
iget-object v5, p0, Lcom/discord/widgets/chat/MessageManager$sendMessage$messageResultObservable$1;->$mentions:Ljava/util/List;
|
|
|
|
iget-object v6, p0, Lcom/discord/widgets/chat/MessageManager$sendMessage$messageResultObservable$1;->$attachments:Ljava/util/List;
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/16 v10, 0xe0
|
|
|
|
const/4 v11, 0x0
|
|
|
|
invoke-static/range {v0 .. v11}, Lcom/discord/stores/StoreMessages;->sendMessage$default(Lcom/discord/stores/StoreMessages;JLcom/discord/models/domain/ModelUser;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Lcom/discord/models/domain/ModelApplication;Lcom/discord/models/domain/activity/ModelActivity;Lcom/discord/models/domain/ModelMessage$Activity;ILjava/lang/Object;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
return-object p1
|
|
.end method
|