529 lines
12 KiB
Smali
529 lines
12 KiB
Smali
|
.class public Lcom/discord/models/domain/ModelVoiceRegion;
|
||
|
.super Lcom/discord/models/domain/Model;
|
||
|
.source "ModelVoiceRegion.java"
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private id:Ljava/lang/String;
|
||
|
|
||
|
.field private name:Ljava/lang/String;
|
||
|
|
||
|
.field private sampleHostname:Ljava/lang/String;
|
||
|
|
||
|
.field private samplePort:I
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
invoke-direct {p0}, Lcom/discord/models/domain/Model;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method protected assignField(Lcom/miguelgaeta/message_parser/MessageParser;)V
|
||
|
.locals 3
|
||
|
.param p1, "reader" # Lcom/miguelgaeta/message_parser/MessageParser;
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
:goto_0
|
||
|
invoke-interface {p1}, Lcom/miguelgaeta/message_parser/MessageParser;->hasNext()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
invoke-interface {p1}, Lcom/miguelgaeta/message_parser/MessageParser;->nextName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const/4 v0, -0x1
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/String;->hashCode()I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
sparse-switch v2, :sswitch_data_0
|
||
|
|
||
|
:cond_0
|
||
|
:goto_1
|
||
|
packed-switch v0, :pswitch_data_0
|
||
|
|
||
|
:goto_2
|
||
|
invoke-interface {p1}, Lcom/miguelgaeta/message_parser/MessageParser;->skipValue()V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:sswitch_0
|
||
|
const-string v2, "id"
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:sswitch_1
|
||
|
const-string v2, "name"
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:sswitch_2
|
||
|
const-string v2, "sample_port"
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
const/4 v0, 0x2
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:sswitch_3
|
||
|
const-string v2, "sample_hostname"
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
const/4 v0, 0x3
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:pswitch_0
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->id:Ljava/lang/String;
|
||
|
|
||
|
invoke-interface {p1, v0}, Lcom/miguelgaeta/message_parser/MessageParser;->nextString(Ljava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->id:Ljava/lang/String;
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:pswitch_1
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->name:Ljava/lang/String;
|
||
|
|
||
|
invoke-interface {p1, v0}, Lcom/miguelgaeta/message_parser/MessageParser;->nextString(Ljava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->name:Ljava/lang/String;
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:pswitch_2
|
||
|
iget v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->samplePort:I
|
||
|
|
||
|
invoke-interface {p1, v0}, Lcom/miguelgaeta/message_parser/MessageParser;->nextInt(I)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->samplePort:I
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:pswitch_3
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->sampleHostname:Ljava/lang/String;
|
||
|
|
||
|
invoke-interface {p1, v0}, Lcom/miguelgaeta/message_parser/MessageParser;->nextString(Ljava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->sampleHostname:Ljava/lang/String;
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_1
|
||
|
return-void
|
||
|
|
||
|
:sswitch_data_0
|
||
|
.sparse-switch
|
||
|
0xd1b -> :sswitch_0
|
||
|
0x337a8b -> :sswitch_1
|
||
|
0x317d728 -> :sswitch_3
|
||
|
0x920d5f6 -> :sswitch_2
|
||
|
.end sparse-switch
|
||
|
|
||
|
:pswitch_data_0
|
||
|
.packed-switch 0x0
|
||
|
:pswitch_0
|
||
|
:pswitch_1
|
||
|
:pswitch_2
|
||
|
:pswitch_3
|
||
|
.end packed-switch
|
||
|
.end method
|
||
|
|
||
|
.method protected canEqual(Ljava/lang/Object;)Z
|
||
|
.locals 1
|
||
|
.param p1, "other" # Ljava/lang/Object;
|
||
|
|
||
|
.prologue
|
||
|
instance-of v0, p1, Lcom/discord/models/domain/ModelVoiceRegion;
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public equals(Ljava/lang/Object;)Z
|
||
|
.locals 11
|
||
|
.param p1, "o" # Ljava/lang/Object;
|
||
|
|
||
|
.prologue
|
||
|
const/4 v7, 0x1
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
if-ne p1, p0, :cond_1
|
||
|
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
return v7
|
||
|
|
||
|
:cond_1
|
||
|
instance-of v9, p1, Lcom/discord/models/domain/ModelVoiceRegion;
|
||
|
|
||
|
if-nez v9, :cond_2
|
||
|
|
||
|
move v7, v8
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_2
|
||
|
move-object v0, p1
|
||
|
|
||
|
check-cast v0, Lcom/discord/models/domain/ModelVoiceRegion;
|
||
|
|
||
|
.local v0, "other":Lcom/discord/models/domain/ModelVoiceRegion;
|
||
|
invoke-virtual {v0, p0}, Lcom/discord/models/domain/ModelVoiceRegion;->canEqual(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
if-nez v9, :cond_3
|
||
|
|
||
|
move v7, v8
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_3
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getId()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
.local v4, "this$id":Ljava/lang/String;
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelVoiceRegion;->getId()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
.local v1, "other$id":Ljava/lang/String;
|
||
|
if-nez v4, :cond_5
|
||
|
|
||
|
if-eqz v1, :cond_6
|
||
|
|
||
|
:cond_4
|
||
|
move v7, v8
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_5
|
||
|
invoke-virtual {v4, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
if-eqz v9, :cond_4
|
||
|
|
||
|
:cond_6
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
.local v5, "this$name":Ljava/lang/String;
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelVoiceRegion;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
.local v2, "other$name":Ljava/lang/String;
|
||
|
if-nez v5, :cond_8
|
||
|
|
||
|
if-eqz v2, :cond_9
|
||
|
|
||
|
:cond_7
|
||
|
move v7, v8
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_8
|
||
|
invoke-virtual {v5, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
if-eqz v9, :cond_7
|
||
|
|
||
|
:cond_9
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getSamplePort()I
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelVoiceRegion;->getSamplePort()I
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
if-eq v9, v10, :cond_a
|
||
|
|
||
|
move v7, v8
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_a
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getSampleHostname()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
.local v6, "this$sampleHostname":Ljava/lang/String;
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelVoiceRegion;->getSampleHostname()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
.local v3, "other$sampleHostname":Ljava/lang/String;
|
||
|
if-nez v6, :cond_b
|
||
|
|
||
|
if-eqz v3, :cond_0
|
||
|
|
||
|
:goto_1
|
||
|
move v7, v8
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_b
|
||
|
invoke-virtual {v6, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
if-nez v9, :cond_0
|
||
|
|
||
|
goto :goto_1
|
||
|
.end method
|
||
|
|
||
|
.method public getId()Ljava/lang/String;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->id:Ljava/lang/String;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public getName()Ljava/lang/String;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->name:Ljava/lang/String;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public getSampleHostname()Ljava/lang/String;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->sampleHostname:Ljava/lang/String;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public getSamplePort()I
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
iget v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->samplePort:I
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public hashCode()I
|
||
|
.locals 8
|
||
|
|
||
|
.prologue
|
||
|
const/16 v6, 0x2b
|
||
|
|
||
|
const/16 v3, 0x3b
|
||
|
|
||
|
.local v3, "PRIME":I
|
||
|
const/4 v4, 0x1
|
||
|
|
||
|
.local v4, "result":I
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getId()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.local v0, "$id":Ljava/lang/String;
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
move v5, v6
|
||
|
|
||
|
:goto_0
|
||
|
add-int/lit8 v4, v5, 0x3b
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
.local v1, "$name":Ljava/lang/String;
|
||
|
mul-int/lit8 v7, v4, 0x3b
|
||
|
|
||
|
if-nez v1, :cond_1
|
||
|
|
||
|
move v5, v6
|
||
|
|
||
|
:goto_1
|
||
|
add-int v4, v7, v5
|
||
|
|
||
|
mul-int/lit8 v5, v4, 0x3b
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getSamplePort()I
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
add-int v4, v5, v7
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getSampleHostname()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
.local v2, "$sampleHostname":Ljava/lang/String;
|
||
|
mul-int/lit8 v5, v4, 0x3b
|
||
|
|
||
|
if-nez v2, :cond_2
|
||
|
|
||
|
:goto_2
|
||
|
add-int v4, v5, v6
|
||
|
|
||
|
return v4
|
||
|
|
||
|
.end local v1 # "$name":Ljava/lang/String;
|
||
|
.end local v2 # "$sampleHostname":Ljava/lang/String;
|
||
|
:cond_0
|
||
|
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v5
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.restart local v1 # "$name":Ljava/lang/String;
|
||
|
:cond_1
|
||
|
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v5
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
.restart local v2 # "$sampleHostname":Ljava/lang/String;
|
||
|
:cond_2
|
||
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
goto :goto_2
|
||
|
.end method
|
||
|
|
||
|
.method public toString()Ljava/lang/String;
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v1, "ModelVoiceRegion(id="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getId()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", name="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", samplePort="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getSamplePort()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", sampleHostname="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getSampleHostname()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ")"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|