436 lines
9.9 KiB
Smali
436 lines
9.9 KiB
Smali
.class public final Lcom/discord/widgets/chat/list/entries/GiftEntry;
|
|
.super Ljava/lang/Object;
|
|
|
|
# interfaces
|
|
.implements Lcom/discord/widgets/chat/list/entries/ChatListEntry;
|
|
|
|
|
|
# instance fields
|
|
.field private final channelId:J
|
|
|
|
.field private final giftCode:Ljava/lang/String;
|
|
|
|
.field private final messageId:J
|
|
|
|
.field private final userId:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(JJJLjava/lang/String;)V
|
|
.locals 1
|
|
|
|
const-string v0, "giftCode"
|
|
|
|
invoke-static {p7, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-wide p1, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->userId:J
|
|
|
|
iput-wide p3, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->messageId:J
|
|
|
|
iput-wide p5, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->channelId:J
|
|
|
|
iput-object p7, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->giftCode:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic copy$default(Lcom/discord/widgets/chat/list/entries/GiftEntry;JJJLjava/lang/String;ILjava/lang/Object;)Lcom/discord/widgets/chat/list/entries/GiftEntry;
|
|
.locals 8
|
|
|
|
move-object v0, p0
|
|
|
|
and-int/lit8 v2, p8, 0x1
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
iget-wide v2, v0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->userId:J
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-wide v2, p1
|
|
|
|
:goto_0
|
|
and-int/lit8 v4, p8, 0x2
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
iget-wide v4, v0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->messageId:J
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-wide v4, p3
|
|
|
|
:goto_1
|
|
and-int/lit8 v6, p8, 0x4
|
|
|
|
if-eqz v6, :cond_2
|
|
|
|
iget-wide v6, v0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->channelId:J
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move-wide v6, p5
|
|
|
|
:goto_2
|
|
and-int/lit8 v1, p8, 0x8
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
iget-object v1, v0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->giftCode:Ljava/lang/String;
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move-object v1, p7
|
|
|
|
:goto_3
|
|
move-wide p1, v2
|
|
|
|
move-wide p3, v4
|
|
|
|
move-wide p5, v6
|
|
|
|
move-object p7, v1
|
|
|
|
invoke-virtual/range {p0 .. p7}, Lcom/discord/widgets/chat/list/entries/GiftEntry;->copy(JJJLjava/lang/String;)Lcom/discord/widgets/chat/list/entries/GiftEntry;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final component1()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->userId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final component2()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->messageId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final component3()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->channelId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final component4()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->giftCode:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final copy(JJJLjava/lang/String;)Lcom/discord/widgets/chat/list/entries/GiftEntry;
|
|
.locals 9
|
|
|
|
const-string v0, "giftCode"
|
|
|
|
move-object/from16 v8, p7
|
|
|
|
invoke-static {v8, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Lcom/discord/widgets/chat/list/entries/GiftEntry;
|
|
|
|
move-object v1, v0
|
|
|
|
move-wide v2, p1
|
|
|
|
move-wide v4, p3
|
|
|
|
move-wide v6, p5
|
|
|
|
invoke-direct/range {v1 .. v8}, Lcom/discord/widgets/chat/list/entries/GiftEntry;-><init>(JJJLjava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final equals(Ljava/lang/Object;)Z
|
|
.locals 7
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eq p0, p1, :cond_4
|
|
|
|
instance-of v1, p1, Lcom/discord/widgets/chat/list/entries/GiftEntry;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
check-cast p1, Lcom/discord/widgets/chat/list/entries/GiftEntry;
|
|
|
|
iget-wide v3, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->userId:J
|
|
|
|
iget-wide v5, p1, Lcom/discord/widgets/chat/list/entries/GiftEntry;->userId:J
|
|
|
|
cmp-long v1, v3, v5
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_3
|
|
|
|
iget-wide v3, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->messageId:J
|
|
|
|
iget-wide v5, p1, Lcom/discord/widgets/chat/list/entries/GiftEntry;->messageId:J
|
|
|
|
cmp-long v1, v3, v5
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v1, :cond_3
|
|
|
|
iget-wide v3, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->channelId:J
|
|
|
|
iget-wide v5, p1, Lcom/discord/widgets/chat/list/entries/GiftEntry;->channelId:J
|
|
|
|
cmp-long v1, v3, v5
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 v1, 0x0
|
|
|
|
:goto_2
|
|
if-eqz v1, :cond_3
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->giftCode:Ljava/lang/String;
|
|
|
|
iget-object p1, p1, Lcom/discord/widgets/chat/list/entries/GiftEntry;->giftCode:Ljava/lang/String;
|
|
|
|
invoke-static {v1, p1}, Lkotlin/jvm/internal/j;->x(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
return v2
|
|
|
|
:cond_4
|
|
:goto_3
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getChannelId()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->channelId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final getGiftCode()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->giftCode:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getKey()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "26 -- "
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->messageId:J
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " -- "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->giftCode:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getMessageId()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->messageId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final getType()I
|
|
.locals 1
|
|
|
|
const/16 v0, 0x1a
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getUserId()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->userId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final hashCode()I
|
|
.locals 7
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->userId:J
|
|
|
|
const/16 v2, 0x20
|
|
|
|
ushr-long v3, v0, v2
|
|
|
|
xor-long/2addr v0, v3
|
|
|
|
long-to-int v0, v0
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-wide v3, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->messageId:J
|
|
|
|
ushr-long v5, v3, v2
|
|
|
|
xor-long/2addr v3, v5
|
|
|
|
long-to-int v1, v3
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-wide v3, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->channelId:J
|
|
|
|
ushr-long v1, v3, v2
|
|
|
|
xor-long/2addr v1, v3
|
|
|
|
long-to-int v1, v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->giftCode:Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final isInExpandedBlockedMessageChunk()Z
|
|
.locals 1
|
|
|
|
invoke-static {p0}, Lcom/discord/widgets/chat/list/entries/ChatListEntry$DefaultImpls;->isInExpandedBlockedMessageChunk(Lcom/discord/widgets/chat/list/entries/ChatListEntry;)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "GiftEntry(userId="
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->userId:J
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", messageId="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->messageId:J
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", channelId="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->channelId:J
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", giftCode="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/chat/list/entries/GiftEntry;->giftCode:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ")"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|