apkfuckery/com.discord/smali/com/discord/stores/StoreGatewayConnection$Clie...

387 lines
9.7 KiB
Smali

.class final Lcom/discord/stores/StoreGatewayConnection$ClientState;
.super Ljava/lang/Object;
.source "StoreGatewayConnection.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/discord/stores/StoreGatewayConnection;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "ClientState"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/stores/StoreGatewayConnection$ClientState$Companion;
}
.end annotation
# static fields
.field public static final Companion:Lcom/discord/stores/StoreGatewayConnection$ClientState$Companion;
# instance fields
.field private final authed:Z
.field private final backgrounded:Z
.field private final selectedVoiceChannelid:J
.field private final token:Ljava/lang/String;
.field private final tokenIfAvailable:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Lcom/discord/stores/StoreGatewayConnection$ClientState$Companion;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/discord/stores/StoreGatewayConnection$ClientState$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->Companion:Lcom/discord/stores/StoreGatewayConnection$ClientState$Companion;
return-void
.end method
.method public constructor <init>(ZLjava/lang/String;J)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-boolean p1, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->backgrounded:Z
iput-object p2, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->token:Ljava/lang/String;
iput-wide p3, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->selectedVoiceChannelid:J
iget-object p1, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->token:Ljava/lang/String;
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
iput-boolean p1, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->authed:Z
iget-boolean p1, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->backgrounded:Z
if-eqz p1, :cond_2
iget-wide p1, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->selectedVoiceChannelid:J
const-wide/16 p3, 0x0
cmp-long v0, p1, p3
if-lez v0, :cond_1
goto :goto_1
:cond_1
const/4 p1, 0x0
goto :goto_2
:cond_2
:goto_1
iget-object p1, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->token:Ljava/lang/String;
:goto_2
iput-object p1, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->tokenIfAvailable:Ljava/lang/String;
return-void
.end method
.method public static synthetic copy$default(Lcom/discord/stores/StoreGatewayConnection$ClientState;ZLjava/lang/String;JILjava/lang/Object;)Lcom/discord/stores/StoreGatewayConnection$ClientState;
.locals 0
and-int/lit8 p6, p5, 0x1
if-eqz p6, :cond_0
iget-boolean p1, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->backgrounded:Z
:cond_0
and-int/lit8 p6, p5, 0x2
if-eqz p6, :cond_1
iget-object p2, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->token:Ljava/lang/String;
:cond_1
and-int/lit8 p5, p5, 0x4
if-eqz p5, :cond_2
iget-wide p3, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->selectedVoiceChannelid:J
:cond_2
invoke-virtual {p0, p1, p2, p3, p4}, Lcom/discord/stores/StoreGatewayConnection$ClientState;->copy(ZLjava/lang/String;J)Lcom/discord/stores/StoreGatewayConnection$ClientState;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public final component1()Z
.locals 1
iget-boolean v0, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->backgrounded:Z
return v0
.end method
.method public final component2()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->token:Ljava/lang/String;
return-object v0
.end method
.method public final component3()J
.locals 2
iget-wide v0, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->selectedVoiceChannelid:J
return-wide v0
.end method
.method public final copy(ZLjava/lang/String;J)Lcom/discord/stores/StoreGatewayConnection$ClientState;
.locals 1
new-instance v0, Lcom/discord/stores/StoreGatewayConnection$ClientState;
invoke-direct {v0, p1, p2, p3, p4}, Lcom/discord/stores/StoreGatewayConnection$ClientState;-><init>(ZLjava/lang/String;J)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_3
instance-of v1, p1, Lcom/discord/stores/StoreGatewayConnection$ClientState;
const/4 v2, 0x0
if-eqz v1, :cond_2
check-cast p1, Lcom/discord/stores/StoreGatewayConnection$ClientState;
iget-boolean v1, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->backgrounded:Z
iget-boolean v3, p1, Lcom/discord/stores/StoreGatewayConnection$ClientState;->backgrounded:Z
if-ne v1, v3, :cond_0
const/4 v1, 0x1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
if-eqz v1, :cond_2
iget-object v1, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->token:Ljava/lang/String;
iget-object v3, p1, Lcom/discord/stores/StoreGatewayConnection$ClientState;->token:Ljava/lang/String;
invoke-static {v1, v3}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_2
iget-wide v3, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->selectedVoiceChannelid:J
iget-wide v5, p1, Lcom/discord/stores/StoreGatewayConnection$ClientState;->selectedVoiceChannelid:J
cmp-long p1, v3, v5
if-nez p1, :cond_1
const/4 p1, 0x1
goto :goto_1
:cond_1
const/4 p1, 0x0
:goto_1
if-eqz p1, :cond_2
goto :goto_2
:cond_2
return v2
:cond_3
:goto_2
return v0
.end method
.method public final getAuthed()Z
.locals 1
iget-boolean v0, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->authed:Z
return v0
.end method
.method public final getBackgrounded()Z
.locals 1
iget-boolean v0, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->backgrounded:Z
return v0
.end method
.method public final getIdentifyData()Lcom/discord/gateway/GatewaySocket$IdentifyData;
.locals 2
iget-object v0, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->token:Ljava/lang/String;
if-eqz v0, :cond_0
new-instance v1, Lcom/discord/gateway/GatewaySocket$IdentifyData;
invoke-direct {v1, v0}, Lcom/discord/gateway/GatewaySocket$IdentifyData;-><init>(Ljava/lang/String;)V
return-object v1
:cond_0
const/4 v0, 0x0
return-object v0
.end method
.method public final getSelectedVoiceChannelid()J
.locals 2
iget-wide v0, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->selectedVoiceChannelid:J
return-wide v0
.end method
.method public final getToken()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->token:Ljava/lang/String;
return-object v0
.end method
.method public final getTokenIfAvailable()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->tokenIfAvailable:Ljava/lang/String;
return-object v0
.end method
.method public final hashCode()I
.locals 5
iget-boolean v0, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->backgrounded:Z
if-eqz v0, :cond_0
const/4 v0, 0x1
:cond_0
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->token:Ljava/lang/String;
if-eqz v1, :cond_1
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
goto :goto_0
:cond_1
const/4 v1, 0x0
:goto_0
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-wide v1, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->selectedVoiceChannelid:J
const/16 v3, 0x20
ushr-long v3, v1, v3
xor-long/2addr v1, v3
long-to-int v2, v1
add-int/2addr v0, v2
return v0
.end method
.method public final toString()Ljava/lang/String;
.locals 3
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "ClientState(backgrounded="
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-boolean v1, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->backgrounded:Z
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
const-string v1, ", token="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->token:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ", selectedVoiceChannelid="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-wide v1, p0, Lcom/discord/stores/StoreGatewayConnection$ClientState;->selectedVoiceChannelid:J
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)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