2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/models/application/Unread$Companion;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "Unread.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/models/application/Unread;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "Companion"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/models/application/Unread$Companion;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getTotalMessages(Lcom/discord/models/application/Unread$Companion;Lcom/discord/models/application/Unread$Marker;Ljava/util/List;)I
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/discord/models/application/Unread$Companion;->getTotalMessages(Lcom/discord/models/application/Unread$Marker;Ljava/util/List;)I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getTotalMessages(Lcom/discord/models/application/Unread$Marker;Ljava/util/List;)I
|
|
|
|
.locals 6
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lcom/discord/models/application/Unread$Marker;",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"+",
|
|
|
|
"Lcom/discord/models/domain/ModelMessage;",
|
|
|
|
">;)I"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-interface {p2}, Ljava/util/List;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/application/Unread$Marker;->getMessageId()Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_0
|
2020-11-10 18:07:11 +00:00
|
|
|
const-string v0, "$this$asReversed"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-10 18:07:11 +00:00
|
|
|
invoke-static {p2, v0}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-10 18:07:11 +00:00
|
|
|
new-instance v0, Ly/i/r;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-10 18:07:11 +00:00
|
|
|
invoke-direct {v0, p2}, Ly/i/r;-><init>(Ljava/util/List;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-11-10 18:07:11 +00:00
|
|
|
new-instance p2, Ly/i/c$a;
|
|
|
|
|
|
|
|
invoke-direct {p2, v0}, Ly/i/c$a;-><init>(Ly/i/c;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-11-10 18:07:11 +00:00
|
|
|
invoke-virtual {p2}, Ly/i/c$a;->hasNext()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-10 18:07:11 +00:00
|
|
|
move-result v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-10 18:07:11 +00:00
|
|
|
if-eqz v0, :cond_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-10 18:07:11 +00:00
|
|
|
invoke-virtual {p2}, Ly/i/c$a;->next()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-10 18:07:11 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-10 18:07:11 +00:00
|
|
|
check-cast v0, Lcom/discord/models/domain/ModelMessage;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-10 18:07:11 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelMessage;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/application/Unread$Marker;->getMessageId()Ljava/lang/Long;
|
|
|
|
|
2020-11-10 18:07:11 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-10 18:07:11 +00:00
|
|
|
if-nez v0, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2020-11-10 18:07:11 +00:00
|
|
|
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-wide v4
|
|
|
|
|
2020-11-10 18:07:11 +00:00
|
|
|
cmp-long v0, v2, v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-10 18:07:11 +00:00
|
|
|
if-nez v0, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
:goto_2
|
|
|
|
return v1
|
|
|
|
.end method
|