366 lines
7.3 KiB
Smali
366 lines
7.3 KiB
Smali
|
.class public final Lcom/discord/models/domain/ModelReadState;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "ModelReadState.kt"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Lcom/discord/models/domain/ModelReadState$Parser;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public final channelId:J
|
||
|
|
||
|
.field public final lastMessageId:J
|
||
|
|
||
|
.field public final mentionCount:I
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(JJI)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput-wide p1, p0, Lcom/discord/models/domain/ModelReadState;->channelId:J
|
||
|
|
||
|
iput-wide p3, p0, Lcom/discord/models/domain/ModelReadState;->lastMessageId:J
|
||
|
|
||
|
iput p5, p0, Lcom/discord/models/domain/ModelReadState;->mentionCount:I
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(JJJJI)V
|
||
|
.locals 3
|
||
|
|
||
|
const-wide/16 v0, 0x0
|
||
|
|
||
|
cmp-long v2, p3, v0
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
move-wide p2, p3
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
move-wide p2, p1
|
||
|
|
||
|
:goto_0
|
||
|
cmp-long p1, p5, v0
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
move-wide p4, p5
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
move-wide p4, p7
|
||
|
|
||
|
:goto_1
|
||
|
move-object p1, p0
|
||
|
|
||
|
move p6, p9
|
||
|
|
||
|
invoke-direct/range {p1 .. p6}, Lcom/discord/models/domain/ModelReadState;-><init>(JJI)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public synthetic constructor <init>(JJJJIILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
.locals 13
|
||
|
|
||
|
and-int/lit8 v0, p10, 0x4
|
||
|
|
||
|
const-wide/16 v1, 0x0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
move-wide v8, v1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
move-wide/from16 v8, p5
|
||
|
|
||
|
:goto_0
|
||
|
and-int/lit8 v0, p10, 0x8
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
move-wide v10, v1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
move-wide/from16 v10, p7
|
||
|
|
||
|
:goto_1
|
||
|
move-object v3, p0
|
||
|
|
||
|
move-wide v4, p1
|
||
|
|
||
|
move-wide/from16 v6, p3
|
||
|
|
||
|
move/from16 v12, p9
|
||
|
|
||
|
invoke-direct/range {v3 .. v12}, Lcom/discord/models/domain/ModelReadState;-><init>(JJJJI)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public synthetic constructor <init>(JJJJILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct/range {p0 .. p9}, Lcom/discord/models/domain/ModelReadState;-><init>(JJJJI)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic copy$default(Lcom/discord/models/domain/ModelReadState;JJIILjava/lang/Object;)Lcom/discord/models/domain/ModelReadState;
|
||
|
.locals 6
|
||
|
|
||
|
and-int/lit8 p7, p6, 0x1
|
||
|
|
||
|
if-eqz p7, :cond_0
|
||
|
|
||
|
iget-wide p1, p0, Lcom/discord/models/domain/ModelReadState;->channelId:J
|
||
|
|
||
|
:cond_0
|
||
|
move-wide v1, p1
|
||
|
|
||
|
and-int/lit8 p1, p6, 0x2
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
iget-wide p3, p0, Lcom/discord/models/domain/ModelReadState;->lastMessageId:J
|
||
|
|
||
|
:cond_1
|
||
|
move-wide v3, p3
|
||
|
|
||
|
and-int/lit8 p1, p6, 0x4
|
||
|
|
||
|
if-eqz p1, :cond_2
|
||
|
|
||
|
iget p5, p0, Lcom/discord/models/domain/ModelReadState;->mentionCount:I
|
||
|
|
||
|
:cond_2
|
||
|
move v5, p5
|
||
|
|
||
|
move-object v0, p0
|
||
|
|
||
|
invoke-virtual/range {v0 .. v5}, Lcom/discord/models/domain/ModelReadState;->copy(JJI)Lcom/discord/models/domain/ModelReadState;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public final component1()J
|
||
|
.locals 2
|
||
|
|
||
|
iget-wide v0, p0, Lcom/discord/models/domain/ModelReadState;->channelId:J
|
||
|
|
||
|
return-wide v0
|
||
|
.end method
|
||
|
|
||
|
.method public final component2()J
|
||
|
.locals 2
|
||
|
|
||
|
iget-wide v0, p0, Lcom/discord/models/domain/ModelReadState;->lastMessageId:J
|
||
|
|
||
|
return-wide v0
|
||
|
.end method
|
||
|
|
||
|
.method public final component3()I
|
||
|
.locals 1
|
||
|
|
||
|
iget v0, p0, Lcom/discord/models/domain/ModelReadState;->mentionCount:I
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public final copy(JJI)Lcom/discord/models/domain/ModelReadState;
|
||
|
.locals 7
|
||
|
|
||
|
new-instance v6, Lcom/discord/models/domain/ModelReadState;
|
||
|
|
||
|
move-object v0, v6
|
||
|
|
||
|
move-wide v1, p1
|
||
|
|
||
|
move-wide v3, p3
|
||
|
|
||
|
move v5, p5
|
||
|
|
||
|
invoke-direct/range {v0 .. v5}, Lcom/discord/models/domain/ModelReadState;-><init>(JJI)V
|
||
|
|
||
|
return-object v6
|
||
|
.end method
|
||
|
|
||
|
.method public equals(Ljava/lang/Object;)Z
|
||
|
.locals 5
|
||
|
|
||
|
if-eq p0, p1, :cond_1
|
||
|
|
||
|
instance-of v0, p1, Lcom/discord/models/domain/ModelReadState;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
check-cast p1, Lcom/discord/models/domain/ModelReadState;
|
||
|
|
||
|
iget-wide v0, p0, Lcom/discord/models/domain/ModelReadState;->channelId:J
|
||
|
|
||
|
iget-wide v2, p1, Lcom/discord/models/domain/ModelReadState;->channelId:J
|
||
|
|
||
|
cmp-long v4, v0, v2
|
||
|
|
||
|
if-nez v4, :cond_0
|
||
|
|
||
|
iget-wide v0, p0, Lcom/discord/models/domain/ModelReadState;->lastMessageId:J
|
||
|
|
||
|
iget-wide v2, p1, Lcom/discord/models/domain/ModelReadState;->lastMessageId:J
|
||
|
|
||
|
cmp-long v4, v0, v2
|
||
|
|
||
|
if-nez v4, :cond_0
|
||
|
|
||
|
iget v0, p0, Lcom/discord/models/domain/ModelReadState;->mentionCount:I
|
||
|
|
||
|
iget p1, p1, Lcom/discord/models/domain/ModelReadState;->mentionCount:I
|
||
|
|
||
|
if-ne v0, p1, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
return p1
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
const/4 p1, 0x1
|
||
|
|
||
|
return p1
|
||
|
.end method
|
||
|
|
||
|
.method public final getChannelId()J
|
||
|
.locals 2
|
||
|
|
||
|
iget-wide v0, p0, Lcom/discord/models/domain/ModelReadState;->channelId:J
|
||
|
|
||
|
return-wide v0
|
||
|
.end method
|
||
|
|
||
|
.method public final getLastMessageId()J
|
||
|
.locals 2
|
||
|
|
||
|
iget-wide v0, p0, Lcom/discord/models/domain/ModelReadState;->lastMessageId:J
|
||
|
|
||
|
return-wide v0
|
||
|
.end method
|
||
|
|
||
|
.method public final getMentionCount()I
|
||
|
.locals 1
|
||
|
|
||
|
iget v0, p0, Lcom/discord/models/domain/ModelReadState;->mentionCount:I
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public hashCode()I
|
||
|
.locals 7
|
||
|
|
||
|
iget-wide v0, p0, Lcom/discord/models/domain/ModelReadState;->channelId:J
|
||
|
|
||
|
const/16 v2, 0x20
|
||
|
|
||
|
ushr-long v3, v0, v2
|
||
|
|
||
|
xor-long/2addr v0, v3
|
||
|
|
||
|
long-to-int v1, v0
|
||
|
|
||
|
mul-int/lit8 v1, v1, 0x1f
|
||
|
|
||
|
iget-wide v3, p0, Lcom/discord/models/domain/ModelReadState;->lastMessageId:J
|
||
|
|
||
|
ushr-long v5, v3, v2
|
||
|
|
||
|
xor-long v2, v3, v5
|
||
|
|
||
|
long-to-int v0, v2
|
||
|
|
||
|
add-int/2addr v1, v0
|
||
|
|
||
|
mul-int/lit8 v1, v1, 0x1f
|
||
|
|
||
|
iget v0, p0, Lcom/discord/models/domain/ModelReadState;->mentionCount:I
|
||
|
|
||
|
add-int/2addr v1, v0
|
||
|
|
||
|
return v1
|
||
|
.end method
|
||
|
|
||
|
.method public final isMentioned()Z
|
||
|
.locals 1
|
||
|
|
||
|
iget v0, p0, Lcom/discord/models/domain/ModelReadState;->mentionCount:I
|
||
|
|
||
|
if-lez v0, :cond_0
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public toString()Ljava/lang/String;
|
||
|
.locals 3
|
||
|
|
||
|
const-string v0, "ModelReadState(channelId="
|
||
|
|
||
|
invoke-static {v0}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-wide v1, p0, Lcom/discord/models/domain/ModelReadState;->channelId:J
|
||
|
|
||
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, ", lastMessageId="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
iget-wide v1, p0, Lcom/discord/models/domain/ModelReadState;->lastMessageId:J
|
||
|
|
||
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, ", mentionCount="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
iget v1, p0, Lcom/discord/models/domain/ModelReadState;->mentionCount:I
|
||
|
|
||
|
const-string v2, ")"
|
||
|
|
||
|
invoke-static {v0, v1, v2}, Lf/e/b/a/a;->a(Ljava/lang/StringBuilder;ILjava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|