347 lines
9.7 KiB
Smali
347 lines
9.7 KiB
Smali
.class public final Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;
|
|
.super Ljava/lang/Object;
|
|
.source "ChannelListItemCategory.kt"
|
|
|
|
# interfaces
|
|
.implements Lcom/discord/widgets/channels/list/items/ChannelListItem;
|
|
|
|
|
|
# instance fields
|
|
.field public final canManageChannels:Z
|
|
|
|
.field public final channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
.field public final isCollapsed:Z
|
|
|
|
.field public final isMuted:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/models/domain/ModelChannel;ZZZ)V
|
|
.locals 1
|
|
|
|
const-string v0, "channel"
|
|
|
|
invoke-static {p1, v0}, Lc0/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/ChannelListItemCategory;->channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
iput-boolean p2, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->isCollapsed:Z
|
|
|
|
iput-boolean p3, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->isMuted:Z
|
|
|
|
iput-boolean p4, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->canManageChannels:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic copy$default(Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;Lcom/discord/models/domain/ModelChannel;ZZZILjava/lang/Object;)Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;
|
|
.locals 0
|
|
|
|
and-int/lit8 p6, p5, 0x1
|
|
|
|
if-eqz p6, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
:cond_0
|
|
and-int/lit8 p6, p5, 0x2
|
|
|
|
if-eqz p6, :cond_1
|
|
|
|
iget-boolean p2, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->isCollapsed:Z
|
|
|
|
:cond_1
|
|
and-int/lit8 p6, p5, 0x4
|
|
|
|
if-eqz p6, :cond_2
|
|
|
|
iget-boolean p3, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->isMuted:Z
|
|
|
|
:cond_2
|
|
and-int/lit8 p5, p5, 0x8
|
|
|
|
if-eqz p5, :cond_3
|
|
|
|
iget-boolean p4, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->canManageChannels:Z
|
|
|
|
:cond_3
|
|
invoke-virtual {p0, p1, p2, p3, p4}, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->copy(Lcom/discord/models/domain/ModelChannel;ZZZ)Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;
|
|
|
|
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/ChannelListItemCategory;->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/ChannelListItemCategory;->isCollapsed:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final component3()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->isMuted:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final component4()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->canManageChannels:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final copy(Lcom/discord/models/domain/ModelChannel;ZZZ)Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;
|
|
.locals 1
|
|
|
|
const-string v0, "channel"
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;
|
|
|
|
invoke-direct {v0, p1, p2, p3, p4}, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;-><init>(Lcom/discord/models/domain/ModelChannel;ZZZ)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/ChannelListItemCategory;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
check-cast p1, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
iget-object v1, p1, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-static {v0, v1}, Lc0/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/ChannelListItemCategory;->isCollapsed:Z
|
|
|
|
iget-boolean v1, p1, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->isCollapsed:Z
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->isMuted:Z
|
|
|
|
iget-boolean v1, p1, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->isMuted:Z
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->canManageChannels:Z
|
|
|
|
iget-boolean p1, p1, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->canManageChannels: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 getCanManageChannels()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->canManageChannels:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getChannel()Lcom/discord/models/domain/ModelChannel;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->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/ChannelListItemCategory;->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/ChannelListItemCategory;->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 getType()I
|
|
.locals 1
|
|
|
|
const/16 v0, 0x8
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->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/ChannelListItemCategory;->isCollapsed: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
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->isMuted:Z
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_2
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->canManageChannels:Z
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move v2, v1
|
|
|
|
:goto_1
|
|
add-int/2addr v0, v2
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final isCollapsed()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->isCollapsed:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final isMuted()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->isMuted:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
const-string v0, "ChannelListItemCategory(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/ChannelListItemCategory;->channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", isCollapsed="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->isCollapsed:Z
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", isMuted="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->isMuted:Z
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", canManageChannels="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/channels/list/items/ChannelListItemCategory;->canManageChannels: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
|