510 lines
13 KiB
Smali
510 lines
13 KiB
Smali
.class public final Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;
|
|
.super Ljava/lang/Object;
|
|
.source "ChannelListItemTextChannel.kt"
|
|
|
|
# interfaces
|
|
.implements Lcom/discord/widgets/channels/list/items/ChannelListItem;
|
|
.implements Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$UnreadItem;
|
|
|
|
|
|
# instance fields
|
|
.field public final channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
.field public final isLocked:Z
|
|
|
|
.field public final isUnread:Z
|
|
|
|
.field public final mentionCount:I
|
|
|
|
.field public final muted:Z
|
|
|
|
.field public final selected:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/models/domain/ModelChannel;ZIZZZ)V
|
|
.locals 1
|
|
|
|
const-string v0, "channel"
|
|
|
|
invoke-static {p1, v0}, Lb0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
iput-boolean p2, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->selected:Z
|
|
|
|
iput p3, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->mentionCount:I
|
|
|
|
iput-boolean p4, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->isUnread:Z
|
|
|
|
iput-boolean p5, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->muted:Z
|
|
|
|
iput-boolean p6, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->isLocked:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic copy$default(Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;Lcom/discord/models/domain/ModelChannel;ZIZZZILjava/lang/Object;)Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;
|
|
.locals 4
|
|
|
|
and-int/lit8 p8, p7, 0x1
|
|
|
|
if-eqz p8, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
:cond_0
|
|
and-int/lit8 p8, p7, 0x2
|
|
|
|
if-eqz p8, :cond_1
|
|
|
|
iget-boolean p2, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->selected:Z
|
|
|
|
:cond_1
|
|
move p8, p2
|
|
|
|
and-int/lit8 p2, p7, 0x4
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->getMentionCount()I
|
|
|
|
move-result p3
|
|
|
|
:cond_2
|
|
move v0, p3
|
|
|
|
and-int/lit8 p2, p7, 0x8
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->isUnread()Z
|
|
|
|
move-result p4
|
|
|
|
:cond_3
|
|
move v1, p4
|
|
|
|
and-int/lit8 p2, p7, 0x10
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
iget-boolean p5, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->muted:Z
|
|
|
|
:cond_4
|
|
move v2, p5
|
|
|
|
and-int/lit8 p2, p7, 0x20
|
|
|
|
if-eqz p2, :cond_5
|
|
|
|
iget-boolean p6, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->isLocked:Z
|
|
|
|
:cond_5
|
|
move v3, p6
|
|
|
|
move-object p2, p0
|
|
|
|
move-object p3, p1
|
|
|
|
move p4, p8
|
|
|
|
move p5, v0
|
|
|
|
move p6, v1
|
|
|
|
move p7, v2
|
|
|
|
move p8, v3
|
|
|
|
invoke-virtual/range {p2 .. p8}, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->copy(Lcom/discord/models/domain/ModelChannel;ZIZZZ)Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final component1()Lcom/discord/models/domain/ModelChannel;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final component2()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->selected:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final component3()I
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->getMentionCount()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final component4()Z
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->isUnread()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final component5()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->muted:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final component6()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->isLocked:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final copy(Lcom/discord/models/domain/ModelChannel;ZIZZZ)Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;
|
|
.locals 8
|
|
|
|
const-string v0, "channel"
|
|
|
|
invoke-static {p1, v0}, Lb0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;
|
|
|
|
move-object v1, v0
|
|
|
|
move-object v2, p1
|
|
|
|
move v3, p2
|
|
|
|
move v4, p3
|
|
|
|
move v5, p4
|
|
|
|
move v6, p5
|
|
|
|
move v7, p6
|
|
|
|
invoke-direct/range {v1 .. v7}, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;-><init>(Lcom/discord/models/domain/ModelChannel;ZIZZZ)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 2
|
|
|
|
if-eq p0, p1, :cond_1
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
check-cast p1, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
iget-object v1, p1, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-static {v0, v1}, Lb0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->selected:Z
|
|
|
|
iget-boolean v1, p1, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->selected:Z
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->getMentionCount()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->getMentionCount()I
|
|
|
|
move-result v1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->isUnread()Z
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->isUnread()Z
|
|
|
|
move-result v1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->muted:Z
|
|
|
|
iget-boolean v1, p1, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->muted:Z
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->isLocked:Z
|
|
|
|
iget-boolean p1, p1, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->isLocked:Z
|
|
|
|
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 getChannel()Lcom/discord/models/domain/ModelChannel;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getKey()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->getType()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getMentionCount()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->mentionCount:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getMuted()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->muted:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getSelected()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->selected:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getType()I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelChannel;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->selected:Z
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_1
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->getMentionCount()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
mul-int/lit8 v1, v1, 0x1f
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->isUnread()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:cond_2
|
|
add-int/2addr v1, v0
|
|
|
|
mul-int/lit8 v1, v1, 0x1f
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->muted:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:cond_3
|
|
add-int/2addr v1, v0
|
|
|
|
mul-int/lit8 v1, v1, 0x1f
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->isLocked:Z
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
move v2, v0
|
|
|
|
:goto_1
|
|
add-int/2addr v1, v2
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method public final isLocked()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->isLocked:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isUnread()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->isUnread:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
const-string v0, "ChannelListItemTextChannel(channel="
|
|
|
|
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", selected="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->selected:Z
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", mentionCount="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->getMentionCount()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", isUnread="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->isUnread()Z
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", muted="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->muted:Z
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", isLocked="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemTextChannel;->isLocked:Z
|
|
|
|
const-string v2, ")"
|
|
|
|
invoke-static {v0, v1, v2}, Lf/e/c/a/a;->A(Ljava/lang/StringBuilder;ZLjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|