298 lines
9.5 KiB
Smali
298 lines
9.5 KiB
Smali
.class public final Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;
|
|
.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 = "PendingFriendRequest"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
.field public final relationshipType:I
|
|
|
|
.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;I)V
|
|
.locals 2
|
|
|
|
const-string/jumbo v0, "user"
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/discord/widgets/friends/FriendsListViewModel$Item;-><init>(ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
iput p3, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->relationshipType:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic copy$default(Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelPresence;IILjava/lang/Object;)Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;
|
|
.locals 0
|
|
|
|
and-int/lit8 p5, p4, 0x1
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->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$PendingFriendRequest;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
:cond_1
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
if-eqz p4, :cond_2
|
|
|
|
iget p3, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->relationshipType:I
|
|
|
|
:cond_2
|
|
invoke-virtual {p0, p1, p2, p3}, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->copy(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelPresence;I)Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;
|
|
|
|
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$PendingFriendRequest;->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$PendingFriendRequest;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final component3()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->relationshipType:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final copy(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelPresence;I)Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;
|
|
.locals 1
|
|
|
|
const-string/jumbo v0, "user"
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;
|
|
|
|
invoke-direct {v0, p1, p2, p3}, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;-><init>(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelPresence;I)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$PendingFriendRequest;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
check-cast p1, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
iget-object v1, p1, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
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-object v0, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
iget-object v1, p1, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
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 v0, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->relationshipType:I
|
|
|
|
iget p1, p1, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->relationshipType:I
|
|
|
|
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$PendingFriendRequest;->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$PendingFriendRequest;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getRelationshipType()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->relationshipType:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getUser()Lcom/discord/models/domain/ModelUser;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->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$PendingFriendRequest;->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$PendingFriendRequest;->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 v1, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->relationshipType:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
const-string v0, "PendingFriendRequest(user="
|
|
|
|
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/friends/FriendsListViewModel$Item$PendingFriendRequest;->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$PendingFriendRequest;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", relationshipType="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingFriendRequest;->relationshipType:I
|
|
|
|
const-string v2, ")"
|
|
|
|
invoke-static {v0, v1, v2}, Lf/e/c/a/a;->t(Ljava/lang/StringBuilder;ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|