484 lines
14 KiB
Smali
484 lines
14 KiB
Smali
.class public final Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;
|
|
.super Ljava/lang/Object;
|
|
.source "ManageReactionsResultsAdapter.kt"
|
|
|
|
# interfaces
|
|
.implements Lcom/discord/utilities/mg_recycler/MGRecyclerDataPayload;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "ReactionUserItem"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final canDelete:Z
|
|
|
|
.field private final channelId:J
|
|
|
|
.field private final emoji:Lcom/discord/models/domain/ModelMessageReaction$Emoji;
|
|
|
|
.field private final messageId:J
|
|
|
|
.field private final user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/models/domain/ModelUser;JJLcom/discord/models/domain/ModelMessageReaction$Emoji;Z)V
|
|
.locals 1
|
|
|
|
const-string v0, "user"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "emoji"
|
|
|
|
invoke-static {p6, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
iput-wide p2, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->channelId:J
|
|
|
|
iput-wide p4, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->messageId:J
|
|
|
|
iput-object p6, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->emoji:Lcom/discord/models/domain/ModelMessageReaction$Emoji;
|
|
|
|
iput-boolean p7, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->canDelete:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic copy$default(Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;Lcom/discord/models/domain/ModelUser;JJLcom/discord/models/domain/ModelMessageReaction$Emoji;ZILjava/lang/Object;)Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;
|
|
.locals 5
|
|
|
|
and-int/lit8 p9, p8, 0x1
|
|
|
|
if-eqz p9, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
:cond_0
|
|
and-int/lit8 p9, p8, 0x2
|
|
|
|
if-eqz p9, :cond_1
|
|
|
|
iget-wide p2, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->channelId:J
|
|
|
|
:cond_1
|
|
move-wide v0, p2
|
|
|
|
and-int/lit8 p2, p8, 0x4
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
iget-wide p4, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->messageId:J
|
|
|
|
:cond_2
|
|
move-wide v2, p4
|
|
|
|
and-int/lit8 p2, p8, 0x8
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
iget-object p6, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->emoji:Lcom/discord/models/domain/ModelMessageReaction$Emoji;
|
|
|
|
:cond_3
|
|
move-object p9, p6
|
|
|
|
and-int/lit8 p2, p8, 0x10
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
iget-boolean p7, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->canDelete:Z
|
|
|
|
:cond_4
|
|
move v4, p7
|
|
|
|
move-object p2, p0
|
|
|
|
move-object p3, p1
|
|
|
|
move-wide p4, v0
|
|
|
|
move-wide p6, v2
|
|
|
|
move-object p8, p9
|
|
|
|
move p9, v4
|
|
|
|
invoke-virtual/range {p2 .. p9}, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->copy(Lcom/discord/models/domain/ModelUser;JJLcom/discord/models/domain/ModelMessageReaction$Emoji;Z)Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final component1()Lcom/discord/models/domain/ModelUser;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final component2()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->channelId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final component3()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->messageId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final component4()Lcom/discord/models/domain/ModelMessageReaction$Emoji;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->emoji:Lcom/discord/models/domain/ModelMessageReaction$Emoji;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final component5()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->canDelete:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final copy(Lcom/discord/models/domain/ModelUser;JJLcom/discord/models/domain/ModelMessageReaction$Emoji;Z)Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;
|
|
.locals 9
|
|
|
|
const-string v0, "user"
|
|
|
|
move-object v2, p1
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "emoji"
|
|
|
|
move-object v7, p6
|
|
|
|
invoke-static {p6, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;
|
|
|
|
move-object v1, v0
|
|
|
|
move-wide v3, p2
|
|
|
|
move-wide v5, p4
|
|
|
|
move/from16 v8, p7
|
|
|
|
invoke-direct/range {v1 .. v8}, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;-><init>(Lcom/discord/models/domain/ModelUser;JJLcom/discord/models/domain/ModelMessageReaction$Emoji;Z)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/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
check-cast p1, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
iget-object v3, p1, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
invoke-static {v1, v3}, Lkotlin/jvm/internal/k;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
iget-wide v3, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->channelId:J
|
|
|
|
iget-wide v5, p1, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->channelId: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/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->messageId:J
|
|
|
|
iget-wide v5, p1, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->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-object v1, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->emoji:Lcom/discord/models/domain/ModelMessageReaction$Emoji;
|
|
|
|
iget-object v3, p1, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->emoji:Lcom/discord/models/domain/ModelMessageReaction$Emoji;
|
|
|
|
invoke-static {v1, v3}, Lkotlin/jvm/internal/k;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->canDelete:Z
|
|
|
|
iget-boolean p1, p1, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->canDelete:Z
|
|
|
|
if-ne v1, p1, :cond_2
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 p1, 0x0
|
|
|
|
:goto_2
|
|
if-eqz p1, :cond_3
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
return v2
|
|
|
|
:cond_4
|
|
:goto_3
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getCanDelete()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->canDelete:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getChannelId()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->channelId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final getEmoji()Lcom/discord/models/domain/ModelMessageReaction$Emoji;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->emoji:Lcom/discord/models/domain/ModelMessageReaction$Emoji;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getKey()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/String;->valueOf(J)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/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->messageId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final getType()I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getUser()Lcom/discord/models/domain/ModelUser;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final hashCode()I
|
|
.locals 7
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-wide v2, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->channelId:J
|
|
|
|
const/16 v4, 0x20
|
|
|
|
ushr-long v5, v2, v4
|
|
|
|
xor-long/2addr v2, v5
|
|
|
|
long-to-int v3, v2
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-wide v2, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->messageId:J
|
|
|
|
ushr-long v4, v2, v4
|
|
|
|
xor-long/2addr v2, v4
|
|
|
|
long-to-int v3, v2
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->emoji:Lcom/discord/models/domain/ModelMessageReaction$Emoji;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
:cond_1
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->canDelete:Z
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_2
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "ReactionUserItem(user="
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)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/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->channelId: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/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->messageId:J
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", emoji="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->emoji:Lcom/discord/models/domain/ModelMessageReaction$Emoji;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", canDelete="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/chat/managereactions/ManageReactionsResultsAdapter$ReactionUserItem;->canDelete:Z
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)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
|