2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;
|
|
|
|
.super Lcom/discord/widgets/friends/FriendsListViewModel$Item;
|
|
|
|
.source "FriendsListViewModel.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/widgets/friends/FriendsListViewModel$Item;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "Friend"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final isApplicationStreaming:Z
|
|
|
|
|
|
|
|
.field public final presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
|
|
|
|
.field public final user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelPresence;Z)V
|
|
|
|
.locals 2
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string/jumbo v0, "user"
|
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v0, 0x0
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {p0, v0, v1}, Lcom/discord/widgets/friends/FriendsListViewModel$Item;-><init>(ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
|
|
|
|
iput-boolean p3, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->isApplicationStreaming:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic copy$default(Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelPresence;ZILjava/lang/Object;)Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
and-int/lit8 p5, p4, 0x1
|
|
|
|
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
and-int/lit8 p5, p4, 0x2
|
|
|
|
|
|
|
|
if-eqz p5, :cond_1
|
|
|
|
|
|
|
|
iget-object p2, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
|
|
|
|
if-eqz p4, :cond_2
|
|
|
|
|
|
|
|
iget-boolean p3, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->isApplicationStreaming:Z
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {p0, p1, p2, p3}, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->copy(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelPresence;Z)Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;
|
|
|
|
|
|
|
|
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/friends/FriendsListViewModel$Item$Friend;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component2()Lcom/discord/models/domain/ModelPresence;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component3()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->isApplicationStreaming:Z
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final copy(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelPresence;Z)Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;
|
|
|
|
.locals 1
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string/jumbo v0, "user"
|
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1, p2, p3}, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;-><init>(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelPresence;Z)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/friends/FriendsListViewModel$Item$Friend;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
iget-object v1, p1, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
|
|
|
|
iget-object v1, p1, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->isApplicationStreaming:Z
|
|
|
|
|
|
|
|
iget-boolean p1, p1, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->isApplicationStreaming: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 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/friends/FriendsListViewModel$Item;->get_type()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelUser;->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 final getPresence()Lcom/discord/models/domain/ModelPresence;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public hashCode()I
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelUser;->hashCode()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelPresence;->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/friends/FriendsListViewModel$Item$Friend;->isApplicationStreaming:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final isApplicationStreaming()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->isApplicationStreaming:Z
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final isOnline()Z
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x3
|
|
|
|
|
|
|
|
new-array v0, v0, [Lcom/discord/models/domain/ModelPresence$Status;
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/models/domain/ModelPresence$Status;->ONLINE:Lcom/discord/models/domain/ModelPresence$Status;
|
|
|
|
|
|
|
|
aput-object v3, v0, v2
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/models/domain/ModelPresence$Status;->IDLE:Lcom/discord/models/domain/ModelPresence$Status;
|
|
|
|
|
|
|
|
aput-object v3, v0, v1
|
|
|
|
|
|
|
|
const/4 v3, 0x2
|
|
|
|
|
|
|
|
sget-object v4, Lcom/discord/models/domain/ModelPresence$Status;->DND:Lcom/discord/models/domain/ModelPresence$Status;
|
|
|
|
|
|
|
|
aput-object v4, v0, v3
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {v0}, Lf/h/a/f/e/n/f;->setOf([Ljava/lang/Object;)Ljava/util/Set;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v3, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelPresence;->getStatus()Lcom/discord/models/domain/ModelPresence$Status;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-interface {v0, v3}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const-string v0, "Friend(user="
|
|
|
|
|
2020-09-28 19:40:16 +00:00
|
|
|
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", presence="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", isApplicationStreaming="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$Friend;->isApplicationStreaming:Z
|
|
|
|
|
|
|
|
const-string v2, ")"
|
|
|
|
|
2020-09-28 19:40:16 +00:00
|
|
|
invoke-static {v0, v1, v2}, Lf/e/c/a/a;->A(Ljava/lang/StringBuilder;ZLjava/lang/String;)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|