apkfuckery/com.discord/smali/com/discord/stores/StoreMessages$get$2.smali

133 lines
2.8 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public final Lcom/discord/stores/StoreMessages$get$2;
.super Ljava/lang/Object;
.source "StoreMessages.kt"
# interfaces
2020-09-10 21:23:57 +00:00
.implements Lt0/k/b;
2020-05-17 12:40:10 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
2020-08-04 06:02:43 +00:00
value = Lcom/discord/stores/StoreMessages;->get(JJ)Lrx/Observable;
2020-05-17 12:40:10 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
2020-08-04 06:02:43 +00:00
"<T:",
2020-05-17 12:40:10 +00:00
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
2020-09-10 21:23:57 +00:00
"Lt0/k/b<",
2020-09-09 19:21:20 +00:00
"Ljava/util/List<",
"+",
"Lcom/discord/models/domain/ModelMessage;",
">;",
"Lcom/discord/models/domain/ModelMessage;",
">;"
2020-05-17 12:40:10 +00:00
}
.end annotation
2020-08-04 06:02:43 +00:00
# instance fields
.field public final synthetic $messageId:J
2020-05-17 12:40:10 +00:00
# direct methods
2020-08-04 06:02:43 +00:00
.method public constructor <init>(J)V
.locals 0
2020-08-01 00:14:39 +00:00
2020-08-04 06:02:43 +00:00
iput-wide p1, p0, Lcom/discord/stores/StoreMessages$get$2;->$messageId:J
2020-08-03 21:00:21 +00:00
2020-08-04 06:02:43 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-05-17 12:40:10 +00:00
return-void
.end method
2020-08-04 06:02:43 +00:00
# virtual methods
.method public final call(Ljava/util/List;)Lcom/discord/models/domain/ModelMessage;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"+",
"Lcom/discord/models/domain/ModelMessage;",
">;)",
"Lcom/discord/models/domain/ModelMessage;"
}
.end annotation
2020-05-17 12:40:10 +00:00
2020-08-04 06:02:43 +00:00
const-string v0, "messages"
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-08-04 06:02:43 +00:00
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
2020-05-17 12:40:10 +00:00
2020-08-04 06:02:43 +00:00
move-result-object p1
2020-05-17 12:40:10 +00:00
2020-08-04 06:02:43 +00:00
:cond_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
2020-05-17 12:40:10 +00:00
2020-08-04 06:02:43 +00:00
move-result v0
2020-05-17 12:40:10 +00:00
2020-08-04 06:02:43 +00:00
if-eqz v0, :cond_2
2020-05-17 12:40:10 +00:00
2020-08-04 06:02:43 +00:00
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-08-04 06:02:43 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-08-04 06:02:43 +00:00
move-object v1, v0
2020-05-17 12:40:10 +00:00
2020-08-04 06:02:43 +00:00
check-cast v1, Lcom/discord/models/domain/ModelMessage;
2020-05-17 12:40:10 +00:00
2020-08-04 06:02:43 +00:00
invoke-virtual {v1}, Lcom/discord/models/domain/ModelMessage;->getId()J
2020-05-17 12:40:10 +00:00
2020-08-04 06:02:43 +00:00
move-result-wide v1
2020-07-31 02:11:25 +00:00
2020-08-04 06:02:43 +00:00
iget-wide v3, p0, Lcom/discord/stores/StoreMessages$get$2;->$messageId:J
2020-07-31 18:12:48 +00:00
2020-08-04 06:02:43 +00:00
cmp-long v5, v1, v3
2020-08-01 01:14:42 +00:00
2020-08-04 06:02:43 +00:00
if-nez v5, :cond_1
const/4 v1, 0x1
2020-05-17 12:40:10 +00:00
goto :goto_0
2020-08-04 06:02:43 +00:00
:cond_1
const/4 v1, 0x0
2020-05-17 12:40:10 +00:00
:goto_0
2020-08-04 06:02:43 +00:00
if-eqz v1, :cond_0
2020-05-17 12:40:10 +00:00
2020-08-04 06:02:43 +00:00
goto :goto_1
:cond_2
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
2020-08-04 06:02:43 +00:00
:goto_1
check-cast v0, Lcom/discord/models/domain/ModelMessage;
2020-08-01 01:14:42 +00:00
2020-08-04 06:02:43 +00:00
return-object v0
.end method
2020-07-31 02:11:25 +00:00
2020-08-04 06:02:43 +00:00
.method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Ljava/util/List;
2020-07-31 18:12:48 +00:00
2020-08-04 06:02:43 +00:00
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreMessages$get$2;->call(Ljava/util/List;)Lcom/discord/models/domain/ModelMessage;
2020-08-01 01:14:42 +00:00
2020-08-04 06:02:43 +00:00
move-result-object p1
return-object p1
2020-05-17 12:40:10 +00:00
.end method